summaryrefslogtreecommitdiffstats
path: root/src/network/netdev
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-02-25 05:56:49 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-02-27 01:36:48 +0100
commit0c91c7a24135620e543c006ab6ab5c4f974dbb10 (patch)
treee5d95ed3bf87db71839d5a4a340759bacd196431 /src/network/netdev
parentnetwork: l2tp: make Local= optionally take interface name (diff)
downloadsystemd-0c91c7a24135620e543c006ab6ab5c4f974dbb10.tar.xz
systemd-0c91c7a24135620e543c006ab6ab5c4f974dbb10.zip
network: l2tp: change create type to independent
L2TP tunnel does not have underlying interface. Let's change its type to independent.
Diffstat (limited to 'src/network/netdev')
-rw-r--r--src/network/netdev/l2tp-tunnel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/netdev/l2tp-tunnel.c b/src/network/netdev/l2tp-tunnel.c
index e94ca20407..9724e7760e 100644
--- a/src/network/netdev/l2tp-tunnel.c
+++ b/src/network/netdev/l2tp-tunnel.c
@@ -432,7 +432,7 @@ static int l2tp_create_tunnel_handler(sd_netlink *rtnl, sd_netlink_message *m, N
return 1;
}
-static int l2tp_create_tunnel(NetDev *netdev, Link *link) {
+static int l2tp_create_tunnel(NetDev *netdev) {
_cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL;
union in_addr_union local_address;
L2tpTunnel *t;
@@ -854,9 +854,9 @@ const NetDevVTable l2tptnl_vtable = {
.object_size = sizeof(L2tpTunnel),
.init = l2tp_tunnel_init,
.sections = NETDEV_COMMON_SECTIONS "L2TP\0L2TPSession\0",
- .create_after_configured = l2tp_create_tunnel,
+ .create = l2tp_create_tunnel,
.done = l2tp_tunnel_done,
- .create_type = NETDEV_CREATE_AFTER_CONFIGURED,
+ .create_type = NETDEV_CREATE_INDEPENDENT,
.is_ready_to_create = netdev_l2tp_is_ready_to_create,
.config_verify = netdev_l2tp_tunnel_verify,
};