summaryrefslogtreecommitdiffstats
path: root/usr.sbin/arp/arp.c
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>2001-03-08 01:52:49 +0000
committerbillf <billf@FreeBSD.org>2001-03-08 01:52:49 +0000
commitb8cf81c9f333e402b70e915f9679ac397f4c8c9f (patch)
tree6d80537e202798472d5056e2e7f2894d39c1bad5 /usr.sbin/arp/arp.c
parentb3227af0b76c63ab435dff542a6341dad69174f6 (diff)
downloadFreeBSD-src-b8cf81c9f333e402b70e915f9679ac397f4c8c9f.zip
FreeBSD-src-b8cf81c9f333e402b70e915f9679ac397f4c8c9f.tar.gz
zeropad mac address ouput
PR: bin/25584 Submitted by: David Xu <davidx@viasoft.com.cn> Reviewed by: wollman, billf
Diffstat (limited to 'usr.sbin/arp/arp.c')
-rw-r--r--usr.sbin/arp/arp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c
index 15e8aec..4338c5f 100644
--- a/usr.sbin/arp/arp.c
+++ b/usr.sbin/arp/arp.c
@@ -537,7 +537,8 @@ nuke_entry(struct sockaddr_dl *sdl,
void
ether_print(u_char *cp)
{
- printf("%x:%x:%x:%x:%x:%x", cp[0], cp[1], cp[2], cp[3], cp[4], cp[5]);
+ printf("%02x:%02x:%02x:%02x:%02x:%02x", cp[0], cp[1], cp[2], cp[3],
+ cp[4], cp[5]);
}
int
OpenPOWER on IntegriCloud