opnsense-src/tests/sys/netlink
Kristof Provost 72b97a4e28 netlink: cope with growing requests
If a request ends up growing beyong the initially allocated space the
netlink functions (such as snl_add_msg_attr_u32()) will allocate a
new buffer. This invalidates the header pointer we can have received
from snl_create_msg_request(). Always use the hdr returned by
snl_finalize_msg().

Reviewed by:	melifaro
MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D42223

(cherry picked from commit 4f8f43b06ed07e96a250855488cc531799d5b78f)
2023-10-24 09:45:20 +02:00
..
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
test_netlink_message_writer.py netlink: use netlink mbufs in the mbuf chains. 2023-06-02 13:14:20 +00:00
test_nl_core.py tests: split netlink.py into multiple files to impove maintainability. 2023-04-01 19:31:38 +00:00
test_rtnl_iface.py netlink: add netlink interfaces to if_clone 2023-04-25 12:34:46 +00:00
test_rtnl_ifaddr.py netlink: fix failing TestRtNlAddIfaddrLo::test_add_6 tests. 2023-06-13 15:26:44 +00:00
test_rtnl_neigh.py tests: split netlink.py into multiple files to impove maintainability. 2023-04-01 19:31:38 +00:00
test_rtnl_route.py tests: split netlink.py into multiple files to impove maintainability. 2023-04-01 19:31:38 +00:00
test_snl.c netlink: temporary skip snl(3) capped test. 2023-05-09 14:59:41 +00:00
test_snl_generic.c netlink: cope with growing requests 2023-10-24 09:45:20 +02:00