From: Herbert Poetzl <herbert@13thfloor.at>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: 2.6.9-rc1-bk16: DHCPACK, compile time error ...
Date: Thu, 9 Sep 2004 16:14:04 +0200 [thread overview]
Message-ID: <20040909141403.GD14891@MAIL.13thfloor.at> (raw)
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
next reply other threads:[~2004-09-09 14:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-09 14:14 Herbert Poetzl [this message]
2004-09-09 15:49 ` David S. Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040909141403.GD14891@MAIL.13thfloor.at \
--to=herbert@13thfloor.at \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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