|
@@ -196,8 +196,8 @@ bool batadv_check_management_packet(struct sk_buff *skb,
|
|
if (!is_broadcast_ether_addr(ethhdr->h_dest))
|
|
if (!is_broadcast_ether_addr(ethhdr->h_dest))
|
|
return false;
|
|
return false;
|
|
|
|
|
|
- /* packet with broadcast sender address */
|
|
|
|
- if (is_broadcast_ether_addr(ethhdr->h_source))
|
|
|
|
|
|
+ /* packet with invalid sender address */
|
|
|
|
+ if (!is_valid_ether_addr(ethhdr->h_source))
|
|
return false;
|
|
return false;
|
|
|
|
|
|
/* create a copy of the skb, if needed, to modify it. */
|
|
/* create a copy of the skb, if needed, to modify it. */
|