Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching refs:hdr

182 	const struct eap_hdr *hdr;
198 hdr = (const struct eap_hdr *) eap;
199 pos = (const u8 *) (hdr + 1);
200 if (len > sizeof(*hdr) && hdr->code == EAP_CODE_RESPONSE &&
204 e->eap_identity_len = len - sizeof(*hdr) - 1;
704 struct ieee802_1x_hdr *hdr;
707 hdr = (struct ieee802_1x_hdr *) buf;
708 hdr->version = EAPOL_VERSION;
709 hdr->type = IEEE802_1X_TYPE_EAP_PACKET;
710 hdr->length = htons(5);
712 eap = (struct eap_hdr *) (hdr + 1);
721 sizeof(*hdr) + 5);
758 const struct eap_hdr *hdr;
780 if (wpabuf_len(eap) < sizeof(*hdr)) {
787 if (wpabuf_len(eap) > sizeof(*hdr))
788 eap_type = (wpabuf_head_u8(eap))[sizeof(*hdr)];
790 hdr = wpabuf_head(eap);
791 switch (hdr->code) {
820 hdr->code, hdr->identifier, ntohs(hdr->length), buf);
822 /* sta->eapol_sm->be_auth.idFromServer = hdr->identifier; */
908 struct radius_hdr *hdr = radius_msg_get_hdr(msg);
912 if (hdr->code == RADIUS_CODE_ACCESS_REJECT &&
926 if (hdr->code != RADIUS_CODE_ACCESS_ACCEPT &&
927 hdr->code != RADIUS_CODE_ACCESS_REJECT &&
928 hdr->code != RADIUS_CODE_ACCESS_CHALLENGE) {
939 switch (hdr->code) {
952 if ((hdr->code == RADIUS_CODE_ACCESS_ACCEPT &&
954 hdr->code == RADIUS_CODE_ACCESS_REJECT) {