3
0
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:
Marcel Holtmann 2018-10-16 15:12:53 +02:00
parent 6dc2706459
commit 2000a24ff6

View File

@ -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;