freebsd-src/tests/sys/netlink
Alexander V. Chernikov 228c632ab3 netlink: fix compatibility with older netlink applications.
Some apps try to provide only the non-zero part of the required message
 header instead of the full one. It happens when fetching routes or
 interface addresses, where the first header byte is the family.
This behavior is "illegal" under the "strict" Netlink socket option,
 however there are many applications out there doing things in the
 "old" way.

Support this usecase by copying the provided bytes into the temporary
 zero-filled header and running the parser on this header instead.

Reported by:	Goran Mekić <meka@tilda.center>
2023-01-16 12:21:40 +00:00
..
Makefile netlink: improve RTM_GETADDR handling. 2023-01-08 15:06:34 +00:00
test_rtnl_iface.py testing: fix skipping netlink tests if netlink module is not loaded. 2023-01-08 19:52:22 +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