Add an explicit stop state for the DHCP client so that the library user can issue a stop at any time the callback has been called. When returning from the callback, check also the stop state and stop any further DHCP processing.
781ca7a sd-dhcp-client: Add an explicit stop state for the DHCP client
src/libsystemd-network/dhcp-protocol.h | 1 +
src/libsystemd-network/sd-dhcp-client.c | 38 +++++++++++++++++++++++--------
2 files changed, 30 insertions(+), 9 deletions(-)
Upstream: github.com