For the sake of convenience, print the name of the network interface

IPv4 address duplication was detected on.

Idea by:	marck
This commit is contained in:
yar 2007-12-04 13:01:12 +00:00
parent 569ad75e67
commit 6e65a1fee2

View File

@ -655,9 +655,9 @@ in_arpinput(struct mbuf *m)
*/
if (!bridged && isaddr.s_addr == myaddr.s_addr && myaddr.s_addr != 0) {
log(LOG_ERR,
"arp: %*D is using my IP address %s!\n",
"arp: %*D is using my IP address %s on %s!\n",
ifp->if_addrlen, (u_char *)ar_sha(ah), ":",
inet_ntoa(isaddr));
inet_ntoa(isaddr), ifp->if_xname);
itaddr = myaddr;
goto reply;
}