Lines Matching defs:len
96 size_t len;
114 len = buf->l;
116 while (len > 0) {
119 if (len > max_datalen)
122 datalen = len;
140 fraghdr->len = htons(fraglen - sizeof(*hdr));
143 if (len == datalen)
158 len -= datalen;
185 size_t len;
199 * frag->len is the frag payload data plus the frag payload header,
202 if (msg->l < sizeof(*isakmp) + ntohs(frag->len) ||
203 ntohs(frag->len) < sizeof(*frag) + 1) {
208 if ((buf = vmalloc(ntohs(frag->len) - sizeof(*frag))) == NULL) {
271 size_t len = 0;
284 len += item->frag_packet->l;
288 if ((buf = vmalloc(len)) == NULL) {
337 size_t len;
340 len = buf->l;
341 if (len == MD5_DIGEST_LENGTH) {
342 if ((buf = vrealloc(buf, len + sizeof(cap))) == NULL) {
347 capp = (int *)(buf->v + len);