Patchwork [net-next] ipcomp: Mark as netns_ok.

mail settings
Submitter David Miller
Date Feb. 4, 2013, 8:48 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/218065/
State Accepted
Delegated to: David Miller
Headers show


David Miller - Feb. 4, 2013, 8:48 p.m.
This module is namespace aware, netns_ok was just disabled by default
for sanity.

Signed-off-by: David S. Miller <>

l2tp is the only net_protocol not marked as namespace aware, and
there are patches coming for that.  After that's taken care of
we can demand that any protocol that gets registers in ipv4 be
netns_ok, and therefore we can eliminate the "init_net only"
checks in various locations, such as IP local deliver.

 net/ipv4/ipcomp.c | 1 +
 1 file changed, 1 insertion(+)


diff --git a/net/ipv4/ipcomp.c b/net/ipv4/ipcomp.c
index 9a46dae..f01d1b1 100644
--- a/net/ipv4/ipcomp.c
+++ b/net/ipv4/ipcomp.c
@@ -163,6 +163,7 @@  static const struct net_protocol ipcomp4_protocol = {
 	.handler	=	xfrm4_rcv,
 	.err_handler	=	ipcomp4_err,
 	.no_policy	=	1,
+	.netns_ok	=	1,
 static int __init ipcomp4_init(void)