Skip to content

Commit

Permalink
bgpd: log new ipv6 global in bgp_interface_address_add
Browse files Browse the repository at this point in the history
Log new IPv6 global address in bgp_interface_address_add

Signed-off-by: Louis Scalbert <[email protected]>
  • Loading branch information
louis-6wind committed Apr 23, 2024
1 parent 778e0df commit b083885
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bgpd/bgp_zebra.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,10 @@ static int bgp_interface_address_add(ZAPI_CALLBACK_ARGS)
((IS_MAPPED_IPV6(&peer->nexthop.v6_global)) ||
IN6_IS_ADDR_LINKLOCAL(&peer->nexthop.v6_global))) {
if (bgp_debug_zebra(ifc->address)) {
zlog_debug("Update peer %pBP's current intf addr %pI6 and send updates",
zlog_debug("Update peer %pBP's current intf global addr from %pI6 to %pI6 and send updates",
peer,
&peer->nexthop.v6_global);
&peer->nexthop.v6_global,
&addr->u.prefix6);
}
memcpy(&peer->nexthop.v6_global,
&addr->u.prefix6, IPV6_MAX_BYTELEN);
Expand Down

0 comments on commit b083885

Please sign in to comment.