NetworkManager/src/libnm-core-aux-extern
Dylan Van Assche 7a3b5de314
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 cef880c66f)
2023-02-08 20:51:07 +01:00
..
meson.build build/meson: cleanup dependencies for libnm-core-aux-extern 2021-02-28 10:42:06 +01:00
nm-dispatcher-api.h nm-dispatcher: dispatch on reapply 2023-02-08 20:51:07 +01:00
nm-libnm-core-aux.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-libnm-core-aux.h libnm-core-aux: add function which prints information about route 2021-08-02 09:37:01 +02:00
README.md build: move "libnm-core/" to "src/" and split it 2021-02-18 19:46:51 +01:00

libnm-core-aux-extern

libnm-core-aux-extern is a static library that is similar to libnm-core-aux-intern.

The only difference is that libnm-core-aux-extern is not used by libnm-core-impl itself. So you must not use it there.

Otherwise, it's the same and has the same usage.