Home | History | Annotate | Download | only in eap_common

Lines Matching defs:hdr

40 	const struct eap_hdr *hdr;
44 hdr = wpabuf_head(msg);
46 if (wpabuf_len(msg) < sizeof(*hdr)) {
51 len = be_to_host16(hdr->length);
52 if (len < sizeof(*hdr) + 1 || len > wpabuf_len(msg)) {
57 pos = (const u8 *) (hdr + 1);
62 if (len < sizeof(*hdr) + 8) {
78 *plen = len - sizeof(*hdr) - 8;
85 *plen = len - sizeof(*hdr) - 1;
111 struct eap_hdr *hdr;
120 hdr = wpabuf_put(buf, sizeof(*hdr));
121 hdr->code = code;
122 hdr->identifier = identifier;
123 hdr->length = host_to_be16(len);
148 struct eap_hdr *hdr;
149 hdr = wpabuf_mhead(msg);
150 if (wpabuf_len(msg) < sizeof(*hdr))
152 hdr->length = host_to_be16(wpabuf_len(msg));