Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching refs:hdr

178 	const struct eap_hdr *hdr;
194 hdr = (const struct eap_hdr *) eap;
195 pos = (const u8 *) (hdr + 1);
196 if (len > sizeof(*hdr) && hdr->code == EAP_CODE_RESPONSE &&
200 e->eap_identity_len = len - sizeof(*hdr) - 1;
645 struct ieee802_1x_hdr *hdr;
648 hdr = (struct ieee802_1x_hdr *) buf;
649 hdr->version = EAPOL_VERSION;
650 hdr->type = IEEE802_1X_TYPE_EAP_PACKET;
651 hdr->length = htons(5);
653 eap = (struct eap_hdr *) (hdr + 1);
662 sizeof(*hdr) + 5);
699 const struct eap_hdr *hdr;
721 if (wpabuf_len(eap) < sizeof(*hdr)) {
728 if (wpabuf_len(eap) > sizeof(*hdr))
729 eap_type = (wpabuf_head_u8(eap))[sizeof(*hdr)];
731 hdr = wpabuf_head(eap);
732 switch (hdr->code) {
759 hdr->code, hdr->identifier, ntohs(hdr->length), buf);
761 /* sta->eapol_sm->be_auth.idFromServer = hdr->identifier; */
847 struct radius_hdr *hdr = radius_msg_get_hdr(msg);
851 if (hdr->code == RADIUS_CODE_ACCESS_REJECT &&
865 if (hdr->code != RADIUS_CODE_ACCESS_ACCEPT &&
866 hdr->code != RADIUS_CODE_ACCESS_REJECT &&
867 hdr->code != RADIUS_CODE_ACCESS_CHALLENGE) {
878 switch (hdr->code) {
891 if ((hdr->code == RADIUS_CODE_ACCESS_ACCEPT &&
893 hdr->code == RADIUS_CODE_ACCESS_REJECT) {