diff options
Diffstat (limited to 'accel-pppd/ctrl/ipoe/arp.c')
-rw-r--r-- | accel-pppd/ctrl/ipoe/arp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/arp.c b/accel-pppd/ctrl/ipoe/arp.c index e019d88..10ea138 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); |