2.6.9-rc1-bk16: DHCPACK, compile time error ...

From: Herbert Poetzl
Date: Thu Sep 09 2004 - 09:21:26 EST



Hi Andrew!


diff -Nru a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c
--- a/net/ipv4/ipconfig.c 2004-07-05 16:26:17 -07:00
+++ b/net/ipv4/ipconfig.c 2004-09-07 15:33:17 -07:00
@@ -966,6 +966,11 @@
break;

case DHCPACK:
+ for (i = 0; (dev->dev_addr[i] == b->hw_addr[i])
+ && (i < dev->addr_len); i++);
+ if (i < dev->addr_len)
+ goto drop_unlock;
+
/* Yeah! */
break;


(from patch-2.6.9-rc1-bk16.bz2) results in:

net/ipv4/ipconfig.c: In function `ic_bootp_recv':
net/ipv4/ipconfig.c:969: error: `i' undeclared (first use in this function)
net/ipv4/ipconfig.c:969: error: (Each undeclared identifier is reported only once
net/ipv4/ipconfig.c:969: error: for each function it appears in.)


--- net/ipv4/ipconfig.c.orig 2004-09-09 15:18:26.000000000 +0200
+++ net/ipv4/ipconfig.c 2004-09-09 16:12:44.000000000 +0200
@@ -913,7 +913,7 @@ static int __init ic_bootp_recv(struct s
#ifdef IPCONFIG_DHCP
if (ic_proto_enabled & IC_USE_DHCP) {
u32 server_id = INADDR_NONE;
- int mt = 0;
+ int i, mt = 0;

ext = &b->exten[4];
while (ext < end && *ext != 0xff) {

fixes it ...

best,
Herbert


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/