From 236f9adc7826e5c51300de4a7093082695ca0704 Mon Sep 17 00:00:00 2001 From: Doug Ambrisko Date: Sun, 30 Dec 2001 02:35:09 +0000 Subject: [PATCH] Increase the buffer size to hold a bootp/DHCP reply from 256 bytes to 1222 bytes (derived as the maximum that isc-dhcpd uses). This solves the problem if a bootp/DHCP reply is over 256 bytes in which the end of the bootp/DHCP reply will not be found and then the reply will be ignored. This happens when swap and root paths are longish or many parameters are set. Reviewed by: imp Approved by: imp --- sys/nfsclient/bootp_subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/nfsclient/bootp_subr.c b/sys/nfsclient/bootp_subr.c index 8d3ad2a2a2ac..1221135cbda4 100644 --- a/sys/nfsclient/bootp_subr.c +++ b/sys/nfsclient/bootp_subr.c @@ -101,7 +101,7 @@ struct bootp_packet { unsigned char chaddr[16]; char sname[64]; char file[128]; - unsigned char vend[256]; + unsigned char vend[1222]; }; struct bootpc_ifcontext {