summaryrefslogtreecommitdiff
path: root/includes/dhcp.h
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>1996-06-24 20:33:28 +0000
committerTed Lemon <source@isc.org>1996-06-24 20:33:28 +0000
commitf4835c583234015f6507612bbdee9ec40205be02 (patch)
tree54b75fe79f533bd09b69bedd4f53ec61298fdce6 /includes/dhcp.h
parent8ec97099c11e23f72abfb781edb95cb6d5a86842 (diff)
downloadisc-dhcp-f4835c583234015f6507612bbdee9ec40205be02.tar.gz
Add BOOTP_MIN_LEN constant representing minimum length of BOOTP packet
Diffstat (limited to 'includes/dhcp.h')
-rw-r--r--includes/dhcp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/dhcp.h b/includes/dhcp.h
index 24da0d08..d21aeaa1 100644
--- a/includes/dhcp.h
+++ b/includes/dhcp.h
@@ -51,6 +51,8 @@
#define DHCP_MTU_MAX 1500
#define DHCP_OPTION_LEN (DHCP_MTU_MAX - DHCP_FIXED_LEN)
+#define BOOTP_MIN_LEN 300
+
struct dhcp_packet {
u_int8_t op; /* Message opcode/type */
u_int8_t htype; /* Hardware addr type (see net/if_types.h) */