Lines Matching refs:len
28 size_t len;
40 len = be_to_host16(hdr->length);
41 if (len < sizeof(*hdr) + min_payload || len > wpabuf_len(msg)) {
71 size_t len;
77 len = be_to_host16(hdr->length);
83 if (len < sizeof(*hdr) + 8) {
99 *plen = len - sizeof(*hdr) - 8;
106 *plen = len - sizeof(*hdr) - 1;
133 size_t len;
135 len = sizeof(struct eap_hdr) + (vendor == EAP_VENDOR_IETF ? 1 : 8) +
137 buf = wpabuf_alloc(len);
144 hdr->length = host_to_be16(len);