mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 09:11:07 -04:00
Use the length of the interface name, not the length of its address when
printing the name. Approved by: brian
This commit is contained in:
parent
ad836d50cb
commit
772670ea02
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue