freebsd-src/sys/netlink/route
KUROSAWA Takahiro f818559774
netlink: fix adding an interface route
route add <host> -iface <netif>" for a netif without an IPv4/IPv6
address fails with EINVAL. Need to use a link-level ifaddr for gw if
an ifaddr for dst is not found as the rtsock-based implementation does.

PR:		275341
Reported by:	Sean Cody <sean@tinfoilhat.ca>
Reviewed by:	rcm
Tested by:	rcm
Approved by:	kp (mentor)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D41330
2023-11-28 16:11:55 -05:00
..
common.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
iface.c netlink: move NETLINK define to opt_global.h 2023-10-13 09:23:47 +02:00
iface_drivers.c netlink: move NETLINK define to opt_global.h 2023-10-13 09:23:47 +02:00
ifaddrs.h netlink: add support for adding/deleting interface addresses 2023-05-16 19:39:13 +00:00
interface.h netlink: dump interface capabilities with other interface data. 2023-06-16 15:33:49 +00:00
neigh.c netlink: fix potential llentry lock leak in newneigh handler 2023-10-23 16:24:51 +02:00
neigh.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
nexthop.c netlink: move NETLINK define to opt_global.h 2023-10-13 09:23:47 +02:00
nexthop.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
route.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
route_var.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
rt.c netlink: fix adding an interface route 2023-11-28 16:11:55 -05:00