Improve IPv6 link-local address handling
authorclaudio <claudio@openbsd.org>
Mon, 16 Oct 2023 10:25:45 +0000 (10:25 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 16 Oct 2023 10:25:45 +0000 (10:25 +0000)
commitcf5008fd390252ba68ec5a3569d475b1aa640be8
tree32e9110c5f6bde1131f105e2916d4b057ebf49ec
parente8d392ef3d824f88f5155ae86404b0d689dd9348
Improve IPv6 link-local address handling

When a session is established determine the possible interface scope of that
session. The scope is only set when the remote address is directly connected.
This interface scope is passed to the RDE that uses this information when
link-local nexthops are received. Again checking that a link-local nexthop
is actually acceptable.

OK tb@
usr.sbin/bgpd/bgpd.h
usr.sbin/bgpd/kroute.c
usr.sbin/bgpd/rde.c
usr.sbin/bgpd/rde.h
usr.sbin/bgpd/rde_peer.c
usr.sbin/bgpd/rde_rib.c
usr.sbin/bgpd/session.c
usr.sbin/bgpd/session.h