opnsense-src/sys/netlink/route
Gleb Smirnoff 841dcdcd3f netlink: initialize VNET context with VNET_SYSINIT()
With the initial check-in netlink(4) was very conservative with regards to
using memory and intrusiveness to the kernel and network stack. In
particular it would initialize the VNET context only on the first actuall
call to socket(PF_NETLINK), saving on allocation of a struct nl_control of
size 224 bytes.

Now it is clear that netlink(4) is primary citizen of FreeBSD, with a set
of system tools using it.  So resort to normal VNET_SYSINIT() and with
that shave a lot of complexity, since after the change V_nl_ctl is
immutable.
2025-02-04 16:54:21 -08: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: initialize VNET context with VNET_SYSINIT() 2025-02-04 16:54:21 -08: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: augment group writer with priv(9) argument 2025-01-10 20:55:39 -08:00
neigh.h netlink(4): Fix a typo in a source code comment 2024-01-22 21:52:16 +01:00
nexthop.c netlink: augment group writer with priv(9) argument 2025-01-10 20:55:39 -08:00
nexthop.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
route.h netlink/route: reformat comment to fit 80 chars 2024-06-20 16:10:39 -07: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/route: validate family attribute 2025-01-29 15:48:55 -08:00