diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2023-04-18 09:30:09 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2023-04-19 10:03:59 +0200 |
commit | 4a81802e855db4a4a0ed3f19c2f2e7efdde1d672 (patch) | |
tree | dfc51d7becb6a15ab316730a7d6c363048929026 | |
parent | 5f9547dcc148f656d57973434b9cf96a3bc71b8f (diff) | |
download | NetworkManager-4a81802e855db4a4a0ed3f19c2f2e7efdde1d672.tar.gz |
device: emit dhcp-change dispatcher event also after a lease renewal
Fixes: e1648d0665a0 ('core: commit l3cd asynchronously on DHCP bound event')
Co-authored-by: Thomas Haller <thaller@redhat.com>
https://bugzilla.redhat.com/show_bug.cgi?id=2179537
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1609
(cherry picked from commit cab80c5129b293a9459d72bd4339f56a62b85eba)
(cherry picked from commit b3584ae994d2efedf75c3fcf66eabbcc6bed2564)
-rw-r--r-- | src/core/devices/nm-device.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/devices/nm-device.c b/src/core/devices/nm-device.c index d52d2eee8c..780cc4c5fe 100644 --- a/src/core/devices/nm-device.c +++ b/src/core/devices/nm-device.c @@ -10298,14 +10298,14 @@ _dev_ipdhcpx_notify(NMDhcpClient *client, const NMDhcpClientNotifyData *notify_d if (notify_data->lease_update.accepted) { nm_manager_write_device_state(priv->manager, self, NULL); + nm_dispatcher_call_device(NM_DISPATCHER_ACTION_DHCP_CHANGE_X(IS_IPv4), + self, + NULL, + NULL, + NULL, + NULL); if (priv->ipdhcp_data_x[IS_IPv4].state != NM_DEVICE_IP_STATE_READY) { _dev_ipdhcpx_set_state(self, addr_family, NM_DEVICE_IP_STATE_READY); - nm_dispatcher_call_device(NM_DISPATCHER_ACTION_DHCP_CHANGE_X(IS_IPv4), - self, - NULL, - NULL, - NULL, - NULL); _dev_ip_state_check_async(self, addr_family); } } |