freebsd-dev/sys/netlink/route
Alexander V. Chernikov c7c3481621 netlink: fix IPv6 route addition with link-local gateway
Currently kernel assumes that IPv6 gateway address is in "embedded"
 form - that is, for the link-local IPv6 addresses, interface index
 is embedded in bytes 2 and 3 of the address.
Fix address embedding in netlink by wrapping nhop_set_gw() in the
 netlink-specific nl_set_nexthop_gw(), which does such embedding
 automatically.

Reported by:	Marek Zarychta <zarychtam@plan-b.pwste.edu.pl>
MFC after:	3 days
2023-02-20 14:29:48 +00:00
..
common.h
iface_drivers.c netlink: fix if_allocdescr() malloc options argument. 2023-02-17 18:00:37 +00:00
iface.c netlink: remove redundant check. 2023-02-18 17:53:05 +00:00
ifaddrs.h netlink: improve RTM_GETADDR handling. 2023-01-08 15:06:34 +00:00
interface.h netlink: improve interface handling 2022-12-14 19:52:35 +00:00
neigh.c netlink: do not require elevated privileges when reading arp/ndp state. 2023-02-09 14:12:33 +00:00
neigh.h
nexthop.c netlink: fix IPv6 route addition with link-local gateway 2023-02-20 14:29:48 +00:00
nexthop.h
route_var.h netlink: fix IPv6 route addition with link-local gateway 2023-02-20 14:29:48 +00:00
route.h netlink: allow path weight manipulations for single-path routes. 2023-01-29 16:04:10 +00:00
rt.c netlink: fix IPv6 route addition with link-local gateway 2023-02-20 14:29:48 +00:00