summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--accel-pppd/ctrl/ipoe/arp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/accel-pppd/ctrl/ipoe/arp.c b/accel-pppd/ctrl/ipoe/arp.c
index e94d61a0..e9b55ff4 100644
--- a/accel-pppd/ctrl/ipoe/arp.c
+++ b/accel-pppd/ctrl/ipoe/arp.c
@@ -92,7 +92,7 @@ static void arp_ctx_read(struct _arphdr *ah)
break;
}
- if (!ses1 && ipoe->opt_up) {
+ if (!ses1 && ipoe->opt_up && ipoe_check_localnet(ah->ar_spa)) {
ipoe_serv_recv_arp(ipoe, ah);
pthread_mutex_unlock(&ipoe->lock);
goto out;
@@ -191,9 +191,6 @@ static int arp_read(struct triton_md_handler_t *h)
if (ah->ar_spa == 0)
continue;
- if (!ipoe_check_localnet(ah->ar_spa))
- continue;
-
t = &arp_tree[src.sll_ifindex & HASH_BITS];
parent = NULL;