diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2016-11-29 22:19:52 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2016-11-29 22:19:52 +0300 |
commit | 8557ca019041374d43712506eecc21479f83b9e6 (patch) | |
tree | 92bb6ffd66129da92250e54d7f143aeed1f78cdb /drivers | |
parent | 01a985316d5240e7a2ba9ba683493cc015282d8a (diff) | |
download | accel-ppp-8557ca019041374d43712506eecc21479f83b9e6.tar.gz accel-ppp-8557ca019041374d43712506eecc21479f83b9e6.zip |
ipoe: apply offer-delay rules to arp initiated sessions
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ipoe/ipoe.c | 7 |
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) |