Lines Matching refs:ethhdr
181 struct ethhdr *ethhdr; in batadv_check_management_packet() local
187 ethhdr = eth_hdr(skb); in batadv_check_management_packet()
190 if (!is_broadcast_ether_addr(ethhdr->h_dest)) in batadv_check_management_packet()
194 if (!is_valid_ether_addr(ethhdr->h_source)) in batadv_check_management_packet()
344 struct ethhdr *ethhdr; in batadv_recv_icmp_packet() local
353 ethhdr = eth_hdr(skb); in batadv_recv_icmp_packet()
356 if (!is_valid_ether_addr(ethhdr->h_dest)) in batadv_recv_icmp_packet()
360 if (is_multicast_ether_addr(ethhdr->h_source)) in batadv_recv_icmp_packet()
364 if (!batadv_is_my_mac(bat_priv, ethhdr->h_dest)) in batadv_recv_icmp_packet()
380 ethhdr = eth_hdr(skb); in batadv_recv_icmp_packet()
387 ethhdr->h_dest); in batadv_recv_icmp_packet()
444 struct ethhdr *ethhdr; in batadv_check_unicast_packet() local
450 ethhdr = eth_hdr(skb); in batadv_check_unicast_packet()
453 if (!is_valid_ether_addr(ethhdr->h_dest)) in batadv_check_unicast_packet()
457 if (is_multicast_ether_addr(ethhdr->h_source)) in batadv_check_unicast_packet()
461 if (!batadv_is_my_mac(bat_priv, ethhdr->h_dest)) in batadv_check_unicast_packet()
662 struct ethhdr *ethhdr = eth_hdr(skb); in batadv_route_unicast_packet() local
671 ethhdr->h_source, unicast_packet->dest); in batadv_route_unicast_packet()
793 struct ethhdr *ethhdr; in batadv_check_unicast_ttvn() local
807 ethhdr = (struct ethhdr *)(skb->data + hdr_len); in batadv_check_unicast_ttvn()
810 if (is_multicast_ether_addr(ethhdr->h_dest)) in batadv_check_unicast_ttvn()
818 if (batadv_tt_local_client_is_roaming(bat_priv, ethhdr->h_dest, vid)) { in batadv_check_unicast_ttvn()
820 ethhdr->h_dest, vid)) in batadv_check_unicast_ttvn()
825 ethhdr->h_dest); in batadv_check_unicast_ttvn()
866 ethhdr->h_dest, vid)) { in batadv_check_unicast_ttvn()
869 unicast_packet->dest, ethhdr->h_dest, in batadv_check_unicast_ttvn()
878 if (!batadv_is_my_client(bat_priv, ethhdr->h_dest, vid)) in batadv_check_unicast_ttvn()
1171 struct ethhdr *ethhdr; in batadv_recv_bcast_packet() local
1181 ethhdr = eth_hdr(skb); in batadv_recv_bcast_packet()
1184 if (!is_broadcast_ether_addr(ethhdr->h_dest)) in batadv_recv_bcast_packet()
1188 if (is_multicast_ether_addr(ethhdr->h_source)) in batadv_recv_bcast_packet()
1192 if (batadv_is_my_mac(bat_priv, ethhdr->h_source)) in batadv_recv_bcast_packet()