diff options
| author | Mark Stapp <mjs@voltanet.io> | 2018-07-10 16:02:03 -0400 |
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2018-07-11 09:22:49 -0400 |
| commit | 86391e565937db3c4d08436ffa0edaa02ace50eb (patch) | |
| tree | df5f0971da7b96ccf3d003b63cf8c23968f307e7 /lib/srcdest_table.h | |
| parent | 01d38683b9632c24111ec266ec0299f77829f0d3 (diff) | |
zebra, libs: use const prefix ptrs in apis
Add 'const' to prefix args to several zebra route update,
redistribution, and route owner notification apis.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'lib/srcdest_table.h')
| -rw-r--r-- | lib/srcdest_table.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/srcdest_table.h b/lib/srcdest_table.h index 669068a79b..5f97f02bac 100644 --- a/lib/srcdest_table.h +++ b/lib/srcdest_table.h @@ -56,13 +56,14 @@ extern route_table_delegate_t _srcdest_srcnode_delegate; extern struct route_table *srcdest_table_init(void); extern struct route_node *srcdest_rnode_get(struct route_table *table, - union prefixptr dst_pu, - struct prefix_ipv6 *src_p); + union prefixconstptr dst_pu, + const struct prefix_ipv6 *src_p); extern struct route_node *srcdest_rnode_lookup(struct route_table *table, - union prefixptr dst_pu, - struct prefix_ipv6 *src_p); -extern void srcdest_rnode_prefixes(struct route_node *rn, struct prefix **p, - struct prefix **src_p); + union prefixconstptr dst_pu, + const struct prefix_ipv6 *src_p); +extern void srcdest_rnode_prefixes(struct route_node *rn, + const struct prefix **p, + const struct prefix **src_p); extern const char *srcdest_rnode2str(struct route_node *rn, char *str, int size); extern struct route_node *srcdest_route_next(struct route_node *rn); |
