From 29729027de4a69f35ef0b3d1af98bd437132c47e Mon Sep 17 00:00:00 2001 From: Carmine Scarpitta Date: Sun, 3 Nov 2024 08:54:43 +0100 Subject: [PATCH] bgpd: Use `IPV6_MAX_BITLEN` when deleting SRv6 VPN6 SIDs Signed-off-by: Carmine Scarpitta --- bgpd/bgp_zebra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))