Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching refs:hdr

63 	struct ieee802_1x_hdr *hdr;
65 *msg_len = sizeof(*hdr) + data_len;
66 hdr = os_malloc(*msg_len);
67 if (hdr == NULL)
70 hdr->version = wpa_s->conf->eapol_version;
71 hdr->type = type;
72 hdr->length = htons(data_len);
75 os_memcpy(hdr + 1, data, data_len);
77 os_memset(hdr + 1, 0, data_len);
80 *data_pos = hdr + 1;
82 return (u8 *) hdr;