[NETNS][IPV6] udp6 - make proc per namespace
The proc init/exit functions take a new network namespace parameter in order to register/unregister /proc/net/udp6 for a namespace. Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
f40c8174d3
commit
0c96d8c50b
@@ -105,7 +105,7 @@ void __init udplite4_register(void)
|
||||
inet_register_protosw(&udplite4_protosw);
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
if (udp_proc_register(&udplite4_seq_afinfo)) /* udplite4_proc_init() */
|
||||
if (udp_proc_register(&init_net, &udplite4_seq_afinfo))
|
||||
printk(KERN_ERR "%s: Cannot register /proc!\n", __func__);
|
||||
#endif
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user