Home | History | Annotate | Download | only in eap_common

Lines Matching defs:hdr

34 	const struct eap_hdr *hdr;
38 hdr = wpabuf_head(msg);
40 if (wpabuf_len(msg) < sizeof(*hdr)) {
45 len = be_to_host16(hdr->length);
46 if (len < sizeof(*hdr) + 1 || len > wpabuf_len(msg)) {
51 pos = (const u8 *) (hdr + 1);
56 if (len < sizeof(*hdr) + 8) {
72 *plen = len - sizeof(*hdr) - 8;
79 *plen = len - sizeof(*hdr) - 1;
105 struct eap_hdr *hdr;
114 hdr = wpabuf_put(buf, sizeof(*hdr));
115 hdr->code = code;
116 hdr->identifier = identifier;
117 hdr->length = host_to_be16(len);
142 struct eap_hdr *hdr;
143 hdr = wpabuf_mhead(msg);
144 if (wpabuf_len(msg) < sizeof(*hdr))
146 hdr->length = host_to_be16(wpabuf_len(msg));