diff options
| author | Carmine Scarpitta <cscarpit@cisco.com> | 2024-11-03 08:54:43 +0100 |
|---|---|---|
| committer | Carmine Scarpitta <cscarpit@cisco.com> | 2024-11-03 08:54:43 +0100 |
| commit | 29729027de4a69f35ef0b3d1af98bd437132c47e (patch) | |
| tree | 509e533a2dab892db512bc9e8c2f4b11d4894153 | |
| parent | 688aaa4e624f62db968ff6e4a89825fa34242b42 (diff) | |
bgpd: Use `IPV6_MAX_BITLEN` when deleting SRv6 VPN6 SIDs
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
| -rw-r--r-- | bgpd/bgp_zebra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index 42ccc858a5..16f4a0d2df 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -3729,7 +3729,7 @@ static int bgp_zebra_process_srv6_locator_delete(ZAPI_CALLBACK_ARGS) tovpn_sid = bgp_vrf->vpn_policy[AFI_IP6].tovpn_sid; if (tovpn_sid) { tmp_prefi.family = AF_INET6; - tmp_prefi.prefixlen = 128; + tmp_prefi.prefixlen = IPV6_MAX_BITLEN; tmp_prefi.prefix = *tovpn_sid; if (prefix_match((struct prefix *)&loc.prefix, (struct prefix *)&tmp_prefi)) |
