summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_zebra.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-03-22 02:56:36 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2020-03-24 12:51:41 +0100
commit5a1ae2c237777c6a5a909b89b302cb9c70825092 (patch)
treedc02bdfec1c72c3f59f3fcba06ffd6f0e7795670 /bgpd/bgp_zebra.h
parentbgpd, isisd, lib: Make key values const for skiplist (diff)
downloadfrr-5a1ae2c237777c6a5a909b89b302cb9c70825092.tar.xz
frr-5a1ae2c237777c6a5a909b89b302cb9c70825092.zip
bgpd: Rework code to use `const struct prefix`
Future work needs the ability to specify a const struct prefix value. Iterate into bgp a bit to get this started. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_zebra.h')
-rw-r--r--bgpd/bgp_zebra.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/bgpd/bgp_zebra.h b/bgpd/bgp_zebra.h
index b5b451092..e546cd5da 100644
--- a/bgpd/bgp_zebra.h
+++ b/bgpd/bgp_zebra.h
@@ -36,8 +36,9 @@ extern void bgp_zebra_announce(struct bgp_node *rn, const struct prefix *p,
struct bgp_path_info *path, struct bgp *bgp,
afi_t afi, safi_t safi);
extern void bgp_zebra_announce_table(struct bgp *, afi_t, safi_t);
-extern void bgp_zebra_withdraw(struct prefix *p, struct bgp_path_info *path,
- struct bgp *bgp, safi_t safi);
+extern void bgp_zebra_withdraw(const struct prefix *p,
+ struct bgp_path_info *path, struct bgp *bgp,
+ safi_t safi);
extern void bgp_zebra_initiate_radv(struct bgp *bgp, struct peer *peer);
extern void bgp_zebra_terminate_radv(struct bgp *bgp, struct peer *peer);