summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/bgpd.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2022-07-27 17:23:18 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2022-07-27 17:23:18 +0000
commit0bccee0626d70e020d5ca84c6695eb71fd13ef6c (patch)
treec855b684f42b86c64b6c3e69d74465c6e8c8f175 /usr.sbin/bgpd/bgpd.h
parent4a54cdcc4463cb07706b6e937f75f1013dce9a13 (diff)
There is no need to track both F_BGPD and F_KERNEL anymore.
Remove F_KERNEL and replace the checks using the F_BGPD flag. Also do not convert the priority in kr_tofull() instead provide kr_priority() which does this and is used by the bgpctl imsg commands. Also in dispatch_rtmsg_addr() convert to RTP_MINE if the priority is equal to the configured priority. OK tb@
Diffstat (limited to 'usr.sbin/bgpd/bgpd.h')
-rw-r--r--usr.sbin/bgpd/bgpd.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h
index ce50f2bc7d9..67ea2987ea6 100644
--- a/usr.sbin/bgpd/bgpd.h
+++ b/usr.sbin/bgpd/bgpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.h,v 1.445 2022/07/23 10:24:01 claudio Exp $ */
+/* $OpenBSD: bgpd.h,v 1.446 2022/07/27 17:23:17 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -74,12 +74,11 @@
#define SOCKET_NAME "/var/run/bgpd.sock"
#define F_BGPD 0x0001
-#define F_KERNEL 0x0002
+#define F_BGPD_INSERTED 0x0002
#define F_CONNECTED 0x0004
#define F_NEXTHOP 0x0008
#define F_DOWN 0x0010
#define F_STATIC 0x0020
-#define F_BGPD_INSERTED 0x0040
#define F_REJECT 0x0080
#define F_BLACKHOLE 0x0100
#define F_LONGER 0x0200