Skip to content

Commit

Permalink
bgpd: Replace 16 integer with IPV6_MAX_BYTELEN
Browse files Browse the repository at this point in the history
Signed-off-by: Carmine Scarpitta <[email protected]>
  • Loading branch information
cscarpitta committed Dec 22, 2024
1 parent 3bc44ee commit cfab26b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpd/bgp_zebra.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ static int bgp_interface_address_delete(ZAPI_CALLBACK_ARGS)
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);
memset(&peer->nexthop.v6_global, 0, IPV6_MAX_BYTELEN);
FOREACH_AFI_SAFI (afi, safi)
bgp_announce_route(peer, afi, safi,
true);
Expand Down

0 comments on commit cfab26b

Please sign in to comment.