2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 14:25:41 +00:00

Slightly less gnarly MTU

This commit is contained in:
Ted Lemon
1996-02-29 18:35:53 +00:00
parent 0366d39ed5
commit ee56203f88
2 changed files with 4 additions and 2 deletions

View File

@@ -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);
}