Home
last modified time | relevance | path

Searched refs:content_length (Results 1 – 6 of 6) sorted by relevance

/freebsd/contrib/wpa/src/wps/
H A Dhttpread.c69 int content_length; /* body length, iff got_content_length */ member
168 h->content_length = atol(hbp); in httpread_hdr_option_analyze()
169 if (h->content_length < 0 || h->content_length > h->max_bytes) { in httpread_hdr_option_analyze()
172 h->content_length); in httpread_hdr_option_analyze()
401 h->content_length); in httpread_read_handler()
455 if (h->got_content_length && h->content_length == 0) { in httpread_read_handler()
504 new_alloc_nbytes < (h->content_length + 1)) in httpread_read_handler()
505 new_alloc_nbytes = h->content_length + 1; in httpread_read_handler()
595 h->body_nbytes >= h->content_length) { in httpread_read_handler()
617 ncopy = h->content_length - h->body_nbytes; in httpread_read_handler()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteCommunication.cpp416 size_t content_length = in DecompressPacket() local
444 content_length = hash_mark_idx - content_start; in DecompressPacket()
491 unescaped_content.reserve(content_length); in DecompressPacket()
640 size_t content_length = 0; in CheckForPacket() local
657 content_length = total_length = 1; // The command is one byte long... in CheckForPacket()
675 content_length = hash_pos - 1; in CheckForPacket()
681 content_length = std::string::npos; in CheckForPacket()
715 if (content_length == std::string::npos) { in CheckForPacket()
721 assert(content_length <= m_bytes.size()); in CheckForPacket()
723 assert(content_length <= total_length); in CheckForPacket()
[all …]
/freebsd/contrib/ntp/sntp/libevent/
H A Dhttp.c515 size_t content_length) in evhttp_maybe_add_content_length_header() argument
521 EV_SIZE_ARG(content_length)); in evhttp_maybe_add_content_length_header()
2162 const char *content_length; in evhttp_get_body_length() local
2165 content_length = evhttp_find_header(headers, "Content-Length"); in evhttp_get_body_length()
2168 if (content_length == NULL && connection == NULL) in evhttp_get_body_length()
2170 else if (content_length == NULL && in evhttp_get_body_length()
2173 } else if (content_length == NULL) { in evhttp_get_body_length()
2177 ev_int64_t ntoread = evutil_strtoll(content_length, &endp, 10); in evhttp_get_body_length()
2178 if (*content_length == '\0' || *endp != '\0' || ntoread < 0) { in evhttp_get_body_length()
2180 __func__, content_length)); in evhttp_get_body_length()
/freebsd/contrib/libevent/
H A Dhttp.c515 size_t content_length) in evhttp_maybe_add_content_length_header() argument
521 EV_SIZE_ARG(content_length)); in evhttp_maybe_add_content_length_header()
2162 const char *content_length; in evhttp_get_body_length() local
2165 content_length = evhttp_find_header(headers, "Content-Length"); in evhttp_get_body_length()
2168 if (content_length == NULL && connection == NULL) in evhttp_get_body_length()
2170 else if (content_length == NULL && in evhttp_get_body_length()
2173 } else if (content_length == NULL) { in evhttp_get_body_length()
2177 ev_int64_t ntoread = evutil_strtoll(content_length, &endp, 10); in evhttp_get_body_length()
2178 if (*content_length == '\0' || *endp != '\0' || ntoread < 0) { in evhttp_get_body_length()
2180 __func__, content_length)); in evhttp_get_body_length()
/freebsd/contrib/unbound/services/
H A Dlisten_dnsport.c3025 !h2_stream->content_length && namelen == 14 && in http2_req_header_cb()
3032 h2_stream->content_length = atoi((const char*)value); in http2_req_header_cb()
3033 if(h2_stream->content_length > in http2_req_header_cb()
3061 if(h2_stream->content_length) { in http2_req_data_chunk_recv_cb()
3062 if(h2_stream->content_length < len) in http2_req_data_chunk_recv_cb()
3066 qlen = h2_stream->content_length; in http2_req_data_chunk_recv_cb()
/freebsd/contrib/unbound/util/
H A Dnetevent.h906 size_t content_length; member