Add IF_AFDATA_WLOCK_ASSERT() in case lla_lookup() is called with
LLE_CREATE flag. MFC after: 1 week
This commit is contained in:
parent
a7ae566647
commit
941bb837f9
@ -1127,6 +1127,7 @@ in_lltable_lookup(struct lltable *llt, u_int flags, const struct sockaddr *l3add
|
||||
#endif
|
||||
if (!(flags & LLE_CREATE))
|
||||
return (NULL);
|
||||
IF_AFDATA_WLOCK_ASSERT(ifp);
|
||||
/*
|
||||
* A route that covers the given address must have
|
||||
* been installed 1st because we are doing a resolution,
|
||||
|
@ -2332,6 +2332,7 @@ in6_lltable_lookup(struct lltable *llt, u_int flags,
|
||||
if (lle == NULL) {
|
||||
if (!(flags & LLE_CREATE))
|
||||
return (NULL);
|
||||
IF_AFDATA_WLOCK_ASSERT(ifp);
|
||||
/*
|
||||
* A route that covers the given address must have
|
||||
* been installed 1st because we are doing a resolution,
|
||||
|
Loading…
x
Reference in New Issue
Block a user