l2tp: consider '::' as wildcard address in l2tp_ip6 socket lookup
authorGuillaume Nault <g.nault@alphalink.fr>
Fri, 30 Dec 2016 18:48:19 +0000 (19:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jan 2017 03:07:20 +0000 (22:07 -0500)
commit97b84fd6d91766ea57dcc350d78f42639e011c30
tree7ea887ac5bcd03bbbf5e68b549b8ac39274b68c7
parent4200462d88f47f3759bdf4705f87e207b0f5b2e4
l2tp: consider '::' as wildcard address in l2tp_ip6 socket lookup

An L2TP socket bound to the unspecified address should match with any
address. If not, it can't receive any packet and __l2tp_ip6_bind_lookup()
can't prevent another socket from binding on the same device/tunnel ID.

While there, rename the 'addr' variable to 'sk_laddr' (local addr), to
make following patch clearer.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_ip6.c