Lines Matching refs:sz
1325 size_t sz; in hap_PROXY_recv() local
1344 sz = 16 + (size_t)ntohs(hdr->v2.len); in hap_PROXY_recv()
1345 if ((size_t)ret < sz) in hap_PROXY_recv()
1359 sz = (size_t)(end + 2 - hdr->v1.line); /* skip header + CRLF */ in hap_PROXY_recv()
1373 ret = recv(fd, hdr, sz, MSG_TRUNC|MSG_DONTWAIT|MSG_NOSIGNAL); in hap_PROXY_recv()
1377 ret = recv(fd, hdr, sz, MSG_DONTWAIT|MSG_NOSIGNAL); in hap_PROXY_recv()
1380 if (ret != (ssize_t)sz) { in hap_PROXY_recv()
1384 if (1 == ver) hdr->v1.line[sz-2] = '\0'; /*terminate str to ease parsing*/ in hap_PROXY_recv()
1512 uint32_t sz = ntohs(hdr->v2.len); in mod_extforward_hap_PROXY_v2() local
1578 if (3 + len > sz) return 0; in mod_extforward_hap_PROXY_v2()
1583 for (sz -= len, len -= 3; sz >= 3; sz -= 3 + len) { in mod_extforward_hap_PROXY_v2()
1586 if (3 + len > sz) break; /*(invalid TLV)*/ in mod_extforward_hap_PROXY_v2()