Lines Matching refs:hdr
682 struct ieee802_1x_hdr *hdr;
704 if (sm->last_rx_key_len < sizeof(*hdr) + sizeof(*key))
706 hdr = (struct ieee802_1x_hdr *) sm->last_rx_key;
707 key = (struct ieee802_1x_eapol_key *) (hdr + 1);
708 plen = be_to_host16(hdr->length);
709 if (sizeof(*hdr) + plen > sm->last_rx_key_len || plen < sizeof(*key)) {
716 hdr->version, hdr->type, be_to_host16(hdr->length),
763 sm->last_rx_key, sizeof(*hdr) + be_to_host16(hdr->length),
1274 const struct ieee802_1x_hdr *hdr;
1283 if (len < sizeof(*hdr)) {
1287 hdr = (const struct ieee802_1x_hdr *) buf;
1288 sm->dot1xSuppLastEapolFrameVersion = hdr->version;
1290 if (hdr->version < EAPOL_VERSION) {
1293 plen = be_to_host16(hdr->length);
1294 if (plen > len - sizeof(*hdr)) {
1300 plen < len - sizeof(*hdr) &&
1301 hdr->type == IEEE802_1X_TYPE_EAP_PACKET &&
1302 len - sizeof(*hdr) > sizeof(struct eap_hdr)) {
1304 (const struct eap_hdr *) (hdr + 1);
1308 if (elen > plen && elen <= len - sizeof(*hdr)) {
1323 data_len = plen + sizeof(*hdr);
1325 switch (hdr->type) {
1338 (const struct eap_hdr *) (hdr + 1);
1353 sm->eapReqData = wpabuf_alloc_copy(hdr + 1, plen);
1377 key = (const struct ieee802_1x_eapol_key *) (hdr + 1);
1406 hdr->type);
1411 hdr->type);