Home
last modified time | relevance | path

Searched refs:start (Results 1 – 25 of 244) sorted by relevance

12345678910

/trafficserver/proxy/
H A DShow.h41 char *buf, *start, *ebuf; member
66 start = (char *)ats_realloc(start, bufsz); in show()
68 buf = start + used; in show()
92 StatPageData data(start, buf - start); in finishConn()
94 start = nullptr; in finishConn()
96 ats_free(start); in finishConn()
97 start = nullptr; in finishConn()
118 ats_free(start); in complete_error()
119 start = nullptr; in complete_error()
155 start = buf; in ShowCont()
[all …]
/trafficserver/proxy/hdrs/
H A DHdrTSOnly.cc51 const char *start; in parse_req() local
69 tmp = start = r->start(); in parse_req()
70 end = start + b_avail; in parse_req()
72 int heap_slot = m_heap->attach_block(r->get_current_block(), start); in parse_req()
80 used = static_cast<int>(tmp - start); in parse_req()
92 const char *start; in parse_resp() local
105 tmp = start = r->start(); in parse_resp()
111 } else if (nullptr == start) { in parse_resp()
119 end = start + b_avail; in parse_resp()
128 used = static_cast<int>(tmp - start); in parse_resp()
[all …]
H A DHdrTest.cc445 start = mime; in test_mime()
446 end = start + strlen(start); in test_mime()
607 start = request; in test_http_aux()
608 end = start + strlen(start); // 1 character past end of string in test_http_aux()
652 end = start + strlen(start); in test_http_aux()
731 start = request; in test_http_req_parse_error()
732 end = start + strlen(start); // 1 character past end of string in test_http_req_parse_error()
1004 start = request; in test_http_hdr_copy_over_aux()
1005 end = start + strlen(start); // 1 character past end of string in test_http_hdr_copy_over_aux()
1027 end = start + strlen(start); // 1 character past end of string in test_http_hdr_copy_over_aux()
[all …]
H A Dtest_urlhash.cc42 const char *start; in test_url() local
49 start = strs[i]; in test_url()
50 end = start + old_length; in test_url()
53 err = url.parse(&start, end); in test_url()
/trafficserver/plugins/experimental/fastcgi/src/bin/
H A Dphp-fastcgi.sh28 start() { function
30 start-stop-daemon --quiet --start --background --exec /usr/bin/env -- $PHP_CGI_ARGS
42 start)
43 start
50 start
/trafficserver/proxy/logging/
H A DLogFormat.cc561 int sum, start = 0; in parse_escape_string() local
654 unsigned start, stop; in parse_format_string() local
657 for (start = 0; start < len; start++) { in parse_format_string()
661 if ((format_str[start] == '%') && (start + 1 < len) && (format_str[start + 1] == '<')) { in parse_format_string()
685 start = stop; in parse_format_string()
691 escape_char = parse_escape_string(&format_str[start], (len - start)); in parse_format_string()
694 start += 1; in parse_format_string()
697 start += 3; in parse_format_string()
709 escape_char = parse_escape_string(&format_str[start], (len - start)); in parse_format_string()
712 start += 1; in parse_format_string()
[all …]
/trafficserver/iocore/cache/
H A DCacheHttp.cc182 char *start = buf; in marshal() local
196 GLOBAL_CACHE_SUM_GLOBAL_DYN_STAT(cache_hdr_marshal_bytes_stat, buf - start); in marshal()
197 return buf - start; in marshal()
205 const char *start = buf; in unmarshal() local
209 while (length - (buf - start) > static_cast<int>(sizeof(HTTPCacheAlt))) { in unmarshal()
210 int tmp = HTTPInfo::unmarshal(const_cast<char *>(buf), length - (buf - start), block_ptr); in unmarshal()
221 return (const_cast<caddr_t>(buf) - const_cast<caddr_t>(start)); in unmarshal()
231 const char *start = buf; in get_handles() local
237 while (length - (buf - start) > static_cast<int>(sizeof(HTTPCacheAlt))) { in get_handles()
238 int tmp = info.get_handle(const_cast<char *>(buf), length - (buf - start)); in get_handles()
[all …]
/trafficserver/plugins/header_rewrite/
H A Dconditions.h204 start = buf; in get_cookie_value()
207 while (start < end) { in get_cookie_value()
212 for (start += name_len; start < end && *start == ' '; start++) { in get_cookie_value()
215 if (start == end || *start++ != '=') { in get_cookie_value()
219 while (start < end && *start == ' ') { in get_cookie_value()
220 start++; in get_cookie_value()
227 *value = start; in get_cookie_value()
230 while (start < end) { in get_cookie_value()
231 char ch = *start++; in get_cookie_value()
236 while (start < end && *start == ' ') { in get_cookie_value()
[all …]
/trafficserver/plugins/experimental/stream_editor/
H A Dstream_editor.cc109 const size_t start; member
117 return start != x.start || bytes != x.bytes || repl != x.repl || priority != x.priority; in operator !=()
123 …if ((start == x.start) || (start < x.start && start + bytes > x.start) || (x.start < start && x.st… in operator <()
133 return start < x.start; in operator <()
145 …eam-editor", "Conflicting edits [%ld-%ld] vs [%ld-%ld]", start, start + bytes, conflicted.start, in saveto()
146 conflicted.start + conflicted.bytes); in saveto()
590 int64_t nbytes, start; in process_block() local
626 if (p->start >= buflen - keep) { in process_block()
631 start = p->start - bytes_read; in process_block()
633 while (start > 0) { in process_block()
[all …]
/trafficserver/plugins/experimental/uri_signing/
H A Dtiming.h26 struct timespec start; member
32 t->started = !clock_gettime(CLOCK_THREAD_CPUTIME_ID, &t->start); in start_timer()
45 …return (now.tv_sec - t->start.tv_sec) * (int64_t)1000000000 - (int64_t)t->start.tv_nsec + (int64_t… in mark_timer()
/trafficserver/include/tscore/
H A DTsBuffer.h66 Buffer(char *start, ///< First valid character.
146 ConstBuffer(char const *start, ///< First valid character.
218 self &set(char const *start, ///< First valid character.
298 inline Buffer::Buffer(char *start, char *end) : _ptr(start), _size(end - start) {} in Buffer() argument
358 inline ConstBuffer::ConstBuffer(char const *start, char const *end) : _ptr(start), _size(end - star… in ConstBuffer() argument
369 ConstBuffer::set(char const *start, char const *end) in set() argument
371 _ptr = start; in set()
372 _size = end - start; in set()
/trafficserver/plugins/cachekey/
H A Dpattern.cc83 size_t start = 1; in init() local
92 pattern = config.substr(start, next - start); in init()
99 start = next + 1; in init()
106 replacement = config.substr(start, next - start); in init()
253 int start = ovector[2 * i]; in capture() local
256 String dst(subject, start, length); in capture()
303 int start = ovector[2 * replIndex]; in replace() local
307 if (start < 0) { in replace()
308 start = 0; in replace()
313 String dst(subject, start, length); in replace()
/trafficserver/iocore/dns/
H A Dtest_I_DNS.cc36 eventProcessor.start(2); in main()
37 netProcessor.start(); in main()
41 dnsProcessor.start(); in main()
/trafficserver/iocore/hostdb/
H A Dtest_I_HostDB.cc42 eventProcessor.start(2); in main()
43 netProcessor.start(); in main()
47 hostDBProcessor.start(); in main()
/trafficserver/plugins/prefetch/
H A Dpattern.cc82 size_t start = 1; in init() local
91 pattern = config.substr(start, next - start); in init()
98 start = next + 1; in init()
105 replacement = config.substr(start, next - start); in init()
251 int start = ovector[2 * i]; in capture() local
254 String dst(subject, start, length); in capture()
300 int start = ovector[2 * replIndex]; in replace() local
304 String dst(subject, start, length); in replace()
/trafficserver/src/tscore/
H A DBaseLogFile.cc132 time_t start, end; in roll() local
136 start = 0L; in roll()
146 m_meta_info->get_creation_time(&start); in roll()
160 start = m_start_time; in roll()
162 start = (m_start_time < interval_start) ? m_start_time : interval_start; in roll()
165 …File::roll(..), start = %ld, m_start_time = %ld, interval_start = %ld\n", start, m_start_time, in roll()
170 timestamp_to_str(static_cast<long>(start), start_time_ext, sizeof(start_time_ext)); in roll()
222 time_t start; in roll() local
225 if (!m_meta_info || !m_meta_info->get_creation_time(&start)) { in roll()
226 start = 0L; in roll()
[all …]
/trafficserver/iocore/net/
H A Dtest_I_Net.cc57 eventProcessor.start(nproc); in main()
70 netProcessor.start(); in main()
71 sslNetProcessor.start(1); in main()
/trafficserver/plugins/lua/
H A Dts_lua_io.c25 const char *start; in IOBufferReaderCopy() local
32 start = TSIOBufferBlockReadStart(blk, readerp, &avail); in IOBufferReaderCopy()
36 memcpy((char *)buf + n, start, need); in IOBufferReaderCopy()
/trafficserver/plugins/experimental/access_control/
H A Dpattern.cc83 size_t start = 1; in init() local
92 pattern = config.substr(start, next - start); in init()
99 start = next + 1; in init()
106 replacement = config.substr(start, next - start); in init()
262 int start = ovector[2 * i]; in capture() local
265 String dst(subject, start, length); in capture()
312 int start = ovector[2 * replIndex]; in replace() local
316 String dst(subject, start, length); in replace()
/trafficserver/iocore/net/quic/test/
H A Dtest_QUICFrameRetransmitter.cc75 memcpy(block->start(), data, sizeof(data));
100 memcpy(block->start(), data, sizeof(data));
120 CHECK(memcmp(stream_frame->data()->start(), data, sizeof(data)) == 0);
136 memcpy(block->start(), data, sizeof(data));
157 CHECK(memcmp(stream_frame->data()->start(), data, stream_frame->data_length()) == 0);
175 CHECK(memcmp(stream_frame->data()->start(), data + size, stream_frame->data_length()) == 0);
193 memcpy(block->start(), data, sizeof(data));
212 CHECK(memcmp(crypto_frame->data()->start(), data, crypto_frame->data_length()) == 0);
229 CHECK(memcmp(crypto_frame->data()->start(), data + size, crypto_frame->data_length()) == 0);
247 memcpy(block->start(), data, sizeof(data));
[all …]
H A Dtest_QUICFrame.cc201 memcpy(block->start(), raw1, 5);
209 memcpy(buf + len, b->start(), b->size());
230 memcpy(block->start(), raw2, 5);
259 memcpy(block->start(), raw3, 5);
288 memcpy(block->start(), raw4, 5);
317 memcpy(block->start(), raw5, 5);
346 memcpy(block->start(), raw6, 5);
375 memcpy(block->start(), raw7, 5);
404 memcpy(block->start(), raw, 5);
465 memcpy(block->start(), raw_data, 5);
[all …]
/trafficserver/plugins/regex_remap/
H A Dregex_remap.cc291 while (start != std::string::npos) { in initialize()
294 ++start; in initialize()
295 pos1 = opt.find_first_of('=', start); in initialize()
329 std::string opt_name = opt.substr(start, pos1 - start - 1); in initialize()
365 start = opt.find_first_of('@', pos2); in initialize()
542 char *start = p1; in substitute() local
603 while (start < p1) { in substitute()
604 *start = tolower(*start); in substitute()
605 start++; in substitute()
1060 const char *start = dest; in TSRemapDoRemap() local
[all …]
/trafficserver/proxy/http/remap/
H A DAclFiltering.h40 IpAddr start; ///< Minimum value in range. member
47 start.invalidate(); in reset()
57 return addr.cmp(start) >= 0 && addr.cmp(end) <= 0; in contains()
/trafficserver/src/tscpp/util/
H A DTextView.cc105 const char *start = src.data(); in svtoi() local
149 if (out && (src.data() > (neg ? start + 1 : start))) { in svtoi()
150 out->assign(start, src.data()); in svtoi()
/trafficserver/example/plugins/c-api/cache_scan/
H A Dcache_scan.cc427 char *start = querybuf, *end = querybuf + query_len; in setup_request() local
431 start = strstr(querybuf, "remove_url="); in setup_request()
432 if (start && (start == querybuf || *(start - 1) == '&')) { in setup_request()
433 start += 11; in setup_request()
434 if ((end = strstr(start, "&")) != nullptr) { in setup_request()
437 del_url_len = unescapifyStr(start); in setup_request()
438 end = start + del_url_len; in setup_request()
441 TSDebug(PLUGIN_NAME, "deleting url: %s", start); in setup_request()
447 if (TSUrlParse(urlBuf, urlLoc, (const char **)&start, end) != TS_PARSE_DONE || in setup_request()

Completed in 140 milliseconds

12345678910