]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: split nexthop-local unchanged peer subgroup
authorLouis Scalbert <louis.scalbert@6wind.com>
Fri, 11 Oct 2024 05:12:23 +0000 (07:12 +0200)
committerLouis Scalbert <louis.scalbert@6wind.com>
Fri, 11 Oct 2024 12:07:46 +0000 (14:07 +0200)
commit91512c30487ceb1d306529886f4e5a629cd0e2f8
tree7212a66579f5c107355c8f363f4aa4d2a4017dea
parentda7b2d9831fb87c6b20b41a803214b06354f5cd8
bgpd: split nexthop-local unchanged peer subgroup

5bb99ccad2 ("bgpd: reset ipv6 invalid link-local nexthop") now resets
the link-local when originating and destination peers are not on the
same network segment. However, it does not work all the time.

The fix compares the 'from' and 'peer' global IPv6 address. However,
'peer' refers to one of the peers of subgroup. The subgroup may contain
peers located on different network segment.

Split nexthop-local unchanged peer subgroup by network segment.

Fixes: 5bb99ccad2 ("bgpd: reset ipv6 invalid link-local nexthop")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
bgpd/bgp_updgrp.c