From 02164814b49a3385caae0ea10aa042487c6002d2 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Tue, 18 Apr 2023 17:21:13 +0200 Subject: BMP: Allow build without BMP and disable BMP build by default It has still several important issues to be enabled by default. --- proto/bgp/packets.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'proto/bgp/packets.c') diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c index 42016eae..b9537169 100644 --- a/proto/bgp/packets.c +++ b/proto/bgp/packets.c @@ -2407,6 +2407,9 @@ bgp_create_mp_unreach(struct bgp_write_state *s, struct bgp_bucket *buck, byte * return buf+11+len; } + +#ifdef CONFIG_BMP + static byte * bgp_create_update_bmp(struct bgp_channel *c, byte *buf, struct bgp_bucket *buck, bool update) { @@ -2489,6 +2492,9 @@ bgp_rte_update_in_notify(struct channel *C, const net_addr *n, bmp_route_monitor_put_update_in_pre_msg(buf, end - buf); } +#endif /* CONFIG_BMP */ + + static byte * bgp_create_update(struct bgp_channel *c, byte *buf) { -- cgit v1.2.3