freebsd-dev/sys/netlink/route
Alexander V. Chernikov 25c2dd2f2c netlink: return optional metadata with the operation result.
Some operations like interface creation may need to return metadata
 - in this case, interface name - back to the caller if the operation
 is successful.
This change implements attaching an `NLMSGERR_ATTR_COOKIE` nla to the
operation reply message via `nlmsg_report_cookie()`.
Additionally, on successful interface creation, interface index and
 interface name are returned in the `IFLA_NEW_IFINDEX` and `IFLA_IFNAME
 TLVs, encapsulated in the `NLMSGERR_ATTR_COOKIE`.

Reviewed By: pauamma
Differential Revision: https://reviews.freebsd.org/D38283
MFC after:	1 week
2023-02-09 15:30:00 +00:00
..
common.h
iface_drivers.c netlink: return optional metadata with the operation result. 2023-02-09 15:30:00 +00:00
iface.c netlink: improve RTM_GETADDR handling. 2023-01-08 15:06:34 +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: Use NET_EPOCH_[CALL|WAIT] macros 2022-12-21 09:40:05 +08:00
nexthop.h
route_var.h netlink: improve interface handling 2022-12-14 19:52:35 +00:00
route.h netlink: allow path weight manipulations for single-path routes. 2023-01-29 16:04:10 +00:00
rt.c netlink: allow path weight manipulations for single-path routes. 2023-01-29 16:04:10 +00:00