Lines Matching refs:hdr
27 const struct eap_hdr *hdr;
33 hdr = wpabuf_head(msg);
35 if (wpabuf_len(msg) < sizeof(*hdr)) {
40 len = be_to_host16(hdr->length);
41 if (len < sizeof(*hdr) + min_payload || len > wpabuf_len(msg)) {
69 const struct eap_hdr *hdr;
76 hdr = wpabuf_head(msg);
77 len = be_to_host16(hdr->length);
78 pos = (const u8 *) (hdr + 1);
83 if (len < sizeof(*hdr) + 8) {
99 *plen = len - sizeof(*hdr) - 8;
106 *plen = len - sizeof(*hdr) - 1;
132 struct eap_hdr *hdr;
141 hdr = wpabuf_put(buf, sizeof(*hdr));
142 hdr->code = code;
143 hdr->identifier = identifier;
144 hdr->length = host_to_be16(len);
169 struct eap_hdr *hdr;
170 hdr = wpabuf_mhead(msg);
171 if (wpabuf_len(msg) < sizeof(*hdr))
173 hdr->length = host_to_be16(wpabuf_len(msg));