summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2004-01-21 22:00:50 +0000
committerbrooks <brooks@FreeBSD.org>2004-01-21 22:00:50 +0000
commit64e6eeb6c46d005dd0bca14811b069af8854a913 (patch)
tree4d8333b6574f815e5b0af5b1a7e9c08d28808c33 /usr.sbin/ppp
parent7b3d7d7361642f9f9d408923a6e283197af98b62 (diff)
downloadFreeBSD-src-64e6eeb6c46d005dd0bca14811b069af8854a913.zip
FreeBSD-src-64e6eeb6c46d005dd0bca14811b069af8854a913.tar.gz
Use the length of the interface name, not the length of its address when
printing the name. Approved by: brian
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/arp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/arp.c b/usr.sbin/ppp/arp.c
index 47b7869..2c51352 100644
--- a/usr.sbin/ppp/arp.c
+++ b/usr.sbin/ppp/arp.c
@@ -302,7 +302,7 @@ arp_EtherAddr(int s, struct in_addr ipaddr, struct sockaddr_dl *hwaddr,
if ((ifa->sin_addr.s_addr & netmask->sin_addr.s_addr) ==
(ipaddr.s_addr & netmask->sin_addr.s_addr)) {
log_Printf(verbose ? LogPHASE : LogDEBUG,
- "Found interface %.*s for %s\n", dl->sdl_alen,
+ "Found interface %.*s for %s\n", dl->sdl_nlen,
dl->sdl_data, inet_ntoa(ipaddr));
memcpy(hwaddr, dl, dl->sdl_len);
free(buf);
OpenPOWER on IntegriCloud