From 35aea541e7a9069d9d18be5c9c2946e004d03e4a Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Tue, 26 Aug 2014 16:45:44 +0400 Subject: ipoe: implemneted proxy-arp=3 mode (always reply by interface mac address) --- accel-pppd/ctrl/ipoe/arp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'accel-pppd/ctrl') diff --git a/accel-pppd/ctrl/ipoe/arp.c b/accel-pppd/ctrl/ipoe/arp.c index e019d884..10ea138f 100644 --- a/accel-pppd/ctrl/ipoe/arp.c +++ b/accel-pppd/ctrl/ipoe/arp.c @@ -111,7 +111,10 @@ static int arp_read(struct triton_md_handler_t *h) pthread_mutex_unlock(&s->ipoe->lock); continue; } - memcpy(ah2.ar_sha, ses2->hwaddr, ETH_ALEN); + if (s->ipoe->opt_arp == 2) + memcpy(ah2.ar_sha, ses2->hwaddr, ETH_ALEN); + else + memcpy(ah2.ar_sha, s->ipoe->hwaddr, ETH_ALEN); } else memcpy(ah2.ar_sha, s->ipoe->hwaddr, ETH_ALEN); -- cgit v1.2.3