linux_old1/net/l2tp
Guillaume Nault a408194aa0 l2tp: define helper for parsing struct sockaddr_pppol2tp*
'sockaddr_len' is checked against various values when entering
pppol2tp_connect(), to verify its validity. It is used again later, to
find out which sockaddr structure was passed from user space. This
patch combines these two operations into one new function in order to
simplify pppol2tp_connect().

A new structure, l2tp_connect_info, is used to pass sockaddr data back
to pppol2tp_connect(), to avoid passing too many parameters to
l2tp_sockaddr_get_info(). Also, the first parameter is void* in order
to avoid casting between all sockaddr_* structures manually.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-06-28 16:06:50 +09:00
..
Kconfig l2tp: Call udp_sock_create 2014-07-14 16:12:15 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
l2tp_core.c l2tp: make l2tp_xmit_core() return void 2018-06-26 22:55:51 +09:00
l2tp_core.h l2tp: don't export l2tp_tunnel_closeall() 2018-06-26 22:55:51 +09:00
l2tp_debugfs.c l2tp: remove .show from struct l2tp_tunnel 2018-06-26 22:55:51 +09:00
l2tp_eth.c l2tp: remove .tunnel_sock from struct l2tp_eth 2017-11-11 22:08:23 +09:00
l2tp_ip.c net: convert datagram_poll users tp ->poll_mask 2018-05-26 09:16:44 +02:00
l2tp_ip6.c net: convert datagram_poll users tp ->poll_mask 2018-05-26 09:16:44 +02:00
l2tp_netlink.c l2tp: reject creation of non-PPP sessions on L2TPv2 tunnels 2018-06-15 09:12:37 -07:00
l2tp_ppp.c l2tp: define helper for parsing struct sockaddr_pppol2tp* 2018-06-28 16:06:50 +09:00