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;
507 struct ieee802_1x_hdr *hdr;
510 hdr = (struct ieee802_1x_hdr *) buf;
511 hdr->version = EAPOL_VERSION;
512 hdr->type = IEEE802_1X_TYPE_EAP_PACKET;
513 hdr->length = htons(5);
515 eap = (struct eap_hdr *) (hdr + 1);
524 sizeof(*hdr) + 5);
562 struct eap_hdr *hdr;
585 if (len < sizeof(*hdr)) {
592 if (len > sizeof(*hdr))
593 eap_type = eap[sizeof(*hdr)];
595 hdr = (struct eap_hdr *) eap;
596 switch (hdr->code) {
623 hdr->code, hdr->identifier, ntohs(hdr->length), buf);
625 /* sta->eapol_sm->be_auth.idFromServer = hdr->identifier; */
700 struct radius_hdr *hdr = radius_msg_get_hdr(msg);
704 if (hdr->code == RADIUS_CODE_ACCESS_REJECT &&
718 if (hdr->code != RADIUS_CODE_ACCESS_ACCEPT &&
719 hdr->code != RADIUS_CODE_ACCESS_REJECT &&
720 hdr->code != RADIUS_CODE_ACCESS_CHALLENGE) {
731 switch (hdr->code) {
744 if ((hdr->code == RADIUS_CODE_ACCESS_ACCEPT &&
746 hdr->code == RADIUS_CODE_ACCESS_REJECT) {