mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 02:46:37 +00:00
zebra: Make p and src_p const for rib_delete
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>
This commit is contained in:
parent
52f292d188
commit
f450e1cda4
@ -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);
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user