diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-02-01 22:39:44 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-02-01 22:39:44 +0000 |
commit | 8317229a7791801dbb91fb092c7389f050c00d24 (patch) | |
tree | c7d7850dc2d258ef7c814d80a961b2f46d777221 /usr.sbin | |
parent | 80e2cacb03ef09a91b50be9b698fc53883e89b91 (diff) |
Don't count ethernet as overhead for UDP packet constuction. Gives
14 more bytes of option space! A change ISC made a long time ago.
ok stevesk@ (DHCP) canacar@ (bpf)
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/dhcpd/dhcp.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/dhcpd/dhcp.h b/usr.sbin/dhcpd/dhcp.h index c8efb41eb59..069e81f0a80 100644 --- a/usr.sbin/dhcpd/dhcp.h +++ b/usr.sbin/dhcpd/dhcp.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dhcp.h,v 1.3 2007/01/11 01:51:59 stevesk Exp $ */ +/* $OpenBSD: dhcp.h,v 1.4 2007/02/01 22:39:43 krw Exp $ */ /* Protocol structures... */ @@ -40,8 +40,7 @@ * Enterprises, see ``http://www.vix.com''. */ -#define DHCP_UDP_OVERHEAD (14 + /* Ethernet header */ \ - 20 + /* IP header */ \ +#define DHCP_UDP_OVERHEAD (20 + /* IP header */ \ 8) /* UDP header */ #define DHCP_SNAME_LEN 64 #define DHCP_FILE_LEN 128 |