diff options
author | brooks <brooks@FreeBSD.org> | 2004-01-21 22:00:50 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2004-01-21 22:00:50 +0000 |
commit | 64e6eeb6c46d005dd0bca14811b069af8854a913 (patch) | |
tree | 4d8333b6574f815e5b0af5b1a7e9c08d28808c33 /usr.sbin/ppp | |
parent | 7b3d7d7361642f9f9d408923a6e283197af98b62 (diff) | |
download | FreeBSD-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.c | 2 |
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); |