linux/net/l2tp
Guillaume Nault d2d74d0e58 l2tp: take remote address into account in l2tp_ip and l2tp_ip6 socket lookups
[ Upstream commit a9b2dff80b ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2017-12-09 22:01:50 +01:00
..
Kconfig l2tp: Call udp_sock_create 2014-07-14 16:12:15 -07:00
l2tp_core.c l2tp: fix race condition in l2tp_tunnel_delete 2017-10-12 11:51:22 +02:00
l2tp_core.h l2tp: fix race condition in l2tp_tunnel_delete 2017-10-12 11:51:22 +02:00
l2tp_debugfs.c l2tp: take reference on sessions being dumped 2017-05-03 08:36:35 -07:00
l2tp_eth.c l2tp: fix duplicate session creation 2017-07-05 14:40:18 +02:00
l2tp_ip.c l2tp: take remote address into account in l2tp_ip and l2tp_ip6 socket lookups 2017-12-09 22:01:50 +01:00
l2tp_ip6.c l2tp: take remote address into account in l2tp_ip and l2tp_ip6 socket lookups 2017-12-09 22:01:50 +01:00
l2tp_netlink.c l2tp: take a reference on sessions used in genetlink handlers 2017-07-05 14:40:19 +02:00
l2tp_ppp.c l2tp: check ps->sock before running pppol2tp_session_ioctl() 2017-11-18 11:22:21 +01:00
Makefile l2tp: introduce L2TPv3 IP encapsulation support for IPv6 2012-05-01 09:30:55 -04:00