From e29cf8ad4df5de99137bc39d63e591bcb45cda29 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Tue, 19 Dec 2017 20:35:04 +0300 Subject: ipoe: arp: do not reply on requests from 0.0.0.0 --- accel-pppd/ctrl/ipoe/arp.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'accel-pppd/ctrl/ipoe') 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; -- cgit v1.2.3