When bridging is enabled and an ARP request is recieved on a member interface,

the arp code will search all local interfaces for a match. This triggers a
kernel log if the bridge has been assigned an address.

arp: ac🇩🇪48:18:83:3d is using my IP address 192.168.0.142!

bridge0: flags=8041<UP,RUNNING,MULTICAST> mtu 1500
        inet 192.168.0.142 netmask 0xffffff00
        ether ac🇩🇪48:18:83:3d

Silence this warning for 6.0 to stop unnecessary bug reports, the code will need
to be reworked.

Approved by:	mlaier (mentor)
MFC after:	3 days
This commit is contained in:
thompsa 2005-10-04 19:50:02 +00:00
parent 7990daf715
commit fe5395b846

View File

@ -677,7 +677,7 @@ match:
* case we suppress the warning to avoid false positive complaints of
* potential misconfiguration.
*/
if (isaddr.s_addr == myaddr.s_addr && myaddr.s_addr != 0) {
if (!bridged && isaddr.s_addr == myaddr.s_addr && myaddr.s_addr != 0) {
log(LOG_ERR,
"arp: %*D is using my IP address %s!\n",
ifp->if_addrlen, (u_char *)ar_sha(ah), ":",