mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-01-27 08:42:56 +00:00
zebra: add a few const in RNH code
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
eb3c9d9774
commit
7d08e1e31c
@ -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;
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user