• Home
  • Raw
  • Download

Lines Matching refs:eth_hdr

163 	struct ethhdr *eth_hdr;  in ath6kl_wmi_dix_2_dot3()  local
176 eth_hdr = (struct ethhdr *) skb->data; in ath6kl_wmi_dix_2_dot3()
177 type = eth_hdr->h_proto; in ath6kl_wmi_dix_2_dot3()
185 new_len = skb->len - sizeof(*eth_hdr) + sizeof(*llc_hdr); in ath6kl_wmi_dix_2_dot3()
190 eth_hdr->h_proto = cpu_to_be16(new_len); in ath6kl_wmi_dix_2_dot3()
192 memcpy(datap, eth_hdr, sizeof(*eth_hdr)); in ath6kl_wmi_dix_2_dot3()
194 llc_hdr = (struct ath6kl_llc_snap_hdr *)(datap + sizeof(*eth_hdr)); in ath6kl_wmi_dix_2_dot3()
392 struct ethhdr eth_hdr; in ath6kl_wmi_dot11_hdr_remove() local
419 memset(&eth_hdr, 0, sizeof(eth_hdr)); in ath6kl_wmi_dot11_hdr_remove()
420 eth_hdr.h_proto = llc_hdr->eth_type; in ath6kl_wmi_dot11_hdr_remove()
425 memcpy(eth_hdr.h_dest, wh.addr1, ETH_ALEN); in ath6kl_wmi_dot11_hdr_remove()
426 memcpy(eth_hdr.h_source, wh.addr2, ETH_ALEN); in ath6kl_wmi_dot11_hdr_remove()
429 memcpy(eth_hdr.h_dest, wh.addr3, ETH_ALEN); in ath6kl_wmi_dot11_hdr_remove()
430 memcpy(eth_hdr.h_source, wh.addr2, ETH_ALEN); in ath6kl_wmi_dot11_hdr_remove()
433 memcpy(eth_hdr.h_dest, wh.addr1, ETH_ALEN); in ath6kl_wmi_dot11_hdr_remove()
434 memcpy(eth_hdr.h_source, wh.addr3, ETH_ALEN); in ath6kl_wmi_dot11_hdr_remove()
441 skb_push(skb, sizeof(eth_hdr)); in ath6kl_wmi_dot11_hdr_remove()
445 memcpy(datap, &eth_hdr, sizeof(eth_hdr)); in ath6kl_wmi_dot11_hdr_remove()
457 struct ethhdr eth_hdr; in ath6kl_wmi_dot3_2_dix() local
465 memcpy(&eth_hdr, datap, sizeof(eth_hdr)); in ath6kl_wmi_dot3_2_dix()
467 llc_hdr = (struct ath6kl_llc_snap_hdr *) (datap + sizeof(eth_hdr)); in ath6kl_wmi_dot3_2_dix()
468 eth_hdr.h_proto = llc_hdr->eth_type; in ath6kl_wmi_dot3_2_dix()
473 memcpy(datap, &eth_hdr, sizeof(eth_hdr)); in ath6kl_wmi_dot3_2_dix()