summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/ctrl/ipoe')
-rw-r--r--accel-pppd/ctrl/ipoe/arp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/arp.c b/accel-pppd/ctrl/ipoe/arp.c
index a630e98..0698bd1 100644
--- a/accel-pppd/ctrl/ipoe/arp.c
+++ b/accel-pppd/ctrl/ipoe/arp.c
@@ -53,6 +53,9 @@ static void arp_ctx_read(struct _arphdr *ah)
struct ipoe_serv *ipoe = container_of(triton_context_self(), typeof(*ipoe), ctx);
struct sockaddr_ll dst;
+ if (ah->ar_spa == ah->ar_tpa)
+ goto out;
+
memset(&dst, 0, sizeof(dst));
dst.sll_family = AF_PACKET;
dst.sll_ifindex = ipoe->ifindex;
@@ -101,7 +104,7 @@ static void arp_ctx_read(struct _arphdr *ah)
}
if (ses2) {
- if (ipoe->opt_arp == 1 || ses1 == ses2) {
+ if (ipoe->opt_arp == 1) {
pthread_mutex_unlock(&ipoe->lock);
goto out;
}