mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:29:23 +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)
|
||||
return true;
|
||||
|
||||
if (sll.sll_pkttype != PACKET_HOST &&
|
||||
sll.sll_pkttype != PACKET_MULTICAST)
|
||||
return true;
|
||||
|
||||
dev = ethdev_lookup(sll.sll_ifindex);
|
||||
if (!dev)
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user