mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
lla_lookup() can directly call llentry_free() for static entries
and the last one requires to hold afdata's wlock. PR: 197096 MFC after: 1 week
This commit is contained in:
parent
bb057644cf
commit
1b5aa92cff
1 changed files with 2 additions and 2 deletions
|
|
@ -149,10 +149,10 @@ arp_ifscrub(struct ifnet *ifp, uint32_t addr)
|
|||
addr4.sin_len = sizeof(addr4);
|
||||
addr4.sin_family = AF_INET;
|
||||
addr4.sin_addr.s_addr = addr;
|
||||
IF_AFDATA_RLOCK(ifp);
|
||||
IF_AFDATA_WLOCK(ifp);
|
||||
lla_lookup(LLTABLE(ifp), (LLE_DELETE | LLE_IFADDR),
|
||||
(struct sockaddr *)&addr4);
|
||||
IF_AFDATA_RUNLOCK(ifp);
|
||||
IF_AFDATA_WUNLOCK(ifp);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue