diff options
author | stephen hemminger <stephen@networkplumber.org> | 2013-08-22 00:09:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-22 23:30:15 -0400 |
commit | 4a5a8aa6c966eafc106543bd955ae388230420e5 (patch) | |
tree | dd50e92eea9f9604a26b5fe94418106b3eb34a58 /include/linux/inetdevice.h | |
parent | c92a59eca86f5d13ae4d481c3bae6b54609fe006 (diff) |
ipv4: expose IPV4_DEVCONF
IP sends device configuration (see inet_fill_link_af) as an array
in the netlink information, but the indices in that array are not
exposed to userspace through any current santized header file.
It was available back in 2.6.32 (in /usr/include/linux/sysctl.h)
but was broken by:
commit 02291680ffba92e5b5865bc0c5e7d1f3056b80ec
Author: Eric W. Biederman <ebiederm@xmission.com>
Date: Sun Feb 14 03:25:51 2010 +0000
net ipv4: Decouple ipv4 interface parameters from binary sysctl numbers
Eric was solving the sysctl problem but then the indices were re-exposed
by a later addition of devconf support for IPV4
commit 9f0f7272ac9506f4c8c05cc597b7e376b0b9f3e4
Author: Thomas Graf <tgraf@infradead.org>
Date: Tue Nov 16 04:32:48 2010 +0000
ipv4: AF_INET link address family
Putting them in /usr/include/linux/ip.h seemed the logical match
for the DEVCONF_ definitions for IPV6 in /usr/include/linux/ip6.h
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/inetdevice.h')
-rw-r--r-- | include/linux/inetdevice.h | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/include/linux/inetdevice.h b/include/linux/inetdevice.h index b99cd23f3474..79640e015a86 100644 --- a/include/linux/inetdevice.h +++ b/include/linux/inetdevice.h | |||
@@ -5,45 +5,13 @@ | |||
5 | 5 | ||
6 | #include <linux/bitmap.h> | 6 | #include <linux/bitmap.h> |
7 | #include <linux/if.h> | 7 | #include <linux/if.h> |
8 | #include <linux/ip.h> | ||
8 | #include <linux/netdevice.h> | 9 | #include <linux/netdevice.h> |
9 | #include <linux/rcupdate.h> | 10 | #include <linux/rcupdate.h> |
10 | #include <linux/timer.h> | 11 | #include <linux/timer.h> |
11 | #include <linux/sysctl.h> | 12 | #include <linux/sysctl.h> |
12 | #include <linux/rtnetlink.h> | 13 | #include <linux/rtnetlink.h> |
13 | 14 | ||
14 | enum | ||
15 | { | ||
16 | IPV4_DEVCONF_FORWARDING=1, | ||
17 | IPV4_DEVCONF_MC_FORWARDING, | ||
18 | IPV4_DEVCONF_PROXY_ARP, | ||
19 | IPV4_DEVCONF_ACCEPT_REDIRECTS, | ||
20 | IPV4_DEVCONF_SECURE_REDIRECTS, | ||
21 | IPV4_DEVCONF_SEND_REDIRECTS, | ||
22 | IPV4_DEVCONF_SHARED_MEDIA, | ||
23 | IPV4_DEVCONF_RP_FILTER, | ||
24 | IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE, | ||
25 | IPV4_DEVCONF_BOOTP_RELAY, | ||
26 | IPV4_DEVCONF_LOG_MARTIANS, | ||
27 | IPV4_DEVCONF_TAG, | ||
28 | IPV4_DEVCONF_ARPFILTER, | ||
29 | IPV4_DEVCONF_MEDIUM_ID, | ||
30 | IPV4_DEVCONF_NOXFRM, | ||
31 | IPV4_DEVCONF_NOPOLICY, | ||
32 | IPV4_DEVCONF_FORCE_IGMP_VERSION, | ||
33 | IPV4_DEVCONF_ARP_ANNOUNCE, | ||
34 | IPV4_DEVCONF_ARP_IGNORE, | ||
35 | IPV4_DEVCONF_PROMOTE_SECONDARIES, | ||
36 | IPV4_DEVCONF_ARP_ACCEPT, | ||
37 | IPV4_DEVCONF_ARP_NOTIFY, | ||
38 | IPV4_DEVCONF_ACCEPT_LOCAL, | ||
39 | IPV4_DEVCONF_SRC_VMARK, | ||
40 | IPV4_DEVCONF_PROXY_ARP_PVLAN, | ||
41 | IPV4_DEVCONF_ROUTE_LOCALNET, | ||
42 | __IPV4_DEVCONF_MAX | ||
43 | }; | ||
44 | |||
45 | #define IPV4_DEVCONF_MAX (__IPV4_DEVCONF_MAX - 1) | ||
46 | |||
47 | struct ipv4_devconf { | 15 | struct ipv4_devconf { |
48 | void *sysctl; | 16 | void *sysctl; |
49 | int data[IPV4_DEVCONF_MAX]; | 17 | int data[IPV4_DEVCONF_MAX]; |