Home | History | Annotate | Download | only in ap

Lines Matching refs:hdr

142 	struct ieee802_1x_hdr *hdr;
151 buf = os_zalloc(sizeof(*hdr) + len);
155 hdr = (struct ieee802_1x_hdr *) buf;
156 key = (struct ieee802_1x_eapol_key *) (hdr + 1);
199 hdr->version = hapd->conf->eapol_version;
200 hdr->type = IEEE802_1X_TYPE_EAPOL_KEY;
201 hdr->length = host_to_be16(len);
202 hmac_md5(sm->eap_if->eapKeyData + 32, 32, buf, sizeof(*hdr) + len,
310 const struct eap_hdr *hdr = (const struct eap_hdr *) eap;
313 (hdr->code == EAP_CODE_RESPONSE &&
315 (hdr->code == EAP_CODE_INITIATE &&
317 (hdr->code != EAP_CODE_RESPONSE &&
318 hdr->code != EAP_CODE_INITIATE))
904 struct ieee802_1x_hdr *hdr;
931 if (len < sizeof(*hdr)) {
936 hdr = (struct ieee802_1x_hdr *) buf;
937 datalen = be_to_host16(hdr->length);
939 hdr->version, hdr->type, datalen);
941 if (len - sizeof(*hdr) < datalen) {
947 if (len - sizeof(*hdr) > datalen) {
950 (unsigned long) len - sizeof(*hdr) - datalen);
954 sta->eapol_sm->dot1xAuthLastEapolFrameVersion = hdr->version;
958 key = (struct ieee802_1x_eapol_key *) (hdr + 1);
960 hdr->type == IEEE802_1X_TYPE_EAPOL_KEY &&
963 wpa_receive(hapd->wpa_auth, sta->wpa_sm, (u8 *) hdr,
964 sizeof(*hdr) + datalen);
1019 switch (hdr->type) {
1021 handle_eap(hapd, sta, (u8 *) (hdr + 1), datalen);
1267 const struct eap_hdr *hdr;
1293 if (wpabuf_len(eap) < sizeof(*hdr)) {
1302 if (wpabuf_len(eap) > sizeof(*hdr))
1303 eap_type = (wpabuf_head_u8(eap))[sizeof(*hdr)];
1305 hdr = wpabuf_head(eap);
1306 switch (hdr->code) {
1331 hdr->code, hdr->identifier, be_to_host16(hdr->length),
1693 struct radius_hdr *hdr = radius_msg_get_hdr(msg);
1701 sm = ieee802_1x_search_radius_identifier(hapd, hdr->identifier);
1711 if (hdr->code == RADIUS_CODE_ACCESS_REJECT &&
1724 if (hdr->code != RADIUS_CODE_ACCESS_ACCEPT &&
1725 hdr->code != RADIUS_CODE_ACCESS_REJECT &&
1726 hdr->code != RADIUS_CODE_ACCESS_CHALLENGE) {
1746 hdr->code == RADIUS_CODE_ACCESS_ACCEPT &&
1761 switch (hdr->code) {
1870 hapd, sta, hdr->code == RADIUS_CODE_ACCESS_ACCEPT,
2328 struct ieee80211_hdr *hdr;
2335 if (len < sizeof(*hdr) + sizeof(rfc1042_hdr) + 2)
2338 hdr = (struct ieee80211_hdr *) buf;
2339 pos = (u8 *) (hdr + 1);