Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netfilter: ipt_CLUSTERIP: create proc entry under proper ipt_CLUSTERIP directory

Create proc entries under the ipt_CLUSTERIP directory of proper
net namespace.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

authored by

Gao feng and committed by
Pablo Neira Ayuso
f58d7866 b5ef0f85

+1 -1
+1 -1
net/ipv4/netfilter/ipt_CLUSTERIP.c
··· 168 168 struct net_device *dev) 169 169 { 170 170 struct clusterip_config *c; 171 - struct clusterip_net *cn = net_generic(&init_net, clusterip_net_id); 171 + struct clusterip_net *cn = net_generic(dev_net(dev), clusterip_net_id); 172 172 173 173 c = kzalloc(sizeof(*c), GFP_ATOMIC); 174 174 if (!c)