An unicast batman-adv packet cannot be transmitted to a multicast or zero
mac address. So reject incoming packets which still have these classes of
addresses as destination mac address in the outer ethernet header.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
 
        ethhdr = eth_hdr(skb);
 
-       /* packet with unicast indication but broadcast recipient */
-       if (is_broadcast_ether_addr(ethhdr->h_dest))
+       /* packet with unicast indication but non-unicast recipient */
+       if (!is_valid_ether_addr(ethhdr->h_dest))
                goto free_skb;
 
        /* packet with broadcast/multicast sender address */
 
        ethhdr = eth_hdr(skb);
 
-       /* packet with unicast indication but broadcast recipient */
-       if (is_broadcast_ether_addr(ethhdr->h_dest))
+       /* packet with unicast indication but non-unicast recipient */
+       if (!is_valid_ether_addr(ethhdr->h_dest))
                return -EBADR;
 
        /* packet with broadcast/multicast sender address */