]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix removing ipv6 global nexhop
authorLouis Scalbert <louis.scalbert@6wind.com>
Thu, 28 Mar 2024 13:29:26 +0000 (14:29 +0100)
committerLouis Scalbert <louis.scalbert@6wind.com>
Tue, 23 Apr 2024 09:28:36 +0000 (11:28 +0200)
commitee0378cdbb458f9d3710f1fb557368ace8d72477
tree4c1a74c6c5a8ec9af35f4f18d4ecd5b7f14b4dc7
parentfc1dd2e5060b6e470daa203080bdb9473a637407
bgpd: fix removing ipv6 global nexhop

When the IPv6 global is removed on an interface towards a peer, the
IPv6 nexthop global that is sent is a IPv4-mapped IPv6 address. It
should be the link-local.

At removal, replace the global by the next global address or the
link-local as last resort.

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
bgpd/bgp_zebra.c