[net-next] ipcomp: Mark as netns_ok.

Submitted by David Miller on Feb. 4, 2013, 8:48 p.m.

Details

Message ID 20130204.154812.1991513835460386879.davem@davemloft.net
State Accepted
Delegated to: David Miller
Headers show

Commit Message

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 <davem@davemloft.net>
---

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(+)

Patch hide | download patch | download mbox

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)