mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-25 23:24:09 +01:00
monitor: Fix check for netlink hardware and protocol type
This commit is contained in:
parent
4a5f30bbc2
commit
9fbd454c88
@ -1553,7 +1553,10 @@ static bool nlmon_receive(struct l_io *io, void *user_data)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ntohs(sll.sll_protocol) != NETLINK_GENERIC)
|
if (sll.sll_protocol != htons(NETLINK_GENERIC))
|
||||||
|
return true;
|
||||||
|
|
||||||
|
if (sll.sll_hatype != ARPHRD_NETLINK)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
for (cmsg = CMSG_FIRSTHDR(&msg); cmsg;
|
for (cmsg = CMSG_FIRSTHDR(&msg); cmsg;
|
||||||
|
Loading…
Reference in New Issue
Block a user