From 8557ca019041374d43712506eecc21479f83b9e6 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Tue, 29 Nov 2016 22:19:52 +0300 Subject: ipoe: apply offer-delay rules to arp initiated sessions --- drivers/ipoe/ipoe.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'drivers') 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) -- cgit v1.2.3