Commit 92f1fecb authored by Denis V. Lunev's avatar Denis V. Lunev Committed by David S. Miller

[NETNS]: Enable TCP/UDP/ICMP inside namespace.

Signed-off-by: default avatarDenis V. Lunev <den@openvz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2342fd7e
...@@ -1302,17 +1302,20 @@ static struct net_protocol tcp_protocol = { ...@@ -1302,17 +1302,20 @@ static struct net_protocol tcp_protocol = {
.gso_send_check = tcp_v4_gso_send_check, .gso_send_check = tcp_v4_gso_send_check,
.gso_segment = tcp_tso_segment, .gso_segment = tcp_tso_segment,
.no_policy = 1, .no_policy = 1,
.netns_ok = 1,
}; };
static struct net_protocol udp_protocol = { static struct net_protocol udp_protocol = {
.handler = udp_rcv, .handler = udp_rcv,
.err_handler = udp_err, .err_handler = udp_err,
.no_policy = 1, .no_policy = 1,
.netns_ok = 1,
}; };
static struct net_protocol icmp_protocol = { static struct net_protocol icmp_protocol = {
.handler = icmp_rcv, .handler = icmp_rcv,
.no_policy = 1, .no_policy = 1,
.netns_ok = 1,
}; };
static int __init init_ipv4_mibs(void) static int __init init_ipv4_mibs(void)
......
...@@ -31,6 +31,7 @@ static struct net_protocol udplite_protocol = { ...@@ -31,6 +31,7 @@ static struct net_protocol udplite_protocol = {
.handler = udplite_rcv, .handler = udplite_rcv,
.err_handler = udplite_err, .err_handler = udplite_err,
.no_policy = 1, .no_policy = 1,
.netns_ok = 1,
}; };
DEFINE_PROTO_INUSE(udplite) DEFINE_PROTO_INUSE(udplite)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment