]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Make p and src_p const for rib_delete
authorDonald Sharp <sharpd@nvidia.com>
Fri, 7 Jun 2024 16:30:59 +0000 (12:30 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 27 Aug 2024 10:25:34 +0000 (06:25 -0400)
The prefix'es p and src_p are not const.  Let's make
them so.  Useful to signal that we will not change this
data.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/rib.h
zebra/zebra_rib.c

index 84ea766c4733d40b6ed5c33212eeac24510521b1..7f4e3949e02d7ee2b4bd8b15abb0b68c9d5af37d 100644 (file)
@@ -395,7 +395,7 @@ extern int rib_add_multipath_nhe(afi_t afi, safi_t safi, struct prefix *p,
 
 extern void rib_delete(afi_t afi, safi_t safi, vrf_id_t vrf_id, int type,
                       unsigned short instance, uint32_t flags,
-                      struct prefix *p, struct prefix_ipv6 *src_p,
+                      const struct prefix *p, const struct prefix_ipv6 *src_p,
                       const struct nexthop *nh, uint32_t nhe_id,
                       uint32_t table_id, uint32_t metric, uint8_t distance,
                       bool fromkernel);
index 59190e9dd33004fb22752589b62295083e0beb18..c1bd61e1db315b9dfd2e5fdb834364c1ed0fcd55 100644 (file)
@@ -4393,8 +4393,8 @@ int rib_add_multipath(afi_t afi, safi_t safi, struct prefix *p,
 }
 
 void rib_delete(afi_t afi, safi_t safi, vrf_id_t vrf_id, int type,
-               unsigned short instance, uint32_t flags, struct prefix *p,
-               struct prefix_ipv6 *src_p, const struct nexthop *nh,
+               unsigned short instance, uint32_t flags, const struct prefix *p,
+               const struct prefix_ipv6 *src_p, const struct nexthop *nh,
                uint32_t nhe_id, uint32_t table_id, uint32_t metric,
                uint8_t distance, bool fromkernel)
 {