mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.6.9-rc1-bk16: DHCPACK, compile time error ...
@ 2004-09-09 14:14 Herbert Poetzl
  2004-09-09 15:49 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Herbert Poetzl @ 2004-09-09 14:14 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel


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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-09-09 15:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-09 14:14 2.6.9-rc1-bk16: DHCPACK, compile time error Herbert Poetzl
2004-09-09 15:49 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome