diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2007-12-16 16:31:47 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:58:11 -0500 |
commit | 752d14dc6aa9d0fc8f3b25e5052596fb549e5157 (patch) | |
tree | d8ab58f743e1f442631ffb557389dae9679cad51 /include/net/netns/ipv4.h | |
parent | c0ce9fb304871daa0dd2bf0efb1b241b9fa4a279 (diff) |
[IPV4]: Move the devinet pointers on the struct net
This is the core.
Add all and default pointers on the netns_ipv4 and register
a new pernet subsys to initialize them.
Also add the ctl_table_header to register the
net.ipv4.ip_forward ctl.
I don't allocate additional memory for init_net, but use
global devinets.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netns/ipv4.h')
-rw-r--r-- | include/net/netns/ipv4.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h index ce830d57c35c..e06d7cfd6d64 100644 --- a/include/net/netns/ipv4.h +++ b/include/net/netns/ipv4.h | |||
@@ -4,6 +4,12 @@ | |||
4 | 4 | ||
5 | #ifndef __NETNS_IPV4_H__ | 5 | #ifndef __NETNS_IPV4_H__ |
6 | #define __NETNS_IPV4_H__ | 6 | #define __NETNS_IPV4_H__ |
7 | struct ctl_table_header; | ||
8 | struct ipv4_devconf; | ||
9 | |||
7 | struct netns_ipv4 { | 10 | struct netns_ipv4 { |
11 | struct ctl_table_header *forw_hdr; | ||
12 | struct ipv4_devconf *devconf_all; | ||
13 | struct ipv4_devconf *devconf_dflt; | ||
8 | }; | 14 | }; |
9 | #endif | 15 | #endif |