Lines Matching refs:hdr
176 const struct eap_hdr *hdr;
192 hdr = (const struct eap_hdr *) eap;
193 pos = (const u8 *) (hdr + 1);
194 if (len > sizeof(*hdr) && hdr->code == EAP_CODE_RESPONSE &&
198 e->eap_identity_len = len - sizeof(*hdr) - 1;
266 if (e->last_recv_radius && e->last_recv_radius->hdr->code ==
479 struct ieee802_1x_hdr *hdr;
482 hdr = (struct ieee802_1x_hdr *) buf;
483 hdr->version = EAPOL_VERSION;
484 hdr->type = IEEE802_1X_TYPE_EAP_PACKET;
485 hdr->length = htons(5);
487 eap = (struct eap_hdr *) (hdr + 1);
496 sizeof(*hdr) + 5);
534 struct eap_hdr *hdr;
557 if (len < sizeof(*hdr)) {
564 if (len > sizeof(*hdr))
565 eap_type = eap[sizeof(*hdr)];
567 hdr = (struct eap_hdr *) eap;
568 switch (hdr->code) {
595 hdr->code, hdr->identifier, ntohs(hdr->length), buf);
597 /* sta->eapol_sm->be_auth.idFromServer = hdr->identifier; */
675 if (msg->hdr->code == RADIUS_CODE_ACCESS_REJECT &&
689 if (msg->hdr->code != RADIUS_CODE_ACCESS_ACCEPT &&
690 msg->hdr->code != RADIUS_CODE_ACCESS_REJECT &&
691 msg->hdr->code != RADIUS_CODE_ACCESS_CHALLENGE) {
706 switch (msg->hdr->code) {
719 if ((msg->hdr->code == RADIUS_CODE_ACCESS_ACCEPT &&
721 msg->hdr->code == RADIUS_CODE_ACCESS_REJECT) {