summaryrefslogtreecommitdiff
path: root/drivers/ipoe/ipoe.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2016-11-29 22:19:52 +0300
committerDmitry Kozlov <xeb@mail.ru>2016-11-29 22:19:52 +0300
commit8557ca019041374d43712506eecc21479f83b9e6 (patch)
tree92bb6ffd66129da92250e54d7f143aeed1f78cdb /drivers/ipoe/ipoe.c
parent01a985316d5240e7a2ba9ba683493cc015282d8a (diff)
downloadaccel-ppp-xebd-8557ca019041374d43712506eecc21479f83b9e6.tar.gz
accel-ppp-xebd-8557ca019041374d43712506eecc21479f83b9e6.zip
ipoe: apply offer-delay rules to arp initiated sessions
Diffstat (limited to 'drivers/ipoe/ipoe.c')
-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 c2ff3ba..f1addcc 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)