mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 06:23:04 +00:00
bgpd: Replace 16 integer with IPV6_MAX_BYTELEN
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
This commit is contained in:
parent
8cd73c792c
commit
3bc44ee5eb
@ -421,10 +421,9 @@ static int bgp_interface_address_delete(ZAPI_CALLBACK_ARGS)
|
||||
if (addr->family == AF_INET)
|
||||
continue;
|
||||
|
||||
if (!IN6_IS_ADDR_LINKLOCAL(&addr->u.prefix6)
|
||||
&& memcmp(&peer->nexthop.v6_global,
|
||||
&addr->u.prefix6, 16)
|
||||
== 0) {
|
||||
if (!IN6_IS_ADDR_LINKLOCAL(&addr->u.prefix6) &&
|
||||
memcmp(&peer->nexthop.v6_global, &addr->u.prefix6, IPV6_MAX_BYTELEN) ==
|
||||
0) {
|
||||
memset(&peer->nexthop.v6_global, 0, 16);
|
||||
FOREACH_AFI_SAFI (afi, safi)
|
||||
bgp_announce_route(peer, afi, safi,
|
||||
|
Loading…
Reference in New Issue
Block a user