linux/net/l2tp
Tom Parkin 0787840dad l2tp: cleanup netlink tunnel create address handling
When creating an L2TP tunnel using the netlink API, userspace must
either pass a socket FD for the tunnel to use (for managed tunnels),
or specify the tunnel source/destination address (for unmanaged
tunnels).

Since source/destination addresses may be AF_INET or AF_INET6, the l2tp
netlink code has conditionally compiled blocks to support IPv6.

Rather than embedding these directly into l2tp_nl_cmd_tunnel_create
(where it makes the code difficult to read and confuses checkpatch to
boot) split the handling of address-related attributes into a separate
function.

Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-07-23 11:54:40 -07:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
l2tp_core.c l2tp: cleanup unnecessary braces in if statements 2020-07-23 11:54:40 -07:00
l2tp_core.h l2tp: prefer using BIT macro 2020-07-22 18:08:39 -07:00
l2tp_debugfs.c l2tp: check socket address type in l2tp_dfs_seq_tunnel_show 2020-07-23 11:54:40 -07:00
l2tp_eth.c l2tp: cleanup comments 2020-07-22 18:08:39 -07:00
l2tp_ip.c l2tp: cleanup comparisons to NULL 2020-07-23 11:54:40 -07:00
l2tp_ip6.c l2tp: cleanup comparisons to NULL 2020-07-23 11:54:40 -07:00
l2tp_netlink.c l2tp: cleanup netlink tunnel create address handling 2020-07-23 11:54:40 -07:00
l2tp_ppp.c l2tp: cleanup unnecessary braces in if statements 2020-07-23 11:54:40 -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