Lines Matching refs:hdr
1545 static void eap_peer_initiate(struct eap_sm *sm, const struct eap_hdr *hdr,
1549 const u8 *pos = (const u8 *) (hdr + 1);
1550 const u8 *end = ((const u8 *) hdr) + len;
1553 if (len < sizeof(*hdr) + 1) {
1585 if (eap_peer_erp_reauth_start(sm, hdr->identifier) == 0)
1596 void eap_peer_finish(struct eap_sm *sm, const struct eap_hdr *hdr, size_t len)
1599 const u8 *pos = (const u8 *) (hdr + 1);
1600 const u8 *end = ((const u8 *) hdr) + len;
1613 if (len < sizeof(*hdr) + 1) {
1624 if (len < sizeof(*hdr) + 4) {
1692 if (hmac_sha256(erp->rIK, erp->rIK_len, (const u8 *) hdr,
1693 end - ((const u8 *) hdr) - hash_len, hash) < 0)
1759 const struct eap_hdr *hdr;
1769 if (req == NULL || wpabuf_len(req) < sizeof(*hdr))
1772 hdr = wpabuf_head(req);
1773 plen = be_to_host16(hdr->length);
1782 sm->reqId = hdr->identifier;
1790 switch (hdr->code) {
1792 if (plen < sizeof(*hdr) + 1) {
1798 pos = (const u8 *) (hdr + 1);
1801 if (plen < sizeof(*hdr) + 8) {
1823 if (plen < sizeof(*hdr) + 1) {
1829 pos = (const u8 *) (hdr + 1);
1849 eap_peer_initiate(sm, hdr, plen);
1852 eap_peer_finish(sm, hdr, plen);
1856 "code %d", hdr->code);