summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_zebra.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2021-09-21 03:11:18 +0200
committerRenato Westphal <renato@opensourcerouting.org>2021-11-23 18:24:07 +0100
commit959331a339a04a5cc893baf520bd294cb18473cc (patch)
tree78b599133f0d4f202b981f9abffa9ec2be20341c /bgpd/bgp_zebra.c
parentMerge pull request #10024 from ton31337/feature/match_ipv6_next-hop_access-list (diff)
downloadfrr-959331a339a04a5cc893baf520bd294cb18473cc.tar.xz
frr-959331a339a04a5cc893baf520bd294cb18473cc.zip
lib: do not include bgpd headers in route_opaque.h
Duplicate a couple of definitions in order to remove the bgpd includes from this libfrr header. This is necessary to fix some name collisions like PREFIX_LIST_IN being defined differently on multiple daemons (as soon as other daemons start including route_opaque.h). Including daemon headers on libfrr headers is a bad practice and should be avoided whenever possible. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_zebra.c')
-rw-r--r--bgpd/bgp_zebra.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c
index a9d9b8d39..48ed07926 100644
--- a/bgpd/bgp_zebra.c
+++ b/bgpd/bgp_zebra.c
@@ -65,6 +65,8 @@
#include "bgpd/bgp_evpn_mh.h"
#include "bgpd/bgp_mac.h"
#include "bgpd/bgp_trace.h"
+#include "bgpd/bgp_community.h"
+#include "bgpd/bgp_lcommunity.h"
/* All information about zebra. */
struct zclient *zclient = NULL;