History

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.

Nicolas Dichtel committed 14 years ago

Commit d9000821 parent f0199482 files · +27 −0Browse files

Showing the changes to include/uapi/linux (2 of 2 files). Show all

Unified · Split

2 files
  1. include/uapi/linux/netconf.h +22 −0
  2. include/uapi/linux/rtnetlink.h +5 −0
include/uapi/linux/netconf.h+22−0
@@ -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
7struct netconfmsg {
8 __u8 ncm_family;
9};
10
11enum {
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_ */
include/uapi/linux/rtnetlink.h+5−0
@@ -120,6 +120,11 @@ enum { · 119 unmodified lines
120 RTM_SETDCB,120 RTM_SETDCB,
121#define RTM_SETDCB RTM_SETDCB121#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 __RTM_MAX,128 __RTM_MAX,
124#define RTM_MAX (((__RTM_MAX + 3) & ~3) - 1)129#define RTM_MAX (((__RTM_MAX + 3) & ~3) - 1)
125};130};

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t