summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient
diff options
context:
space:
mode:
authorambrisko <ambrisko@FreeBSD.org>2001-12-30 02:35:09 +0000
committerambrisko <ambrisko@FreeBSD.org>2001-12-30 02:35:09 +0000
commitc79d7cebd4c6fd0a4f8f8e633c5e25ead4f5213e (patch)
tree5b485bf026803f8c835f8a58bddcf32e9e186d8e /sys/nfsclient
parente65e116ae0d24331be0b052df42f4912c705420b (diff)
downloadFreeBSD-src-c79d7cebd4c6fd0a4f8f8e633c5e25ead4f5213e.zip
FreeBSD-src-c79d7cebd4c6fd0a4f8f8e633c5e25ead4f5213e.tar.gz
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
Diffstat (limited to 'sys/nfsclient')
-rw-r--r--sys/nfsclient/bootp_subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfsclient/bootp_subr.c b/sys/nfsclient/bootp_subr.c
index 8d3ad2a..1221135 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 {
OpenPOWER on IntegriCloud