diff options
author | Fernando Fernandez Mancera <ffmancera@riseup.net> | 2024-01-30 15:02:38 +0100 |
---|---|---|
committer | Fernando Fernandez Mancera <ffmancera@riseup.net> | 2024-03-06 11:14:16 +0100 |
commit | 3be44c0aa8e52c7df0d3c1ffef0b6855856c950d (patch) | |
tree | 97fbf08d2e8d56311f0719c7afe7432090cebc84 | |
parent | 32b20fbc8ceab25b29f040bac22129df5a28793e (diff) |
device: rename _dev_ipdhcpx_cleanup() "release" argument
The argument might imply that when set to FALSE, the dhcp client won't
send a RELEASE message. This won't be true with the new
dhcp-send-release option that is going to be introduced.
Instead, change the name to "force_release", when set to TRUE it means
we are sending a RELEASE message even if not indicated by the user. When
set to FALSE, it will be up to the user.
-rw-r--r-- | src/core/devices/nm-device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/devices/nm-device.c b/src/core/devices/nm-device.c index 34022efbde..fca02924b1 100644 --- a/src/core/devices/nm-device.c +++ b/src/core/devices/nm-device.c @@ -10804,7 +10804,7 @@ _dev_ipdhcpx_set_state(NMDevice *self, int addr_family, NMDeviceIPState state) } static void -_dev_ipdhcpx_cleanup(NMDevice *self, int addr_family, gboolean full_cleanup, gboolean release) +_dev_ipdhcpx_cleanup(NMDevice *self, int addr_family, gboolean full_cleanup, gboolean force_release) { NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE(self); const int IS_IPv4 = NM_IS_IPv4(addr_family); @@ -10822,7 +10822,7 @@ _dev_ipdhcpx_cleanup(NMDevice *self, int addr_family, gboolean full_cleanup, gbo if (priv->ipdhcp_data_x[IS_IPv4].client) { nm_clear_g_signal_handler(priv->ipdhcp_data_x[IS_IPv4].client, &priv->ipdhcp_data_x[IS_IPv4].notify_sigid); - nm_dhcp_client_stop(priv->ipdhcp_data_x[IS_IPv4].client, release); + nm_dhcp_client_stop(priv->ipdhcp_data_x[IS_IPv4].client, force_release); g_clear_object(&priv->ipdhcp_data_x[IS_IPv4].client); } |