diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-10-20 17:46:39 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-10-20 18:54:07 +0200 |
commit | 8320db407cbec711f812238f589a3100ab672514 (patch) | |
tree | 4ae4799d118a452f01f127bd2e7ad292b7198f58 /src/libsystemd-network/dhcp-protocol.h | |
parent | fuzz: include library headers first (diff) | |
download | systemd-8320db407cbec711f812238f589a3100ab672514.tar.xz systemd-8320db407cbec711f812238f589a3100ab672514.zip |
dhcp: move DHCPState to dhcp-client-internal.h
All other definitions in dhcp-protocol.h are common for client and
server. Let's move DHCP client specific definitions.
Diffstat (limited to 'src/libsystemd-network/dhcp-protocol.h')
-rw-r--r-- | src/libsystemd-network/dhcp-protocol.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/libsystemd-network/dhcp-protocol.h b/src/libsystemd-network/dhcp-protocol.h index 4bf2296ee3..34ab933360 100644 --- a/src/libsystemd-network/dhcp-protocol.h +++ b/src/libsystemd-network/dhcp-protocol.h @@ -59,22 +59,6 @@ enum { DHCP_PORT_CLIENT = 68, }; -enum DHCPState { - DHCP_STATE_STOPPED, - DHCP_STATE_INIT, - DHCP_STATE_SELECTING, - DHCP_STATE_INIT_REBOOT, - DHCP_STATE_REBOOTING, - DHCP_STATE_REQUESTING, - DHCP_STATE_BOUND, - DHCP_STATE_RENEWING, - DHCP_STATE_REBINDING, - _DHCP_STATE_MAX, - _DHCP_STATE_INVALID = -EINVAL, -}; - -typedef enum DHCPState DHCPState; - enum { BOOTREQUEST = 1, BOOTREPLY = 2, @@ -114,5 +98,3 @@ enum { DHCP_FQDN_FLAG_E = (1 << 2), DHCP_FQDN_FLAG_N = (1 << 3), }; - -const char *dhcp_state_to_string(DHCPState s) _const_; |