|
@@ -770,11 +770,11 @@ int recv_bat_packet(struct sk_buff *skb, struct batman_if *batman_if)
|
|
|
ethhdr = (struct ethhdr *)skb_mac_header(skb);
|
|
|
|
|
|
/* packet with broadcast indication but unicast recipient */
|
|
|
- if (!is_bcast(ethhdr->h_dest))
|
|
|
+ if (!is_broadcast_ether_addr(ethhdr->h_dest))
|
|
|
return NET_RX_DROP;
|
|
|
|
|
|
/* packet with broadcast sender address */
|
|
|
- if (is_bcast(ethhdr->h_source))
|
|
|
+ if (is_broadcast_ether_addr(ethhdr->h_source))
|
|
|
return NET_RX_DROP;
|
|
|
|
|
|
/* create a copy of the skb, if needed, to modify it. */
|
|
@@ -946,11 +946,11 @@ int recv_icmp_packet(struct sk_buff *skb, struct batman_if *recv_if)
|
|
|
ethhdr = (struct ethhdr *)skb_mac_header(skb);
|
|
|
|
|
|
/* packet with unicast indication but broadcast recipient */
|
|
|
- if (is_bcast(ethhdr->h_dest))
|
|
|
+ if (is_broadcast_ether_addr(ethhdr->h_dest))
|
|
|
return NET_RX_DROP;
|
|
|
|
|
|
/* packet with broadcast sender address */
|
|
|
- if (is_bcast(ethhdr->h_source))
|
|
|
+ if (is_broadcast_ether_addr(ethhdr->h_source))
|
|
|
return NET_RX_DROP;
|
|
|
|
|
|
/* not for me */
|
|
@@ -1118,11 +1118,11 @@ static int check_unicast_packet(struct sk_buff *skb, int hdr_size)
|
|
|
ethhdr = (struct ethhdr *)skb_mac_header(skb);
|
|
|
|
|
|
/* packet with unicast indication but broadcast recipient */
|
|
|
- if (is_bcast(ethhdr->h_dest))
|
|
|
+ if (is_broadcast_ether_addr(ethhdr->h_dest))
|
|
|
return -1;
|
|
|
|
|
|
/* packet with broadcast sender address */
|
|
|
- if (is_bcast(ethhdr->h_source))
|
|
|
+ if (is_broadcast_ether_addr(ethhdr->h_source))
|
|
|
return -1;
|
|
|
|
|
|
/* not for me */
|
|
@@ -1282,11 +1282,11 @@ int recv_bcast_packet(struct sk_buff *skb, struct batman_if *recv_if)
|
|
|
ethhdr = (struct ethhdr *)skb_mac_header(skb);
|
|
|
|
|
|
/* packet with broadcast indication but unicast recipient */
|
|
|
- if (!is_bcast(ethhdr->h_dest))
|
|
|
+ if (!is_broadcast_ether_addr(ethhdr->h_dest))
|
|
|
return NET_RX_DROP;
|
|
|
|
|
|
/* packet with broadcast sender address */
|
|
|
- if (is_bcast(ethhdr->h_source))
|
|
|
+ if (is_broadcast_ether_addr(ethhdr->h_source))
|
|
|
return NET_RX_DROP;
|
|
|
|
|
|
/* ignore broadcasts sent by myself */
|