]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV4]: Move the devinet pointers on the struct net
authorPavel Emelyanov <xemul@openvz.org>
Sun, 16 Dec 2007 21:31:47 +0000 (13:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:58:11 +0000 (14:58 -0800)
commit4ef4027a186db6d3d5c46ce6c3588789dd6cdfeb
treed8ab58f743e1f442631ffb557389dae9679cad51
parent288f6b83ec91c14711578ade46d558033b72408b
[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>
include/net/netns/ipv4.h
net/ipv4/devinet.c