Lines Matching refs:hdr
142 const struct eap_hdr *hdr;
158 hdr = (const struct eap_hdr *) eap;
159 pos = (const u8 *) (hdr + 1);
160 if (len > sizeof(*hdr) && hdr->code == EAP_CODE_RESPONSE &&
164 e->eap_identity_len = len - sizeof(*hdr) - 1;
223 if (e->last_recv_radius && e->last_recv_radius->hdr->code ==
425 struct ieee802_1x_hdr *hdr;
428 hdr = (struct ieee802_1x_hdr *) buf;
429 hdr->version = EAPOL_VERSION;
430 hdr->type = IEEE802_1X_TYPE_EAP_PACKET;
431 hdr->length = htons(5);
433 eap = (struct eap_hdr *) (hdr + 1);
442 sizeof(*hdr) + 5);
480 struct eap_hdr *hdr;
503 if (len < sizeof(*hdr)) {
510 if (len > sizeof(*hdr))
511 eap_type = eap[sizeof(*hdr)];
513 hdr = (struct eap_hdr *) eap;
514 switch (hdr->code) {
541 hdr->code, hdr->identifier, ntohs(hdr->length), buf);
543 /* sta->eapol_sm->be_auth.idFromServer = hdr->identifier; */
610 if (msg->hdr->code == RADIUS_CODE_ACCESS_REJECT &&
624 if (msg->hdr
625 msg->hdr->code != RADIUS_CODE_ACCESS_REJECT &&
626 msg->hdr->code != RADIUS_CODE_ACCESS_CHALLENGE) {
641 switch (msg->hdr->code) {
654 if ((msg->hdr->code == RADIUS_CODE_ACCESS_ACCEPT &&
656 msg->hdr->code == RADIUS_CODE_ACCESS_REJECT) {