freebsd-dev/sys/netlink
Alexander V. Chernikov 1bcd230f95 netlink: add interface notification on link status / flags change.
* Add link-state change notifications by subscribing to ifnet_link_event.
 In the Linux netlink model, link state is reported in 2 places: first is
 the IFLA_OPERSTATE, which stores state per RFC2863.
 The second is an IFF_LOWER_UP interface flag. As many applications rely
 on the latter, reserve 1 bit from if_flags, named as IFF_NETLINK_1.
 This flag is mapped to IFF_LOWER_UP in the netlink headers. This is done
 to avoid making applications think this flag is actually
 supported / presented in non-netlink outputs.
* Add flag change notifications, by hooking into rt_ifmsg().
 In the netlink model, notification should include the bitmask for the
 change flags. Update rt_ifmsg() to include such bitmask.

Differential Revision: https://reviews.freebsd.org/D37597
2022-12-09 11:20:07 +00:00
..
route netlink: add interface notification on link status / flags change. 2022-12-09 11:20:07 +00:00
netlink_ctl.h
netlink_debug.h
netlink_domain.c netlink: allow more than 64 groups per netlink socket. 2022-11-03 17:05:34 +00:00
netlink_generic.c netlink: unregister groups along with family 2022-11-08 12:46:58 +01:00
netlink_generic.h netlink: fix genetlink CTRL_ATTR_MCAST_GRP_MAX define. 2022-10-31 15:03:27 +00:00
netlink_io.c netlink: suppress sending NLMSG_ERROR if NLMSG_DONE is already sent 2022-11-30 13:24:38 +00:00
netlink_linux.h
netlink_message_parser.c
netlink_message_parser.h netlink: fix build without INVARIANTS 2022-10-01 21:20:50 +00:00
netlink_message_writer.c netlink: suppress sending NLMSG_ERROR if NLMSG_DONE is already sent 2022-11-30 13:24:38 +00:00
netlink_message_writer.h netlink: suppress sending NLMSG_ERROR if NLMSG_DONE is already sent 2022-11-30 13:24:38 +00:00
netlink_module.c netlink: Fix build without VIMAGE 2022-10-01 21:41:54 -04:00
netlink_route.c netlink: add interface notification on link status / flags change. 2022-12-09 11:20:07 +00:00
netlink_route.h
netlink_var.h netlink: allow more than 64 groups per netlink socket. 2022-11-03 17:05:34 +00:00
netlink.h netlink: fix NLMSG_SPACE() macro. 2022-10-31 15:02:12 +00:00