Lines Matching defs:ethhdr

344 	struct ethhdr *ethhdr;
380 ethhdr = (struct ethhdr *)skb->data;
381 hw_src = (u8 *)ethhdr + ETH_HLEN + sizeof(struct arphdr);
389 ether_addr_copy(ethhdr->h_source, mac);
410 ethhdr->h_source, batadv_print_vid(vid));
418 ether_addr_copy(ethhdr->h_dest, mac);
421 ethhdr->h_source, ethhdr->h_dest,
425 ether_addr_copy(ethhdr->h_source, mac);
428 __func__, ethhdr->h_source, ethhdr->h_dest,
890 * @ethhdr: ethernet header of a packet
897 u8 *backbone_addr, struct ethhdr *ethhdr,
901 if (!batadv_compare_eth(backbone_addr, ethhdr->h_dest))
907 if (!batadv_compare_eth(ethhdr->h_dest, primary_if->net_dev->dev_addr))
912 __func__, batadv_print_vid(vid), ethhdr->h_source);
999 * @ethhdr: pointer to the Ethernet header of the claim frame
1013 struct ethhdr *ethhdr)
1032 backbone_addr = ethhdr->h_source;
1084 struct ethhdr *ethhdr;
1093 ethhdr = eth_hdr(skb);
1095 proto = ethhdr->h_proto;
1126 /* pskb_may_pull() may have modified the pointers, get ethhdr again */
1127 ethhdr = eth_hdr(skb);
1128 arphdr = (struct arphdr *)((u8 *)ethhdr + headlen);
1165 ethhdr);
1169 __func__, ethhdr->h_source, batadv_print_vid(vid),
1182 ethhdr->h_source, vid))
1187 ethhdr->h_source, hw_src, vid))
1192 if (batadv_handle_announce(bat_priv, hw_src, ethhdr->h_source,
1197 if (batadv_handle_request(bat_priv, primary_if, hw_src, ethhdr,
1205 __func__, ethhdr->h_source, batadv_print_vid(vid), hw_src,
1842 struct ethhdr *ethhdr;
1845 ethhdr = eth_hdr(skb);
1850 if (!batadv_compare_eth(ethhdr->h_source,
1898 struct ethhdr *ethhdr;
1904 ethhdr = eth_hdr(skb);
1918 if (is_multicast_ether_addr(ethhdr->h_dest))
1939 if (is_multicast_ether_addr(ethhdr->h_dest) &&
1944 ether_addr_copy(search_claim.addr, ethhdr->h_source);
1955 __func__, ethhdr->h_source,
1957 ethhdr->h_source, vid) ?
1961 ethhdr->h_source, vid);
1978 if (is_multicast_ether_addr(ethhdr->h_dest) &&
1994 ethhdr->h_source, vid);
2032 struct ethhdr *ethhdr;
2049 ethhdr = eth_hdr(skb);
2053 if (is_multicast_ether_addr(ethhdr->h_dest))
2056 ether_addr_copy(search_claim.addr, ethhdr->h_source);
2081 __func__, ethhdr->h_source);
2084 ethhdr->h_source, vid);
2088 __func__, ethhdr->h_source);
2094 if (is_multicast_ether_addr(ethhdr->h_dest)) {