-/* $OpenBSD: bgpd.h,v 1.421 2022/03/03 11:19:41 claudio Exp $ */
+/* $OpenBSD: bgpd.h,v 1.422 2022/03/21 10:15:34 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
#define F_CTL_DETAIL 0x1000 /* only set on requests */
#define F_CTL_ADJ_IN 0x2000 /* only set on requests */
#define F_CTL_ADJ_OUT 0x4000 /* only set on requests */
-#define F_CTL_ACTIVE 0x8000
+#define F_CTL_BEST 0x8000
#define F_RTLABEL 0x10000
#define F_CTL_SSV 0x20000 /* only used by bgpctl */
#define F_CTL_INVALID 0x40000 /* only set on requests */
};
#define F_PREF_ELIGIBLE 0x01
-#define F_PREF_ACTIVE 0x02
+#define F_PREF_BEST 0x02
#define F_PREF_INTERNAL 0x04
#define F_PREF_ANNOUNCE 0x08
#define F_PREF_STALE 0x10
-/* $OpenBSD: rde.c,v 1.540 2022/03/03 13:06:15 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.541 2022/03/21 10:15:34 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
rib.flags = 0;
re = prefix_re(p);
if (re != NULL && re->active == p)
- rib.flags |= F_PREF_ACTIVE;
+ rib.flags |= F_PREF_BEST;
if (!peer->conf.ebgp)
rib.flags |= F_PREF_INTERNAL;
if (asp->flags & F_PREFIX_ANNOUNCED)
re = prefix_re(p);
if (asp == NULL) /* skip pending withdraw in Adj-RIB-Out */
return;
- if ((req->flags & F_CTL_ACTIVE) && re != NULL && re->active != p)
+ if ((req->flags & F_CTL_BEST) && re != NULL && re->active != p)
return;
if ((req->flags & F_CTL_INVALID) &&
(asp->flags & F_ATTR_PARSE_ERR) == 0)