Compile-time check on buffer sizes for leasefile parsing code.

This commit is contained in:
Simon Kelley
2016-07-22 21:37:59 +01:00
parent 6b1c464d6d
commit bf4e62c19e
4 changed files with 21 additions and 10 deletions

View File

@@ -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