summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2017-12-19 20:35:04 +0300
committerDmitry Kozlov <xeb@mail.ru>2017-12-19 20:35:04 +0300
commite29cf8ad4df5de99137bc39d63e591bcb45cda29 (patch)
tree33464182e3183fb02218316055ba767a574c5775 /accel-pppd/ctrl
parent4d5401bff79a0d772bba8cc03be148af83c3de08 (diff)
downloadaccel-ppp-e29cf8ad4df5de99137bc39d63e591bcb45cda29.tar.gz
accel-ppp-e29cf8ad4df5de99137bc39d63e591bcb45cda29.zip
ipoe: arp: do not reply on requests from 0.0.0.0
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r--accel-pppd/ctrl/ipoe/arp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/ipoe/arp.c b/accel-pppd/ctrl/ipoe/arp.c
index 36b03447..a630e981 100644
--- a/accel-pppd/ctrl/ipoe/arp.c
+++ b/accel-pppd/ctrl/ipoe/arp.c
@@ -188,6 +188,9 @@ static int arp_read(struct triton_md_handler_t *h)
if (memcmp(ah->ar_sha, src.sll_addr, ETH_ALEN))
continue;
+ if (ah->ar_spa == 0)
+ continue;
+
t = &arp_tree[src.sll_ifindex & HASH_BITS];
parent = NULL;