mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
zeropad mac address ouput
PR: bin/25584 Submitted by: David Xu <davidx@viasoft.com.cn> Reviewed by: wollman, billf
This commit is contained in:
parent
af1ac47537
commit
5651a03692
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=73973
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user