1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-03 09:00:21 +00:00

Do not try removing an ARP entry associated with a given interface

address if that interface does not support ARP. Otherwise the
system will generate error messages unnecessarily due to the missing
entry.

PR:		kern/159602
Submitted by:	pluknet
MFC after:	3 days
This commit is contained in:
Qing Li 2011-10-07 22:22:19 +00:00
parent 4c7ad48309
commit 6703e7ea10
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226120

View File

@ -1138,7 +1138,8 @@ in_scrubprefix(struct in_ifaddr *target, u_int flags)
if (error == 0)
target->ia_flags &= ~IFA_RTSELF;
}
if (flags & LLE_STATIC)
if ((flags & LLE_STATIC) &&
!(target->ia_ifp->if_flags & IFF_NOARP))
/* remove arp cache */
arp_ifscrub(target->ia_ifp, IA_SIN(target)->sin_addr.s_addr);
}