From 781ca7a13feb01739a9aa8b629ff1ff7c51e74aa Mon Sep 17 00:00:00 2001 From: Patrik Flykt Date: Wed, 9 Apr 2014 13:12:08 +0300 Subject: sd-dhcp-client: Add an explicit stop state for the DHCP client 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. --- src/libsystemd-network/dhcp-protocol.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libsystemd-network/dhcp-protocol.h') diff --git a/src/libsystemd-network/dhcp-protocol.h b/src/libsystemd-network/dhcp-protocol.h index 400e953f41..539606cff6 100644 --- a/src/libsystemd-network/dhcp-protocol.h +++ b/src/libsystemd-network/dhcp-protocol.h @@ -76,6 +76,7 @@ enum DHCPState { DHCP_STATE_BOUND = 5, DHCP_STATE_RENEWING = 6, DHCP_STATE_REBINDING = 7, + DHCP_STATE_STOPPED = 8, }; typedef enum DHCPState DHCPState; -- cgit v1.2.3-54-g00ecf