Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching refs:hdr

62 	struct ieee802_1x_hdr *hdr;
64 *msg_len = sizeof(*hdr) + data_len;
65 hdr = os_malloc(*msg_len);
66 if (hdr == NULL)
69 hdr->version = wpa_s->conf->eapol_version;
70 hdr->type = type;
71 hdr->length = htons(data_len);
74 os_memcpy(hdr + 1, data, data_len);
76 os_memset(hdr + 1, 0, data_len);
79 *data_pos = hdr + 1;
81 return (u8 *) hdr;