summaryrefslogtreecommitdiff
path: root/src/dhcp-protocol.h
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2016-07-22 21:37:59 +0100
committerSimon Kelley <simon@thekelleys.org.uk>2016-07-22 21:37:59 +0100
commitbf4e62c19e619f7edf8d03d58d33a5752f190bfd (patch)
tree8c515ffba675cabc245008269b0fec5915497333 /src/dhcp-protocol.h
parent6b1c464d6de3d7d2afc9b53afe78cda6d6e3316f (diff)
downloaddnsmasq-bf4e62c19e619f7edf8d03d58d33a5752f190bfd.tar.gz
Compile-time check on buffer sizes for leasefile parsing code.
Diffstat (limited to 'src/dhcp-protocol.h')
-rw-r--r--src/dhcp-protocol.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dhcp-protocol.h b/src/dhcp-protocol.h
index a31d829..0ea449b 100644
--- a/src/dhcp-protocol.h
+++ b/src/dhcp-protocol.h
@@ -19,6 +19,10 @@
#define DHCP_CLIENT_ALTPORT 1068
#define PXE_PORT 4011
+/* These each hold a DHCP option max size 255
+ and get a terminating zero added */
+#define DHCP_BUFF_SZ 256
+
#define BOOTREQUEST 1
#define BOOTREPLY 2
#define DHCP_COOKIE 0x63825363