Commit 07d91129 authored by Peter Buckingham's avatar Peter Buckingham Committed by David S. Miller

[IPCONFIG]: Verify DHCPACK packets.

Signed-off-by: default avatarPeter Buckingham <peter@pantasys.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8d34d4fd
...@@ -966,6 +966,11 @@ static int __init ic_bootp_recv(struct sk_buff *skb, struct net_device *dev, str ...@@ -966,6 +966,11 @@ static int __init ic_bootp_recv(struct sk_buff *skb, struct net_device *dev, str
break; break;
case DHCPACK: 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! */ /* Yeah! */
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment