opnsense-src/sys/netlink
Alexander V. Chernikov 5dd48f7184 netlink: use ifmedia to provide vlan interface operstate.
Netlink customers rely on admin and operational state when
 working with interfaces. The current implementation retuns
 "unknown" operstate for all interface types except IFT_ETHER
 and IFT_LOOP.

This change updates the code to fetch vlan operstate in the same way
 as for the ether interfaces. For the rest of the interface types,
 operstate is now mapped to the admin state.

Reported by:	Marek Zarychta <zarychtam@plan-b.pwste.edu.pl>
MFC after:	3 days
2023-02-15 20:22:47 +00:00
..
route netlink: use ifmedia to provide vlan interface operstate. 2023-02-15 20:22:47 +00:00
netlink.h netlink: fix NLMSG_SPACE() macro. 2022-10-31 15:02:12 +00:00
netlink_ctl.h
netlink_debug.h
netlink_domain.c netlink: allow creating sockets with SOCK_DGRAM. 2023-01-21 14:58:19 +00:00
netlink_generic.c netlink: Use NET_EPOCH_[CALL|WAIT] macros 2022-12-21 09:40:05 +08: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: return optional metadata with the operation result. 2023-02-09 15:30:00 +00:00
netlink_message_parser.h netlink: return optional metadata with the operation result. 2023-02-09 15:30:00 +00:00
netlink_message_writer.c netlink: return optional metadata with the operation result. 2023-02-09 15:30:00 +00:00
netlink_message_writer.h netlink: return optional metadata with the operation result. 2023-02-09 15:30:00 +00:00
netlink_module.c netlink: add "netlink" to the list of kernel features 2023-01-30 11:23:53 +00:00
netlink_route.c netlink: add "netlink" to the list of kernel features 2023-01-30 11:23:53 +00:00
netlink_route.h
netlink_snl.h Revert "netlink: make netlink_snl(3) c++ friendly." 2023-02-12 12:17:05 +00:00
netlink_snl_route.h Revert "netlink: make netlink_snl(3) c++ friendly." 2023-02-12 12:17:05 +00:00
netlink_var.h netlink: allow more than 64 groups per netlink socket. 2022-11-03 17:05:34 +00:00