]> git.baikalelectronics.ru Git - kernel.git/commit
net: l2tp: Make l2tp_ip6 namespace aware
authorShmulik Ladkani <shmulik.ladkani@gmail.com>
Thu, 26 May 2016 17:16:36 +0000 (20:16 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 May 2016 07:03:53 +0000 (00:03 -0700)
commit8428de5c297f5a3cc3f7f8da868d1affa36023f9
tree58e073d906dd71972348cdcbc80c5a3037eb886b
parentd60b132b19d06b880da14ce76db3a74e4dfdd13b
net: l2tp: Make l2tp_ip6 namespace aware

l2tp_ip6 tunnel and session lookups were still using init_net, although
the l2tp core infrastructure already supports lookups keyed by 'net'.

As a result, l2tp_ip6_recv discarded packets for tunnels/sessions
created in namespaces other than the init_net.

Fix, by using dev_net(skb->dev) or sock_net(sk) where appropriate.

Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_ip6.c