summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/printconf.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2020-11-05 11:51:14 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2020-11-05 11:51:14 +0000
commitaae82fbebba0631e7de1ac7a8c9d421830e8281f (patch)
treee43731860c4b1735be437d2cfad7b8418f8f26f1 /usr.sbin/bgpd/printconf.c
parentf89d32cfe1e24fc7d4b696f81682b71ed6973ae3 (diff)
Refactor the filterset handling of nexthops. Instead of depending on
bgpd_process and changing the behaviour that way add a new filterset type ACTION_SET_NEXTHOP_REF which is used when the nexthop reference of the union is used. Adjust the RDE to convert ACTION_SET_NEXTHOP to ACTION_SET_NEXTHOP_REF when receiving the filtersets. OK benno@
Diffstat (limited to 'usr.sbin/bgpd/printconf.c')
-rw-r--r--usr.sbin/bgpd/printconf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/printconf.c b/usr.sbin/bgpd/printconf.c
index 951ccb16bed..2d047e453ce 100644
--- a/usr.sbin/bgpd/printconf.c
+++ b/usr.sbin/bgpd/printconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printconf.c,v 1.142 2020/04/23 16:13:11 claudio Exp $ */
+/* $OpenBSD: printconf.c,v 1.143 2020/11/05 11:51:13 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -356,6 +356,7 @@ print_set(struct filter_set_head *set)
break;
case ACTION_RTLABEL_ID:
case ACTION_PFTABLE_ID:
+ case ACTION_SET_NEXTHOP_REF:
/* not possible */
printf("king bula saiz: config broken");
break;