diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-21 21:56:36 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-24 07:51:41 -0400 |
| commit | 5a1ae2c237777c6a5a909b89b302cb9c70825092 (patch) | |
| tree | dc02bdfec1c72c3f59f3fcba06ffd6f0e7795670 /bgpd/bgp_pbr.h | |
| parent | 1a4189d4a1d2170f2fc3929b4e422e9c3b75a60a (diff) | |
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_pbr.h')
| -rw-r--r-- | bgpd/bgp_pbr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_pbr.h b/bgpd/bgp_pbr.h index 393b08da48..47d5e21692 100644 --- a/bgpd/bgp_pbr.h +++ b/bgpd/bgp_pbr.h @@ -291,7 +291,7 @@ void bgp_pbr_print_policy_route(struct bgp_pbr_entry_main *api); struct bgp_node; struct bgp_path_info; -extern void bgp_pbr_update_entry(struct bgp *bgp, struct prefix *p, +extern void bgp_pbr_update_entry(struct bgp *bgp, const struct prefix *p, struct bgp_path_info *new_select, afi_t afi, safi_t safi, bool nlri_update); @@ -301,7 +301,7 @@ extern void bgp_pbr_reset(struct bgp *bgp, afi_t afi); extern struct bgp_pbr_interface *bgp_pbr_interface_lookup(const char *name, struct bgp_pbr_interface_head *head); -extern int bgp_pbr_build_and_validate_entry(struct prefix *p, +extern int bgp_pbr_build_and_validate_entry(const struct prefix *p, struct bgp_path_info *path, struct bgp_pbr_entry_main *api); #endif /* __BGP_PBR_H__ */ |
