summaryrefslogtreecommitdiff
path: root/zebra/zebra_routemap.h
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2018-07-12 16:05:19 -0400
committerMark Stapp <mjs@voltanet.io>2018-07-23 10:34:35 -0400
commit123214efb82f6348cd80c387be15a1e2e21ce63e (patch)
tree9120c8e331acfb05b30eed616f34967fae8b30c0 /zebra/zebra_routemap.h
parentc4aee4fe3133127f16d3967e74e52b262438d57f (diff)
libs, daemons: use const in route-map apply
Use 'const prefix *' in route-map apply apis; led to some corresponding changes in several daemons. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/zebra_routemap.h')
-rw-r--r--zebra/zebra_routemap.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/zebra_routemap.h b/zebra/zebra_routemap.h
index 688c8b7203..d33487d7af 100644
--- a/zebra/zebra_routemap.h
+++ b/zebra/zebra_routemap.h
@@ -35,7 +35,8 @@ extern void zebra_route_map_write_delay_timer(struct vty *);
extern route_map_result_t
zebra_import_table_route_map_check(int family, int rib_type, uint8_t instance,
- struct prefix *p, struct nexthop *nexthop,
+ const struct prefix *p,
+ struct nexthop *nexthop,
vrf_id_t vrf_id, route_tag_t tag,
const char *rmap_name);
extern route_map_result_t
@@ -43,7 +44,7 @@ zebra_route_map_check(int family, int rib_type, uint8_t instance,
const struct prefix *p, struct nexthop *nexthop,
vrf_id_t vrf_id, route_tag_t tag);
extern route_map_result_t
-zebra_nht_route_map_check(int family, int client_proto, struct prefix *p,
+zebra_nht_route_map_check(int family, int client_proto, const struct prefix *p,
struct route_entry *, struct nexthop *nexthop);