summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/dhcp-protocol.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-05-21 16:31:28 +0200
committerTom Gundersen <teg@jklm.no>2014-05-21 16:31:28 +0200
commit23289745d737a57ecc040e18abadebaaf69dc8d1 (patch)
treeecdbe2ad60f1a85292cd33f709fdc24b07b066ea /src/libsystemd-network/dhcp-protocol.h
parent04b28be1a306fd2ba454d3ee333d63df71aa3873 (diff)
sd-dhcp: rely on FIONREAD working
This fallback will anyway never get tested, so rip it out.
Diffstat (limited to 'src/libsystemd-network/dhcp-protocol.h')
-rw-r--r--src/libsystemd-network/dhcp-protocol.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/dhcp-protocol.h b/src/libsystemd-network/dhcp-protocol.h
index 260508fbbd..4d87891ff1 100644
--- a/src/libsystemd-network/dhcp-protocol.h
+++ b/src/libsystemd-network/dhcp-protocol.h
@@ -60,7 +60,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 308
+#define DHCP_MIN_OPTIONS_SIZE 308 /* spec says 312, but that includes the magic cookie */
#define DHCP_MAGIC_COOKIE (uint32_t)(0x63825363)
enum {