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:
parent
4c7ad48309
commit
6703e7ea10
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226120
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user