mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
netlink: fix neighbour deleting for IPv6.
MFC after: 2 weeks
This commit is contained in:
1 parent
6ad73dbf65
commit
896e22fbc6
1 file changed
+2
-1
@@ -479,7 +479,8 @@ rtnl_handle_delneigh(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *
|
||||
return (EAFNOSUPPORT);
|
||||
|
||||
IF_AFDATA_WLOCK(attrs.nda_ifp);
|
||||
struct llentry *lle = lla_lookup(llt, LLE_EXCLUSIVE, attrs.nda_dst);
|
||||
struct llentry *lle = lla_lookup(llt, LLE_SF(attrs.ndm_family, LLE_EXCLUSIVE),
|
||||
attrs.nda_dst);
|
||||
if (lle != NULL) {
|
||||
if ((lle->la_flags & LLE_IFADDR) != 0) {
|
||||
LLE_WUNLOCK(lle);
|
||||
|
||||
Reference in new issue
Block a user