l2tp: take remote address into account in l2tp_ip and l2tp_ip6 socket lookups
authorGuillaume Nault <g.nault@alphalink.fr>
Fri, 30 Dec 2016 18:48:20 +0000 (19:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jan 2017 03:07:20 +0000 (22:07 -0500)
commita9b2dff80be979432484afaf7f8d8e73f9e8838a
treedaafabf4d05495de1eabe9bea19e5917128a5ac9
parent97b84fd6d91766ea57dcc350d78f42639e011c30
l2tp: take remote address into account in l2tp_ip and l2tp_ip6 socket lookups

For connected sockets, __l2tp_ip{,6}_bind_lookup() needs to check the
remote IP when looking for a matching socket. Otherwise a connected
socket can receive traffic not originating from its peer.

Drop l2tp_ip_bind_lookup() and l2tp_ip6_bind_lookup() instead of
updating their prototype, as these functions aren't used.

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