From 688aaa4e624f62db968ff6e4a89825fa34242b42 Mon Sep 17 00:00:00 2001 From: Carmine Scarpitta Date: Sun, 3 Nov 2024 08:54:32 +0100 Subject: [PATCH] bgpd: Use `IPV6_MAX_BITLEN` when deleting SRv6 VPN4 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 b95172bfe0..42ccc858a5 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -3717,7 +3717,7 @@ static int bgp_zebra_process_srv6_locator_delete(ZAPI_CALLBACK_ARGS) tovpn_sid = bgp_vrf->vpn_policy[AFI_IP].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))