diff options
author | Mark Stapp <mjs@voltanet.io> | 2018-07-12 22:05:19 +0200 |
---|---|---|
committer | Mark Stapp <mjs@voltanet.io> | 2018-07-23 16:34:35 +0200 |
commit | 123214efb82f6348cd80c387be15a1e2e21ce63e (patch) | |
tree | 9120c8e331acfb05b30eed616f34967fae8b30c0 /isisd/isis_routemap.c | |
parent | Merge pull request #2652 from LabNConsulting/working/master/confdate_cleanup (diff) | |
download | frr-123214efb82f6348cd80c387be15a1e2e21ce63e.tar.xz frr-123214efb82f6348cd80c387be15a1e2e21ce63e.zip |
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 'isisd/isis_routemap.c')
-rw-r--r-- | isisd/isis_routemap.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/isisd/isis_routemap.c b/isisd/isis_routemap.c index d92207d57..3c2cf7b3f 100644 --- a/isisd/isis_routemap.c +++ b/isisd/isis_routemap.c @@ -50,7 +50,7 @@ #include "isis_routemap.h" static route_map_result_t route_match_ip_address(void *rule, - struct prefix *prefix, + const struct prefix *prefix, route_map_object_t type, void *object) { @@ -83,7 +83,7 @@ static struct route_map_rule_cmd route_match_ip_address_cmd = { /* ------------------------------------------------------------*/ static route_map_result_t -route_match_ip_address_prefix_list(void *rule, struct prefix *prefix, +route_match_ip_address_prefix_list(void *rule, const struct prefix *prefix, route_map_object_t type, void *object) { struct prefix_list *plist; @@ -116,7 +116,7 @@ struct route_map_rule_cmd route_match_ip_address_prefix_list_cmd = { /* ------------------------------------------------------------*/ static route_map_result_t route_match_ipv6_address(void *rule, - struct prefix *prefix, + const struct prefix *prefix, route_map_object_t type, void *object) { @@ -149,7 +149,7 @@ static struct route_map_rule_cmd route_match_ipv6_address_cmd = { /* ------------------------------------------------------------*/ static route_map_result_t -route_match_ipv6_address_prefix_list(void *rule, struct prefix *prefix, +route_match_ipv6_address_prefix_list(void *rule, const struct prefix *prefix, route_map_object_t type, void *object) { struct prefix_list *plist; @@ -181,7 +181,8 @@ struct route_map_rule_cmd route_match_ipv6_address_prefix_list_cmd = { /* ------------------------------------------------------------*/ -static route_map_result_t route_set_metric(void *rule, struct prefix *prefix, +static route_map_result_t route_set_metric(void *rule, + const struct prefix *prefix, route_map_object_t type, void *object) { |