From d3a9fe99935ec33b053d3b1d774c2a7870b028ca Mon Sep 17 00:00:00 2001 From: Carmine Scarpitta Date: Sun, 3 Nov 2024 08:54:03 +0100 Subject: [PATCH] bgpd: Use `IPV6_MAX_BITLEN` when deleting SRv6 functions 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 9053df3192..b95172bfe0 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -3699,7 +3699,7 @@ static int bgp_zebra_process_srv6_locator_delete(ZAPI_CALLBACK_ARGS) // refresh functions for (ALL_LIST_ELEMENTS(bgp->srv6_functions, node, nnode, func)) { tmp_prefi.family = AF_INET6; - tmp_prefi.prefixlen = 128; + tmp_prefi.prefixlen = IPV6_MAX_BITLEN; tmp_prefi.prefix = func->sid; if (prefix_match((struct prefix *)&loc.prefix, (struct prefix *)&tmp_prefi)) { -- 2.39.5