From eef5769ec1d3a7c2cdec5f515b4686e7076260c3 Mon Sep 17 00:00:00 2001 From: Dmitriy Eshenko Date: Tue, 26 Dec 2023 19:03:55 +0300 Subject: ipoe: check localnet only for start=UP (unclassified packets) sessions --- accel-pppd/ctrl/ipoe/arp.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'accel-pppd') 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; -- cgit v1.2.3