-/* $OpenBSD: bgpctl.c,v 1.275 2022/02/06 09:52:32 claudio Exp $ */
+/* $OpenBSD: bgpctl.c,v 1.276 2022/03/21 10:16:23 claudio Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
*p++ = 'S';
if (flags & F_PREF_ELIGIBLE)
*p++ = '*';
- if (flags & F_PREF_ACTIVE)
+ if (flags & F_PREF_BEST)
*p++ = '>';
*p = '\0';
snprintf(buf, sizeof(buf), "%-5s", flagstr);
strlcat(buf, ", stale", sizeof(buf));
if (flags & F_PREF_ELIGIBLE)
strlcat(buf, ", valid", sizeof(buf));
- if (flags & F_PREF_ACTIVE)
+ if (flags & F_PREF_BEST)
strlcat(buf, ", best", sizeof(buf));
if (flags & F_PREF_ANNOUNCE)
strlcat(buf, ", announced", sizeof(buf));
-/* $OpenBSD: output_json.c,v 1.13 2022/02/06 09:52:32 claudio Exp $ */
+/* $OpenBSD: output_json.c,v 1.14 2022/03/21 10:16:23 claudio Exp $ */
/*
* Copyright (c) 2020 Claudio Jeker <claudio@openbsd.org>
/* flags */
json_do_bool("valid", r->flags & F_PREF_ELIGIBLE);
- if (r->flags & F_PREF_ACTIVE)
+ if (r->flags & F_PREF_BEST)
json_do_bool("best", 1);
if (r->flags & F_PREF_INTERNAL)
json_do_printf("source", "%s", "internal");
-/* $OpenBSD: parser.c,v 1.108 2022/02/06 09:52:32 claudio Exp $ */
+/* $OpenBSD: parser.c,v 1.109 2022/03/21 10:16:23 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
{ KEYWORD, "community", NONE, t_show_community},
{ KEYWORD, "ext-community", NONE, t_show_extcommunity},
{ KEYWORD, "large-community", NONE, t_show_largecommunity},
- { FLAG, "best", F_CTL_ACTIVE, t_show_rib},
- { FLAG, "selected", F_CTL_ACTIVE, t_show_rib},
+ { FLAG, "best", F_CTL_BEST, t_show_rib},
+ { FLAG, "selected", F_CTL_BEST, t_show_rib},
{ FLAG, "detail", F_CTL_DETAIL, t_show_rib},
{ FLAG, "error", F_CTL_INVALID, t_show_rib},
{ FLAG, "ssv" , F_CTL_SSV, t_show_rib},