summaryrefslogtreecommitdiff
path: root/zebra/zebra_rnh.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2022-03-11 12:47:46 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2022-03-27 14:57:22 +0200
commit7d08e1e31c867b47c8a0de346d99f9863e2ebd58 (patch)
treee172e91fab696d2a9eb857976d14a0a6cc834c82 /zebra/zebra_rnh.c
parenteb3c9d97747bd0346a5ea951960c994dc2871ab3 (diff)
zebra: add a few `const` in RNH code
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'zebra/zebra_rnh.c')
-rw-r--r--zebra/zebra_rnh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_rnh.c b/zebra/zebra_rnh.c
index d439b1dbc5..7934a9d206 100644
--- a/zebra/zebra_rnh.c
+++ b/zebra/zebra_rnh.c
@@ -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;