summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ipoe/ipoe.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c
index c2ff3ba7..f1addcc8 100644
--- a/drivers/ipoe/ipoe.c
+++ b/drivers/ipoe/ipoe.c
@@ -703,7 +703,6 @@ static rx_handler_result_t ipoe_recv(struct sk_buff **pskb)
struct net_device *out = NULL;
struct ipoe_session *ses = NULL;
struct iphdr *iph = NULL;
- struct _arphdr *arph = NULL;
struct ethhdr *eth = eth_hdr(skb);
int noff;
struct net_device_stats *stats;
@@ -724,7 +723,9 @@ static rx_handler_result_t ipoe_recv(struct sk_buff **pskb)
iph = ip_hdr(skb);
saddr = iph->saddr;
- } else if (likely(skb->protocol == htons(ETH_P_ARP))) {
+ } /*else if (likely(skb->protocol == htons(ETH_P_ARP))) {
+ struct _arphdr *arph = NULL;
+
noff = skb_network_offset(skb);
if (skb->len < sizeof(*arph))
@@ -745,7 +746,7 @@ static rx_handler_result_t ipoe_recv(struct sk_buff **pskb)
return RX_HANDLER_PASS;
saddr = arph->ar_sip;
- } else
+ }*/ else
return RX_HANDLER_PASS;
if (!saddr || saddr == 0xffffffff)