diff options
author | Dylan Van Assche <me@dylanvanassche.be> | 2022-07-23 08:39:37 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2023-02-08 20:51:07 +0100 |
commit | 7a3b5de314ee99c91e6510920ba67138494270da (patch) | |
tree | 5b823a163e09fc67ae23cc8ed6c75df285551d5f /man | |
parent | 54ddd45311c52fa89f134b5b3d2924c96a34d830 (diff) | |
download | NetworkManager-7a3b5de314ee99c91e6510920ba67138494270da.tar.gz |
nm-dispatcher: dispatch on reapply
Trigger a dispatcher event when a connection is reapplied on a NM device.
Some devices such as phones have already a DHCP client running for accepting
connections when they are plugged into USB to transfer data over SSH.
When NetworkManager switches the connection IP method to shared,
it spawns a dnsmasq process to handle DHCP and DNS for that connection.
However, a dispatcher event is needed to disable the external DHCP server
for these USB connections as NetworkManager's dnsmasq handles them now.
Moreover, when the connection method is switched to a different mode,
the external DHCP server needs to be spawned again to make sure that
SSH connections are still possible to the device.
To achieve this, add a new NetworkManager Dispatcher event
'reapply' which is triggered when a connection is reapplied on a NM
device. This way, a dispatcher script can handle the case above by
inspecting the IP method in the dispatcher script.
(cherry picked from commit cef880c66f24a18a30a02b583af3d85e245c359a)
Diffstat (limited to 'man')
0 files changed, 0 insertions, 0 deletions