Lines Matching refs:hdr
122 struct ieee8023_hdr *hdr;
135 hdr = (struct ieee8023_hdr *) buf;
137 switch (ntohs(hdr->ethertype)) {
140 sa = hdr->src;
145 pos = (u8 *) (hdr + 1);
146 left = len - sizeof(*hdr);
152 ntohs(hdr->ethertype));
320 struct ieee8023_hdr *hdr;
325 len = sizeof(*hdr) + data_len;
326 hdr = os_zalloc(len);
327 if (hdr == NULL) {
333 os_memcpy(hdr->dest, drv->use_pae_group_addr ? pae_group_addr : addr,
335 os_memcpy(hdr->src, own_addr, ETH_ALEN);
336 hdr->ethertype = htons(ETH_P_PAE);
338 pos = (u8 *) (hdr + 1);
341 res = send(drv->sock, (u8 *) hdr, len, 0);
342 os_free(hdr);