-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rtnl: add a new type of msg to advertise protocol configuration
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. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Nicolas Dichtel
authored and
David S. Miller
committed
Oct 28, 2012
1 parent
f019948
commit d900082
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef _UAPI_LINUX_NETCONF_H_ | ||
#define _UAPI_LINUX_NETCONF_H_ | ||
|
||
#include <linux/types.h> | ||
#include <linux/netlink.h> | ||
|
||
struct netconfmsg { | ||
__u8 ncm_family; | ||
}; | ||
|
||
enum { | ||
NETCONFA_UNSPEC, | ||
NETCONFA_IFINDEX, | ||
NETCONFA_FORWARDING, | ||
__NETCONFA_MAX | ||
}; | ||
#define NETCONFA_MAX (__NETCONFA_MAX - 1) | ||
|
||
#define NETCONFA_IFINDEX_ALL -1 | ||
#define NETCONFA_IFINDEX_DEFAULT -2 | ||
|
||
#endif /* _UAPI_LINUX_NETCONF_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters