diff options
author | billf <billf@FreeBSD.org> | 2001-03-08 01:52:49 +0000 |
---|---|---|
committer | billf <billf@FreeBSD.org> | 2001-03-08 01:52:49 +0000 |
commit | b8cf81c9f333e402b70e915f9679ac397f4c8c9f (patch) | |
tree | 6d80537e202798472d5056e2e7f2894d39c1bad5 /usr.sbin/arp/arp.c | |
parent | b3227af0b76c63ab435dff542a6341dad69174f6 (diff) | |
download | FreeBSD-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.c | 3 |
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 |