summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/dhcp-protocol.h
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2014-04-09 13:12:08 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2014-04-11 10:53:34 +0300
commit781ca7a13feb01739a9aa8b629ff1ff7c51e74aa (patch)
treedb35d8aa16fbe995439dcaff3387705938254557 /src/libsystemd-network/dhcp-protocol.h
parente5b04c8de83aa17e324bae95f18a822931fb8078 (diff)
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.
Diffstat (limited to 'src/libsystemd-network/dhcp-protocol.h')
-rw-r--r--src/libsystemd-network/dhcp-protocol.h1
1 files changed, 1 insertions, 0 deletions
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;