mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-02-16 15:20:42 +01:00
wired: Check that packets are either unicast or multicast
This commit is contained in:
parent
6dc2706459
commit
2000a24ff6
@ -266,6 +266,10 @@ static bool pae_read(struct l_io *io, void *user_data)
|
|||||||
if (ntohs(sll.sll_protocol) != ETH_P_PAE)
|
if (ntohs(sll.sll_protocol) != ETH_P_PAE)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
if (sll.sll_pkttype != PACKET_HOST &&
|
||||||
|
sll.sll_pkttype != PACKET_MULTICAST)
|
||||||
|
return true;
|
||||||
|
|
||||||
dev = ethdev_lookup(sll.sll_ifindex);
|
dev = ethdev_lookup(sll.sll_ifindex);
|
||||||
if (!dev)
|
if (!dev)
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user