Lines Matching defs:ethhdr
345 struct ethhdr *ethhdr;
381 ethhdr = (struct ethhdr *)skb->data;
382 hw_src = (u8 *)ethhdr + ETH_HLEN + sizeof(struct arphdr);
390 ether_addr_copy(ethhdr->h_source, mac);
411 ethhdr->h_source, batadv_print_vid(vid));
419 ether_addr_copy(ethhdr->h_dest, mac);
422 ethhdr->h_source, ethhdr->h_dest,
426 ether_addr_copy(ethhdr->h_source, mac);
429 __func__, ethhdr->h_source, ethhdr->h_dest,
895 * @ethhdr: ethernet header of a packet
902 u8 *backbone_addr, struct ethhdr *ethhdr,
906 if (!batadv_compare_eth(backbone_addr, ethhdr->h_dest))
912 if (!batadv_compare_eth(ethhdr->h_dest, primary_if->net_dev->dev_addr))
917 __func__, batadv_print_vid(vid), ethhdr->h_source);
1004 * @ethhdr: pointer to the Ethernet header of the claim frame
1018 struct ethhdr *ethhdr)
1037 backbone_addr = ethhdr->h_source;
1089 struct ethhdr *ethhdr;
1098 ethhdr = eth_hdr(skb);
1100 proto = ethhdr->h_proto;
1131 /* pskb_may_pull() may have modified the pointers, get ethhdr again */
1132 ethhdr = eth_hdr(skb);
1133 arphdr = (struct arphdr *)((u8 *)ethhdr + headlen);
1170 ethhdr);
1174 __func__, ethhdr->h_source, batadv_print_vid(vid),
1187 ethhdr->h_source, vid))
1192 ethhdr->h_source, hw_src, vid))
1197 if (batadv_handle_announce(bat_priv, hw_src, ethhdr->h_source,
1202 if (batadv_handle_request(bat_priv, primary_if, hw_src, ethhdr,
1210 __func__, ethhdr->h_source, batadv_print_vid(vid), hw_src,
1849 struct ethhdr *ethhdr;
1852 ethhdr = eth_hdr(skb);
1857 if (!batadv_compare_eth(ethhdr->h_source,
1905 struct ethhdr *ethhdr;
1911 ethhdr = eth_hdr(skb);
1925 if (is_multicast_ether_addr(ethhdr->h_dest))
1946 if (is_multicast_ether_addr(ethhdr->h_dest) &&
1951 ether_addr_copy(search_claim.addr, ethhdr->h_source);
1962 __func__, ethhdr->h_source,
1964 ethhdr->h_source, vid) ?
1968 ethhdr->h_source, vid);
1985 if (is_multicast_ether_addr(ethhdr->h_dest) &&
2001 ethhdr->h_source, vid);
2041 struct ethhdr *ethhdr;
2058 ethhdr = eth_hdr(skb);
2062 if (is_multicast_ether_addr(ethhdr->h_dest))
2065 ether_addr_copy(search_claim.addr, ethhdr->h_source);
2090 __func__, ethhdr->h_source);
2093 ethhdr->h_source, vid);
2097 __func__, ethhdr->h_source);
2103 if (is_multicast_ether_addr(ethhdr->h_dest)) {