Lines Matching refs:hdr
83 struct ieee8023_hdr *hdr; in handle_data() local
96 hdr = (struct ieee8023_hdr *) buf; in handle_data()
98 switch (ntohs(hdr->ethertype)) { in handle_data()
101 sa = hdr->src; in handle_data()
106 pos = (u8 *) (hdr + 1); in handle_data()
107 left = len - sizeof(*hdr); in handle_data()
113 ntohs(hdr->ethertype)); in handle_data()
291 struct ieee8023_hdr *hdr; in wired_send_eapol() local
296 len = sizeof(*hdr) + data_len; in wired_send_eapol()
297 hdr = os_zalloc(len); in wired_send_eapol()
298 if (hdr == NULL) { in wired_send_eapol()
305 os_memcpy(hdr->dest, drv->use_pae_group_addr ? pae_group_addr : addr, in wired_send_eapol()
307 os_memcpy(hdr->src, own_addr, ETH_ALEN); in wired_send_eapol()
308 hdr->ethertype = htons(ETH_P_PAE); in wired_send_eapol()
310 pos = (u8 *) (hdr + 1); in wired_send_eapol()
313 res = send(drv->common.sock, (u8 *) hdr, len, 0); in wired_send_eapol()
314 os_free(hdr); in wired_send_eapol()