summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxebd <xeb@mail.ru>2021-10-21 15:42:08 +0300
committerGitHub <noreply@github.com>2021-10-21 15:42:08 +0300
commit51bd8165bb335a8db966c4df344810e7ef2c563c (patch)
treec2ee5d10d971c247fb418817395a5aeaf5725b90
parent1b8711cf75a7c278d99840112bc7a396398e0205 (diff)
parent791acb435ece77ce6f7d78f6ed1b2c9e0c866a9e (diff)
downloadaccel-ppp-51bd8165bb335a8db966c4df344810e7ef2c563c.tar.gz
accel-ppp-51bd8165bb335a8db966c4df344810e7ef2c563c.zip
Merge pull request #24 from svlobanov/T50-arp-smac
T50: use server mac in arp replies for proxy_arp=2
-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 fa6858d2..e94d61a0 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);