diff options
author | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2006-03-03 03:18:08 +0100 |
---|---|---|
committer | root <root@jk-desktop.jf.intel.com> | 2006-03-03 03:18:08 +0100 |
commit | 20a44028f06030a71a1250ad8efb0a7fb556c3ea (patch) | |
tree | 3e8bb3e77b4e0453a24aad97f3f6c3700ea6fd48 /drivers/net/e1000 | |
parent | e1000: Fix AMT losing connectivity when switching VLAN in passive mode (diff) | |
download | linux-20a44028f06030a71a1250ad8efb0a7fb556c3ea.tar.xz linux-20a44028f06030a71a1250ad8efb0a7fb556c3ea.zip |
e1000: Fix dhcp issue when the skb structure fields are not filled properly
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: John Ronciak <john.ronciak@intel.com>
Diffstat (limited to 'drivers/net/e1000')
-rw-r--r-- | drivers/net/e1000/e1000_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c index 0109cc72746c..a525c95266f1 100644 --- a/drivers/net/e1000/e1000_main.c +++ b/drivers/net/e1000/e1000_main.c @@ -2678,7 +2678,7 @@ e1000_transfer_dhcp_info(struct e1000_adapter *adapter, struct sk_buff *skb) E1000_MNG_DHCP_COOKIE_STATUS_VLAN_SUPPORT)) ) return 0; } - if ((skb->len > MINIMUM_DHCP_PACKET_SIZE) && (!skb->protocol)) { + if (skb->len > MINIMUM_DHCP_PACKET_SIZE) { struct ethhdr *eth = (struct ethhdr *) skb->data; if ((htons(ETH_P_IP) == eth->h_proto)) { const struct iphdr *ip = |