From 2000a24ff68734d572bf32111d024dd2864e69c5 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 16 Oct 2018 15:12:53 +0200 Subject: [PATCH] wired: Check that packets are either unicast or multicast --- wired/ethdev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wired/ethdev.c b/wired/ethdev.c index 25664d94..c09e9bcf 100644 --- a/wired/ethdev.c +++ b/wired/ethdev.c @@ -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;