diff options
author | Thomas Graf <tgraf@infradead.org> | 2010-11-16 07:32:48 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-17 22:28:25 +0300 |
commit | 9f0f7272ac9506f4c8c05cc597b7e376b0b9f3e4 (patch) | |
tree | d26f7c7e8f06313ffc8c0869935650f2b104ab58 /include/linux/if_link.h | |
parent | ca7479ebbd9f7621646bf2792cb7143647f035bb (diff) | |
download | linux-9f0f7272ac9506f4c8c05cc597b7e376b0b9f3e4.tar.xz |
ipv4: AF_INET link address family
Implements the AF_INET link address family exposing the per
device configuration settings via netlink using the attribute
IFLA_INET_CONF.
The format of IFLA_INET_CONF differs depending on the direction
the attribute is sent. The attribute sent by the kernel consists
of a u32 array, basically a 1:1 copy of in_device->cnf.data[].
The attribute expected by the kernel must consist of a sequence
of nested u32 attributes, each representing a change request,
e.g.
[IFLA_INET_CONF] = {
[IPV4_DEVCONF_FORWARDING] = 1,
[IPV4_DEVCONF_NOXFRM] = 0,
}
libnl userspace API documentation and example available from:
http://www.infradead.org/~tgr/libnl/doc-git/group__link__inet.html
Signed-off-by: Thomas Graf <tgraf@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_link.h')
-rw-r--r-- | include/linux/if_link.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/if_link.h b/include/linux/if_link.h index 443d04a66a79..2e02e4d7b11e 100644 --- a/include/linux/if_link.h +++ b/include/linux/if_link.h @@ -147,6 +147,14 @@ enum { #define IFLA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifinfomsg)) #endif +enum { + IFLA_INET_UNSPEC, + IFLA_INET_CONF, + __IFLA_INET_MAX, +}; + +#define IFLA_INET_MAX (__IFLA_INET_MAX - 1) + /* ifi_flags. IFF_* flags. |