summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/mp.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-07-31 15:19:07 +0000
committerbrian <brian@FreeBSD.org>2001-07-31 15:19:07 +0000
commit160b405b91c3562b55c42216ca9100b40bd7542e (patch)
treeda754efd1880096505b490f78d835e000adcab55 /usr.sbin/ppp/mp.c
parentf08bb448bdf44804388976655f9a625d3860818a (diff)
downloadFreeBSD-src-160b405b91c3562b55c42216ca9100b40bd7542e.zip
FreeBSD-src-160b405b91c3562b55c42216ca9100b40bd7542e.tar.gz
Remove an irritating diagnostic emitted to LogPHASE when a
static proxy arp entry is deleted. Rename a function (for consistency) and remove some whitespace (for readability). MFC after: 1 week
Diffstat (limited to 'usr.sbin/ppp/mp.c')
-rw-r--r--usr.sbin/ppp/mp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/mp.c b/usr.sbin/ppp/mp.c
index 448b9e2..8892cd2 100644
--- a/usr.sbin/ppp/mp.c
+++ b/usr.sbin/ppp/mp.c
@@ -998,7 +998,7 @@ mp_SetEnddisc(struct cmdargs const *arg)
log_Printf(LogERROR, "set enddisc: socket(): %s\n", strerror(errno));
return 2;
}
- if (get_ether_addr(s, addr, &hwaddr)) {
+ if (arp_EtherAddr(s, addr, &hwaddr, 1)) {
mp->cfg.enddisc.class = ENDDISC_MAC;
memcpy(mp->cfg.enddisc.address, hwaddr.sdl_data + hwaddr.sdl_nlen,
hwaddr.sdl_alen);
OpenPOWER on IntegriCloud