diff options
| author | Michael Biebl <biebl@debian.org> | 2024-09-01 22:38:46 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2024-09-01 22:38:46 +0200 |
| commit | e89be0baafbf2359719e7150e374d9e3efde4513 (patch) | |
| tree | aeb24b61eb3ef72efd98bbc7de168df952f95a6b /src/core/devices/nm-device-wireguard.c | |
| parent | 81f4784c87916c34bda1865ca8aafdff7f8ba55a (diff) | |
| parent | f9bfd1158b8d08d6a5ed3bb7cc1ba7a6455e5201 (diff) | |
Update upstream source from tag 'upstream/1.49.90'
Update to upstream version '1.49.90' with Debian dir 91100697245f76450c5ee1f238e8a69862e0f418
Diffstat (limited to 'src/core/devices/nm-device-wireguard.c')
| -rw-r--r-- | src/core/devices/nm-device-wireguard.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/core/devices/nm-device-wireguard.c b/src/core/devices/nm-device-wireguard.c index dd40d11e..00a8c718 100644 --- a/src/core/devices/nm-device-wireguard.c +++ b/src/core/devices/nm-device-wireguard.c @@ -1586,26 +1586,25 @@ act_stage2_config(NMDevice *device, NMDeviceStateReason *out_failure_reason) { NMDeviceWireGuard *self = NM_DEVICE_WIREGUARD(device); NMDeviceWireGuardPrivate *priv = NM_DEVICE_WIREGUARD_GET_PRIVATE(self); - NMDeviceSysIfaceState sys_iface_state; + NMDeviceManagedType managed_type; NMDeviceStateReason failure_reason; NMActStageReturn ret; - sys_iface_state = nm_device_sys_iface_state_get(device); + managed_type = nm_device_managed_type_get(device); - if (sys_iface_state == NM_DEVICE_SYS_IFACE_STATE_EXTERNAL) { + if (managed_type == NM_DEVICE_MANAGED_TYPE_EXTERNAL) { NM_SET_OUT(out_failure_reason, NM_DEVICE_STATE_REASON_NONE); return NM_ACT_STAGE_RETURN_SUCCESS; } - ret = - link_config(NM_DEVICE_WIREGUARD(device), - "configure", - (sys_iface_state == NM_DEVICE_SYS_IFACE_STATE_ASSUME) ? LINK_CONFIG_MODE_ASSUME - : LINK_CONFIG_MODE_FULL, - &failure_reason); + ret = link_config(NM_DEVICE_WIREGUARD(device), + "configure", + (managed_type == NM_DEVICE_MANAGED_TYPE_ASSUME) ? LINK_CONFIG_MODE_ASSUME + : LINK_CONFIG_MODE_FULL, + &failure_reason); if (ret == NM_ACT_STAGE_RETURN_FAILURE) { - if (sys_iface_state == NM_DEVICE_SYS_IFACE_STATE_ASSUME) { + if (managed_type == NM_DEVICE_MANAGED_TYPE_ASSUME) { /* this never fails. */ return NM_ACT_STAGE_RETURN_SUCCESS; } |