summaryrefslogtreecommitdiff
path: root/socket.c
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>1996-02-29 18:35:53 +0000
committerTed Lemon <source@isc.org>1996-02-29 18:35:53 +0000
commitee56203f8871e9c29ffc61653b7685e748a2fff6 (patch)
tree2077135f55c6f8d298bab1310edcd1472606bafa /socket.c
parent0366d39ed5c9cb097d11eb04a9b8c007c8dffe4f (diff)
downloadisc-dhcp-ee56203f8871e9c29ffc61653b7685e748a2fff6.tar.gz
Slightly less gnarly MTU
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/socket.c b/socket.c
index c69e68cc..182398cf 100644
--- a/socket.c
+++ b/socket.c
@@ -155,7 +155,7 @@ void listen_on (port, address)
sockets = tmp;
}
-unsigned char packbuf [65536]; /* Should cover the gnarliest MTU... */
+unsigned char packbuf [4095]; /* Should cover the gnarliest MTU... */
void dispatch ()
{
@@ -208,6 +208,7 @@ void dispatch ()
htons (from.sin_port));
ifrom.len = 4;
memcpy (ifrom.iabuf, &from.sin_addr, ifrom.len);
+
do_packet (packbuf, result, from.sin_port,
ifrom, l -> sock);
}