summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl
diff options
context:
space:
mode:
authorSergey V. Lobanov <svlobanov@users.noreply.github.com>2021-10-20 20:06:19 +0300
committerGitHub <noreply@github.com>2021-10-20 20:06:19 +0300
commit791acb435ece77ce6f7d78f6ed1b2c9e0c866a9e (patch)
treec2ee5d10d971c247fb418817395a5aeaf5725b90 /accel-pppd/ctrl
parent1b8711cf75a7c278d99840112bc7a396398e0205 (diff)
downloadaccel-ppp-791acb435ece77ce6f7d78f6ed1b2c9e0c866a9e.tar.gz
accel-ppp-791acb435ece77ce6f7d78f6ed1b2c9e0c866a9e.zip
T50: use server mac in arp replies for proxy_arp=2
proxy_arp=2 should be used for ipoe setup with shared vlan and intra-vlan l2 isolation. accel-ppp should use server mac when sending arp reply message. There is no reason to send subscriber's mac if proxy_arp is enabled In case of ipoe shared vlan without l2-isolation, proxy_arp=1 should be used
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r--accel-pppd/ctrl/ipoe/arp.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/accel-pppd/ctrl/ipoe/arp.c b/accel-pppd/ctrl/ipoe/arp.c
index fa6858d..e94d61a 100644
--- a/accel-pppd/ctrl/ipoe/arp.c
+++ b/accel-pppd/ctrl/ipoe/arp.c
@@ -109,13 +109,8 @@ static void arp_ctx_read(struct _arphdr *ah)
pthread_mutex_unlock(&ipoe->lock);
goto out;
}
-
- if (ipoe->opt_arp == 2)
- memcpy(ah2.ar_sha, ses2->hwaddr, ETH_ALEN);
- else
- memcpy(ah2.ar_sha, ipoe->hwaddr, ETH_ALEN);
- } else
- memcpy(ah2.ar_sha, ipoe->hwaddr, ETH_ALEN);
+ }
+ memcpy(ah2.ar_sha, ipoe->hwaddr, ETH_ALEN);
pthread_mutex_unlock(&ipoe->lock);