summaryrefslogtreecommitdiff
path: root/src/libsystemd-dhcp/dhcp-protocol.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-02-14 11:58:41 +0100
committerTom Gundersen <teg@jklm.no>2014-02-15 12:14:45 +0100
commit0bfedf143c72005cb540ddcaf9a8630844e381f8 (patch)
treed6118ab5a5bb283d155c24185252f2ace8aa0a6d /src/libsystemd-dhcp/dhcp-protocol.h
parente5002702716b047c3d5515aaeecc5b829db02aa4 (diff)
sd-dhcp: minimum options size is part of the protocol
Diffstat (limited to 'src/libsystemd-dhcp/dhcp-protocol.h')
-rw-r--r--src/libsystemd-dhcp/dhcp-protocol.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd-dhcp/dhcp-protocol.h b/src/libsystemd-dhcp/dhcp-protocol.h
index abdfe8d54b..81d36cef27 100644
--- a/src/libsystemd-dhcp/dhcp-protocol.h
+++ b/src/libsystemd-dhcp/dhcp-protocol.h
@@ -58,6 +58,7 @@ typedef struct DHCPPacket DHCPPacket;
#define DHCP_IP_SIZE (int32_t)(sizeof(struct iphdr))
#define DHCP_IP_UDP_SIZE (int32_t)(sizeof(struct udphdr) + DHCP_IP_SIZE)
#define DHCP_MESSAGE_SIZE (int32_t)(sizeof(DHCPMessage))
+#define DHCP_MIN_OPTIONS_SIZE 312
enum {
DHCP_PORT_SERVER = 67,