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
1 changed files with 4 additions and 0 deletions

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;