patch-2.2.11 linux/net/ipv4/ipconfig.c
Next file: linux/net/ipv4/ipmr.c
Previous file: linux/net/ipv4/ip_masq_user.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Mon Aug 9 12:04:41 1999
- Orig file:
v2.2.10/linux/net/ipv4/ipconfig.c
- Orig date:
Sun Mar 28 09:07:47 1999
diff -u --recursive --new-file v2.2.10/linux/net/ipv4/ipconfig.c linux/net/ipv4/ipconfig.c
@@ -1,5 +1,5 @@
/*
- * $Id: ipconfig.c,v 1.20 1999/03/28 10:18:28 davem Exp $
+ * $Id: ipconfig.c,v 1.20.2.1 1999/06/28 11:33:27 davem Exp $
*
* Automatic Configuration of IP -- use BOOTP or RARP or user-supplied
* information to configure own IP address and routes.
@@ -662,7 +662,7 @@
b->vendor_area[2] == 83 &&
b->vendor_area[3] == 99) {
u8 *ext = &b->vendor_area[4];
- u8 *end = (u8 *) b + len;
+ u8 *end = (u8 *) b + ntohs(b->iph.tot_len);
while (ext < end && *ext != 0xff) {
if (*ext == 0) /* Padding */
ext++;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)