A new type is added to allow userland to monitor protocol configuration, like IPv4 or IPv6. For example, monitoring the state of the forwarding status of an interface of the system.
Showing the changes to include/uapi/linux (2 of 2 files). Show all
Unified · Split
| @@ -0,0 +1,22 @@ | ||
| 1 | +#ifndef _UAPI_LINUX_NETCONF_H_ | |
| 2 | +#define _UAPI_LINUX_NETCONF_H_ | |
| 3 | + | |
| 4 | +#include <linux/types.h> | |
| 5 | +#include <linux/netlink.h> | |
| 6 | + | |
| 7 | +struct netconfmsg { | |
| 8 | + __u8 ncm_family; | |
| 9 | +}; | |
| 10 | + | |
| 11 | +enum { | |
| 12 | + NETCONFA_UNSPEC, | |
| 13 | + NETCONFA_IFINDEX, | |
| 14 | + NETCONFA_FORWARDING, | |
| 15 | + __NETCONFA_MAX | |
| 16 | +}; | |
| 17 | +#define NETCONFA_MAX (__NETCONFA_MAX - 1) | |
| 18 | + | |
| 19 | +#define NETCONFA_IFINDEX_ALL -1 | |
| 20 | +#define NETCONFA_IFINDEX_DEFAULT -2 | |
| 21 | + | |
| 22 | +#endif /* _UAPI_LINUX_NETCONF_H_ */ | |
| @@ -120,6 +120,11 @@ enum { · 119 unmodified lines | ||
| 120 | 120 | RTM_SETDCB, |
| 121 | 121 | #define RTM_SETDCB RTM_SETDCB |
| 122 | 122 | |
| 123 | + RTM_NEWNETCONF = 80, | |
| 124 | +#define RTM_NEWNETCONF RTM_NEWNETCONF | |
| 125 | + RTM_GETNETCONF = 82, | |
| 126 | +#define RTM_GETNETCONF RTM_GETNETCONF | |
| 127 | + | |
| 123 | 128 | __RTM_MAX, |
| 124 | 129 | #define RTM_MAX (((__RTM_MAX + 3) & ~3) - 1) |
| 125 | 130 | }; |