| To: | "David S. Miller" <davem@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 2.6] ipconfig accepts any DHCPACK |
| From: | Peter Buckingham <peter@xxxxxxxxxxxx> |
| Date: | Tue, 07 Sep 2004 15:45:06 -0700 |
| Cc: | netdev@xxxxxxxxxxx |
| In-reply-to: | <20040907150204.119ba849.davem@xxxxxxxxxx> |
| References: | <413E2C26.5040108@xxxxxxxxxxxx> <20040907150204.119ba849.davem@xxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040820 Debian/1.7.2-4 |
David S. Miller wrote: > Just because there are 16 bytes of hw address in the bootp packet layout doesn't mean the device actually has that many. Please fix it to use dev->addr_len.
is this okay?
peter
Signed-off-by: Peter Buckingham <peter@xxxxxxxxxxxx>
--- linus-2.6/net/ipv4/ipconfig.c 2004-09-02 14:53:54.000000000 -0700
+++ local_linux/net/ipv4/ipconfig.c 2004-09-07 15:43:39.000000000 -0700
@@ -966,6 +966,11 @@ static int __init ic_bootp_recv(struct s
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;
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 2.6] ipconfig accepts any DHCPACK, David S. Miller |
|---|---|
| Next by Date: | Re: [PATCH 2.6] ipconfig accepts any DHCPACK, David S. Miller |
| Previous by Thread: | Re: [PATCH 2.6] ipconfig accepts any DHCPACK, David S. Miller |
| Next by Thread: | Re: [PATCH 2.6] ipconfig accepts any DHCPACK, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |