zebra: add a few const in RNH code

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
David Lamparter 2022-03-11 12:47:46 +01:00
parent eb3c9d9774
commit 7d08e1e31c
2 changed files with 4 additions and 4 deletions

View File

@ -768,7 +768,7 @@ static void zebra_rnh_clear_nhc_flag(struct zebra_vrf *zvrf, afi_t afi,
* of a particular VRF and address-family or a specific prefix.
*/
void zebra_evaluate_rnh(struct zebra_vrf *zvrf, afi_t afi, int force,
struct prefix *p, safi_t safi)
const struct prefix *p, safi_t safi)
{
struct route_table *rnh_table;
struct route_node *nrn;
@ -803,7 +803,7 @@ void zebra_evaluate_rnh(struct zebra_vrf *zvrf, afi_t afi, int force,
}
void zebra_print_rnh_table(vrf_id_t vrfid, afi_t afi, safi_t safi,
struct vty *vty, struct prefix *p)
struct vty *vty, const struct prefix *p)
{
struct route_table *table;
struct route_node *rn;

View File

@ -44,9 +44,9 @@ extern void zebra_register_rnh_pseudowire(vrf_id_t, struct zebra_pw *, bool *);
extern void zebra_deregister_rnh_pseudowire(vrf_id_t, struct zebra_pw *);
extern void zebra_remove_rnh_client(struct rnh *rnh, struct zserv *client);
extern void zebra_evaluate_rnh(struct zebra_vrf *zvrf, afi_t afi, int force,
struct prefix *p, safi_t safi);
const struct prefix *p, safi_t safi);
extern void zebra_print_rnh_table(vrf_id_t vrfid, afi_t afi, safi_t safi,
struct vty *vty, struct prefix *p);
struct vty *vty, const struct prefix *p);
extern int rnh_resolve_via_default(struct zebra_vrf *zvrf, int family);