summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-07-09 01:44:17 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-07-09 01:44:17 +0000
commite771b42a9fd9053fb7214dac8804c3ce493161db (patch)
treefaea87b76bcf4443788b9de3099bc2e337cc58ff
parentd59a898cf3e85ad88aa34ab5aabb9c24ca665693 (diff)
rev 1.45
Use the length of the interface name, not the length of its address when printing the name. From brooks FreeBSD
-rw-r--r--usr.sbin/ppp/ppp/arp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ppp/arp.c b/usr.sbin/ppp/ppp/arp.c
index 6f83f517bd3..c343610868a 100644
--- a/usr.sbin/ppp/ppp/arp.c
+++ b/usr.sbin/ppp/ppp/arp.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $OpenBSD: arp.c,v 1.13 2002/01/16 14:13:06 brian Exp $
+ * $OpenBSD: arp.c,v 1.14 2005/07/09 01:44:16 brad Exp $
*
*/
@@ -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);