ipv4: Use math to point per net sysctls into the appropriate struct net.
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 19 Oct 2013 23:27:03 +0000 (16:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Oct 2013 22:43:02 +0000 (18:43 -0400)
commit0a6fa23dcb10eeb21adfd9955f7030f952a8122d
tree49b6a6397ae04c1adbdabf514de6fda54869dfba
parent2e685cad57906e19add7189b5ff49dfb6aaa21d3
ipv4: Use math to point per net sysctls into the appropriate struct net.

Simplify maintenance of ipv4_net_table by using math to point the per
net sysctls into the appropriate struct net, instead of manually
reassinging all of the variables into hard coded table slots.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/sysctl_net_ipv4.c