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 /zebra/rt.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 'zebra/rt.h')
| -rw-r--r-- | zebra/rt.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/zebra/rt.h b/zebra/rt.h index ad1fe9a1f5..57e62e4f6e 100644 --- a/zebra/rt.h +++ b/zebra/rt.h @@ -67,8 +67,8 @@ enum dp_req_result { * a re-add. */ extern enum dp_req_result kernel_route_rib(struct route_node *rn, - struct prefix *p, - struct prefix *src_p, + const struct prefix *p, + const struct prefix *src_p, struct route_entry *old, struct route_entry *new); @@ -77,7 +77,8 @@ extern enum dp_req_result kernel_route_rib(struct route_node *rn, * so let's separate it out and allow the result to * be passed back up. */ -extern void kernel_route_rib_pass_fail(struct route_node *rn, struct prefix *p, +extern void kernel_route_rib_pass_fail(struct route_node *rn, + const struct prefix *p, struct route_entry *re, enum dp_results res); |
