summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2016-04-02 11:14:12 +0300
committerDmitry Kozlov <xeb@mail.ru>2016-04-02 11:14:12 +0300
commit60a945d8f075a5b90882455fa50678e2888b1d0f (patch)
tree9a58ee56dc3380b901d1af12b1fc2358f4317edf /drivers
parent4482b6e5b79d817cdd55fbc7b269d650105c05e5 (diff)
downloadaccel-ppp-60a945d8f075a5b90882455fa50678e2888b1d0f.tar.gz
accel-ppp-60a945d8f075a5b90882455fa50678e2888b1d0f.zip
ipoe_mod: ignore 0.0.0.0 and 255.255.255.255 addresses
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ipoe/ipoe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c
index c2a7d61..5300d64 100644
--- a/drivers/ipoe/ipoe.c
+++ b/drivers/ipoe/ipoe.c
@@ -724,8 +724,6 @@ static rx_handler_result_t ipoe_recv(struct sk_buff **pskb)
iph = ip_hdr(skb);
saddr = iph->saddr;
- if (!saddr || saddr == 0xffffffff)
- return RX_HANDLER_PASS;
} else if (likely(skb->protocol == htons(ETH_P_ARP))) {
noff = skb_network_offset(skb);
@@ -750,6 +748,9 @@ static rx_handler_result_t ipoe_recv(struct sk_buff **pskb)
} else
return RX_HANDLER_PASS;
+ if (!saddr || saddr == 0xffffffff)
+ return RX_HANDLER_PASS;
+
//pr_info("ipoe: recv %08x %08x\n", iph->saddr, iph->daddr);
ses = ipoe_lookup_rt(skb, saddr, &out);