Lines Matching refs:hdr
159 struct ieee802_1x_hdr *hdr;
168 buf = os_zalloc(sizeof(*hdr) + len);
172 hdr = (struct ieee802_1x_hdr *) buf;
173 key = (struct ieee802_1x_eapol_key *) (hdr + 1);
216 hdr->version = hapd->conf->eapol_version;
217 hdr->type = IEEE802_1X_TYPE_EAPOL_KEY;
218 hdr->length = host_to_be16(len);
219 hmac_md5(sm->eap_if->eapKeyData + 32, 32, buf, sizeof(*hdr) + len,
712 struct ieee802_1x_hdr *hdr;
731 if (len < sizeof(*hdr)) {
736 hdr = (struct ieee802_1x_hdr *) buf;
737 datalen = be_to_host16(hdr->length);
739 hdr->version, hdr->type, datalen);
741 if (len - sizeof(*hdr) < datalen) {
747 if (len - sizeof(*hdr) > datalen) {
750 (unsigned long) len - sizeof(*hdr) - datalen);
754 sta->eapol_sm->dot1xAuthLastEapolFrameVersion = hdr->version;
758 key = (struct ieee802_1x_eapol_key *) (hdr + 1);
760 hdr->type == IEEE802_1X_TYPE_EAPOL_KEY &&
763 wpa_receive(hapd->wpa_auth, sta->wpa_sm, (u8 *) hdr,
764 sizeof(*hdr) + datalen);
809 switch (hdr->type) {
811 handle_eap(hapd, sta, (u8 *) (hdr + 1), datalen);
1014 struct eap_hdr *hdr;
1040 if (len < sizeof(*hdr)) {
1049 if (len > sizeof(*hdr))
1050 eap_type = eap[sizeof(*hdr)];
1052 hdr = (struct eap_hdr *) eap;
1053 switch (hdr->code) {
1082 hdr->code, hdr->identifier, be_to_host16(hdr->length),
1275 struct radius_hdr *hdr = radius_msg_get_hdr(msg);
1277 sm = ieee802_1x_search_radius_identifier(hapd, hdr->identifier);
1287 if (hdr->code == RADIUS_CODE_ACCESS_REJECT &&
1301 if (hdr->code != RADIUS_CODE_ACCESS_ACCEPT &&
1302 hdr->code != RADIUS_CODE_ACCESS_REJECT &&
1303 hdr->code != RADIUS_CODE_ACCESS_CHALLENGE) {
1323 hdr->code == RADIUS_CODE_ACCESS_ACCEPT &&
1338 switch (hdr->code) {
1797 struct ieee80211_hdr *hdr;
1806 if (len < sizeof(*hdr) + sizeof(rfc1042_hdr) + 2 + sizeof(*xhdr))
1809 hdr = (struct ieee80211_hdr *) buf;
1810 pos = (u8 *) (hdr + 1);