diff options
author | 2020-07-23 12:29:54 +0100 | |
---|---|---|
committer | 2020-07-23 11:54:40 -0700 | |
commit | 0787840dad4ce7875f1e85eb8b72a54e9d87f9db (patch) | |
tree | f20528d114be6c5c6ab51e7513784d12b80b348e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | l2tp: cleanup netlink send of tunnel address information (diff) | |
download | linux-dev-0787840dad4ce7875f1e85eb8b72a54e9d87f9db.tar.xz linux-dev-0787840dad4ce7875f1e85eb8b72a54e9d87f9db.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions