freebsd-src/tests/sys/netlink
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
..
Makefile netlink: allow creating sockets with SOCK_DGRAM. 2023-01-21 14:58:19 +00:00
test_nl_core.py netlink: allow creating sockets with SOCK_DGRAM. 2023-01-21 14:58:19 +00:00
test_rtnl_iface.py netlink: return optional metadata with the operation result. 2023-02-09 15:30:00 +00:00
test_rtnl_ifaddr.py netlink: fix compatibility with older netlink applications. 2023-01-16 12:21:40 +00:00
test_snl.c netlink: add snl(3) - simple netlink library 2022-12-23 15:03:13 +00:00