]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7261303a77d2980441b3a27128710c1a3fd5e07b
tree7ea887ac5bcd03bbbf5e68b549b8ac39274b68c7
parentd147d88fc2e28dc93b399f5279baf561e1595eee
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