/dports/net/haproxy20/haproxy-2.0.26/include/proto/ |
H A D | hdr_idx.h | 35 static inline void hdr_idx_init(struct hdr_idx *list) in hdr_idx_init() 50 static inline int hdr_idx_first_idx(const struct hdr_idx *list) in hdr_idx_first_idx() 61 static inline int hdr_idx_first_pos(const struct hdr_idx *list) in hdr_idx_first_pos() 71 static inline void hdr_idx_set_start(struct hdr_idx *list, int len, int cr) in hdr_idx_set_start() 87 int hdr_idx_add(int len, int cr, struct hdr_idx *list, int after);
|
H A D | proto_http.h | 48 void http_msg_analyzer(struct http_msg *msg, struct hdr_idx *idx); 58 int http_legacy_replace_header(struct hdr_idx *idx, struct http_msg *msg, 62 int http_legacy_replace_full_header(struct hdr_idx *idx, struct http_msg *msg, 105 char *sol, struct hdr_idx *idx, 108 char *sol, struct hdr_idx *idx, 110 int http_find_next_header(char *sol, struct hdr_idx *idx, 112 int http_remove_header2(struct http_msg *msg, struct hdr_idx *idx, struct hdr_ctx *ctx); 113 int http_header_add_tail2(struct http_msg *msg, struct hdr_idx *hdr_idx, const char *text, int len); 127 void http_capture_headers(char *som, struct hdr_idx *idx, 133 struct hdr_idx *idx, int occ, [all …]
|
/dports/net/haproxy19/haproxy-1.9.16/include/proto/ |
H A D | hdr_idx.h | 35 static inline void hdr_idx_init(struct hdr_idx *list) in hdr_idx_init() 50 static inline int hdr_idx_first_idx(const struct hdr_idx *list) in hdr_idx_first_idx() 61 static inline int hdr_idx_first_pos(const struct hdr_idx *list) in hdr_idx_first_pos() 71 static inline void hdr_idx_set_start(struct hdr_idx *list, int len, int cr) in hdr_idx_set_start() 87 int hdr_idx_add(int len, int cr, struct hdr_idx *list, int after);
|
H A D | proto_http.h | 51 void http_msg_analyzer(struct http_msg *msg, struct hdr_idx *idx); 61 int http_legacy_replace_header(struct hdr_idx *idx, struct http_msg *msg, 65 int http_legacy_replace_full_header(struct hdr_idx *idx, struct http_msg *msg, 108 char *sol, struct hdr_idx *idx, 111 char *sol, struct hdr_idx *idx, 113 int http_find_next_header(char *sol, struct hdr_idx *idx, 115 int http_remove_header2(struct http_msg *msg, struct hdr_idx *idx, struct hdr_ctx *ctx); 116 int http_header_add_tail2(struct http_msg *msg, struct hdr_idx *hdr_idx, const char *text, int len); 130 void http_capture_headers(char *som, struct hdr_idx *idx, 136 struct hdr_idx *idx, int occ, [all …]
|
/dports/net/haproxy17/haproxy-1.7.14/include/proto/ |
H A D | hdr_idx.h | 35 static inline void hdr_idx_init(struct hdr_idx *list) in hdr_idx_init() 50 static inline int hdr_idx_first_idx(struct hdr_idx *list) in hdr_idx_first_idx() 61 static inline int hdr_idx_first_pos(struct hdr_idx *list) in hdr_idx_first_pos() 71 static inline void hdr_idx_set_start(struct hdr_idx *list, int len, int cr) in hdr_idx_set_start() 87 int hdr_idx_add(int len, int cr, struct hdr_idx *list, int after);
|
H A D | proto_http.h | 82 void http_msg_analyzer(struct http_msg *msg, struct hdr_idx *idx); 97 char *sol, struct hdr_idx *idx, 100 char *sol, struct hdr_idx *idx, 102 int http_find_next_header(char *sol, struct hdr_idx *idx, 108 int http_remove_header2(struct http_msg *msg, struct hdr_idx *idx, struct hdr_ctx *ctx); 109 int http_header_add_tail2(struct http_msg *msg, struct hdr_idx *hdr_idx, const char *text, int len); 122 struct hdr_idx *idx, int occ,
|
/dports/net/haproxy18/haproxy-1.8.30/include/proto/ |
H A D | hdr_idx.h | 35 static inline void hdr_idx_init(struct hdr_idx *list) in hdr_idx_init() 50 static inline int hdr_idx_first_idx(const struct hdr_idx *list) in hdr_idx_first_idx() 61 static inline int hdr_idx_first_pos(const struct hdr_idx *list) in hdr_idx_first_pos() 71 static inline void hdr_idx_set_start(struct hdr_idx *list, int len, int cr) in hdr_idx_set_start() 87 int hdr_idx_add(int len, int cr, struct hdr_idx *list, int after);
|
H A D | proto_http.h | 64 void http_msg_analyzer(struct http_msg *msg, struct hdr_idx *idx); 80 char *sol, struct hdr_idx *idx, 83 char *sol, struct hdr_idx *idx, 85 int http_find_next_header(char *sol, struct hdr_idx *idx, 91 int http_remove_header2(struct http_msg *msg, struct hdr_idx *idx, struct hdr_ctx *ctx); 92 int http_header_add_tail2(struct http_msg *msg, struct hdr_idx *hdr_idx, const char *text, int len); 105 struct hdr_idx *idx, int occ,
|
/dports/security/snort3/snort3-3.1.19.0/src/service_inspectors/http_inspect/ |
H A D | http_module.cc | 364 int hdr_idx; in set() local 381 for (hdr_idx = 0; val.get_next_token(header) && (hdr_idx < MAX_XFF_HEADERS); hdr_idx++) in set() 390 params->xff_headers[hdr_idx].code = hdr_id; in set() 391 params->xff_headers[hdr_idx].name = new char[header.length() + 1]; in set() 392 strcpy(const_cast<char*>(params->xff_headers[hdr_idx].name), header.c_str()); in set() 394 params->xff_headers[hdr_idx] = end_header; in set() 432 int32_t hdr_idx; in prepare_http_header_list() local 436 for (hdr_idx = 0; HttpMsgHeadShared::header_list[hdr_idx].code ; hdr_idx++) in prepare_http_header_list() 438 params->header_list[hdr_idx] = HttpMsgHeadShared::header_list[hdr_idx]; in prepare_http_header_list() 447 params->header_list[hdr_idx++] = params->xff_headers[idx]; in prepare_http_header_list() [all …]
|
/dports/net/libwebsockets/libwebsockets-v4.2.2/lib/roles/h2/ |
H A D | hpack.c | 863 h2n->hdr_idx = c & 0x7f; in lws_hpack_interpret() 870 if (!h2n->hdr_idx) { in lws_hpack_interpret() 895 h2n->hdr_idx = 0; in lws_hpack_interpret() 908 h2n->hdr_idx = c & 0x3f; in lws_hpack_interpret() 918 if (!h2n->hdr_idx) { in lws_hpack_interpret() 955 h2n->hdr_idx = 0; in lws_hpack_interpret() 963 h2n->hdr_idx = c & 0xf; in lws_hpack_interpret() 1001 (int)h2n->hdr_idx)) { in lws_hpack_interpret() 1017 if (!h2n->hdr_idx) { in lws_hpack_interpret() 1064 h2n->hdr_idx = 1; in lws_hpack_interpret() [all …]
|
/dports/biology/sra-tools/sra-tools-2.11.0/tools/sra-pileup/ |
H A D | sam-hdr1.c | 118 static void process_line( headers * h, int hdr_idx, const char * line, size_t len ) in process_line() argument 124 switch( hdr_idx ) in process_line() 133 switch( hdr_idx ) in process_line() 167 process_line( h, hdr_idx, line, string_measure( line, NULL ) ); in process_lines() 284 static rc_t collect_from_BAM_HEADER( headers * h, int hdr_idx, input_files * ifs ) in collect_from_BAM_HEADER() argument 313 rc = process_lines( h, hdr_idx, content, id->path ); in collect_from_BAM_HEADER() 363 process_line( h, hdr_idx, buffer, num_writ ); in collect_from_spotgroup_stats() 379 static rc_t collect_from_stats( headers * h, int hdr_idx, input_files * ifs ) in collect_from_stats() argument 422 static rc_t collect_from_file( headers * h, int hdr_idx, const char * filename ) in collect_from_file() argument 454 rc = process_lines( h, hdr_idx, content, filename ); in collect_from_file() [all …]
|
/dports/net/haproxy17/haproxy-1.7.14/src/ |
H A D | flt_trace.c | 342 struct hdr_idx *hdr_idx; in trace_http_headers() local 351 hdr_idx = &s->txn->hdr_idx; in trace_http_headers() 352 cur_idx = hdr_idx_first_idx(hdr_idx); in trace_http_headers() 353 cur_hdr = msg->chn->buf->p + hdr_idx_first_pos(hdr_idx); in trace_http_headers() 356 MIN(hdr_idx->v[cur_idx].len, 74), cur_hdr); in trace_http_headers() 357 cur_hdr += hdr_idx->v[cur_idx].len + hdr_idx->v[cur_idx].cr + 1; in trace_http_headers() 358 cur_idx = hdr_idx->v[cur_idx].next; in trace_http_headers()
|
H A D | flt_http_comp.c | 355 if (http_find_header2("User-Agent", 10, req->p, &txn->hdr_idx, &ctx) && in select_compression_request_header() 373 while (http_find_header2("Accept-Encoding", 15, req->p, &txn->hdr_idx, &ctx)) { in select_compression_request_header() 429 http_remove_header2(msg, &txn->hdr_idx, &ctx); in select_compression_request_header() 431 while (http_find_header2("Accept-Encoding", 15, req->p, &txn->hdr_idx, &ctx)) { in select_compression_request_header() 432 http_remove_header2(msg, &txn->hdr_idx, &ctx); in select_compression_request_header() 490 if (http_find_header2("Content-Encoding", 16, res->p, &txn->hdr_idx, &ctx)) in select_compression_response_header() 495 while (http_find_header2("Cache-Control", 13, res->p, &txn->hdr_idx, &ctx)) { in select_compression_response_header() 508 if (http_find_header2("Content-Type", 12, res->p, &txn->hdr_idx, &ctx)) { in select_compression_response_header() 547 http_remove_header2(msg, &txn->hdr_idx, &ctx); in select_compression_response_header() 551 http_header_add_tail2(&txn->rsp, &txn->hdr_idx, "Transfer-Encoding: chunked", 26); in select_compression_response_header() [all …]
|
/dports/net/haproxy18/haproxy-1.8.30/src/ |
H A D | flt_trace.c | 363 struct hdr_idx *hdr_idx; in trace_http_headers() local 372 hdr_idx = &s->txn->hdr_idx; in trace_http_headers() 373 cur_idx = hdr_idx_first_idx(hdr_idx); in trace_http_headers() 374 cur_hdr = msg->chn->buf->p + hdr_idx_first_pos(hdr_idx); in trace_http_headers() 377 MIN(hdr_idx->v[cur_idx].len, 74), cur_hdr); in trace_http_headers() 378 cur_hdr += hdr_idx->v[cur_idx].len + hdr_idx->v[cur_idx].cr + 1; in trace_http_headers() 379 cur_idx = hdr_idx->v[cur_idx].next; in trace_http_headers()
|
H A D | flt_http_comp.c | 360 if (http_find_header2("User-Agent", 10, req->p, &txn->hdr_idx, &ctx) && in select_compression_request_header() 378 while (http_find_header2("Accept-Encoding", 15, req->p, &txn->hdr_idx, &ctx)) { in select_compression_request_header() 434 http_remove_header2(msg, &txn->hdr_idx, &ctx); in select_compression_request_header() 436 while (http_find_header2("Accept-Encoding", 15, req->p, &txn->hdr_idx, &ctx)) { in select_compression_request_header() 437 http_remove_header2(msg, &txn->hdr_idx, &ctx); in select_compression_request_header() 495 if (http_find_header2("Content-Encoding", 16, res->p, &txn->hdr_idx, &ctx)) in select_compression_response_header() 500 while (http_find_header2("Cache-Control", 13, res->p, &txn->hdr_idx, &ctx)) { in select_compression_response_header() 513 if (http_find_header2("Content-Type", 12, res->p, &txn->hdr_idx, &ctx)) { in select_compression_response_header() 552 http_remove_header2(msg, &txn->hdr_idx, &ctx); in select_compression_response_header() 556 http_header_add_tail2(&txn->rsp, &txn->hdr_idx, "Transfer-Encoding: chunked", 26); in select_compression_response_header() [all …]
|
H A D | proto_http.c | 543 return hdr_idx_add(len, 1, hdr_idx, hdr_idx->tail); in http_header_add_tail() 555 struct hdr_idx *hdr_idx, const char *text, int len) in http_header_add_tail2() argument 563 return hdr_idx_add(len, 1, hdr_idx, hdr_idx->tail); in http_header_add_tail2() 2404 struct hdr_idx *idx = &s->txn->hdr_idx; in http_transform_header_str() 8304 if (txn->hdr_idx.v) in http_init_txn() 9788 struct hdr_idx *idx; in smp_fetch_hdrs() 9794 idx = &txn->hdr_idx; in smp_fetch_hdrs() 9823 struct hdr_idx *idx; in smp_fetch_hdrs_bin() 9841 idx = &txn->hdr_idx; in smp_fetch_hdrs_bin() 10069 struct hdr_idx *idx; in smp_fetch_fhdr() [all …]
|
/dports/net/haproxy20/haproxy-2.0.26/src/ |
H A D | proto_http.c | 1359 struct hdr_idx *idx = &s->txn->hdr_idx; in http_transform_header_str() 4575 hdr_idx_init(&txn->hdr_idx); in http_wait_for_response() 5711 txn->hdr_idx.used--; in apply_filter_to_req_headers() 6341 txn->hdr_idx.used--; in manage_client_side_cookies() 6430 txn->hdr_idx.used--; in apply_filter_to_resp_headers() 6815 txn->hdr_idx.used--; in manage_server_side_cookies() 7203 if (!txn->hdr_idx.v) { in http_alloc_txn() 7268 if (txn->hdr_idx.v) in http_init_txn() 7269 hdr_idx_init(&txn->hdr_idx); in http_init_txn() 7438 txn->hdr_idx.v[0].len += delta; in http_replace_req_line() [all …]
|
H A D | flt_trace.c | 442 struct hdr_idx *hdr_idx; in trace_http_headers() local 447 hdr_idx = &s->txn->hdr_idx; in trace_http_headers() 448 cur_idx = hdr_idx_first_idx(hdr_idx); in trace_http_headers() 449 cur_hdr = ci_head(msg->chn) + hdr_idx_first_pos(hdr_idx); in trace_http_headers() 452 MIN(hdr_idx->v[cur_idx].len, 74), cur_hdr); in trace_http_headers() 453 cur_hdr += hdr_idx->v[cur_idx].len + hdr_idx->v[cur_idx].cr + 1; in trace_http_headers() 454 cur_idx = hdr_idx->v[cur_idx].next; in trace_http_headers()
|
H A D | flt_http_comp.c | 496 if (http_header_add_tail2(msg, &txn->hdr_idx, trash.area, trash.data) < 0) in http_set_comp_reshdr() 504 http_remove_header2(msg, &txn->hdr_idx, &ctx); in http_set_comp_reshdr() 514 if (http_find_full_header2("ETag", 4, ci_head(&s->res), &txn->hdr_idx, &ctx)) { in http_set_comp_reshdr() 524 http_remove_header2(msg, &txn->hdr_idx, &ctx); in http_set_comp_reshdr() 525 if (http_header_add_tail2(msg, &txn->hdr_idx, trash.area, trash.data) < 0) in http_set_comp_reshdr() 624 if (http_find_header2("User-Agent", 10, ci_head(req), &txn->hdr_idx, &ctx) && in http_select_comp_reqhdr() 698 http_remove_header2(msg, &txn->hdr_idx, &ctx); in http_select_comp_reqhdr() 701 http_remove_header2(msg, &txn->hdr_idx, &ctx); in http_select_comp_reqhdr() 894 if (http_find_full_header2("ETag", 4, ci_head(c), &txn->hdr_idx, &ctx)) { in http_select_comp_reshdr() 904 if (http_find_full_header2("ETag", 4, ci_head(c), &txn->hdr_idx, &ctx)) in http_select_comp_reshdr() [all …]
|
/dports/net/haproxy19/haproxy-1.9.16/src/ |
H A D | proto_http.c | 1350 struct hdr_idx *idx = &s->txn->hdr_idx; in http_transform_header_str() 4572 hdr_idx_init(&txn->hdr_idx); in http_wait_for_response() 5716 txn->hdr_idx.used--; in apply_filter_to_req_headers() 6346 txn->hdr_idx.used--; in manage_client_side_cookies() 6435 txn->hdr_idx.used--; in apply_filter_to_resp_headers() 6820 txn->hdr_idx.used--; in manage_server_side_cookies() 7208 if (!txn->hdr_idx.v) { in http_alloc_txn() 7273 if (txn->hdr_idx.v) in http_init_txn() 7274 hdr_idx_init(&txn->hdr_idx); in http_init_txn() 7443 txn->hdr_idx.v[0].len += delta; in http_replace_req_line() [all …]
|
H A D | flt_trace.c | 442 struct hdr_idx *hdr_idx; in trace_http_headers() local 447 hdr_idx = &s->txn->hdr_idx; in trace_http_headers() 448 cur_idx = hdr_idx_first_idx(hdr_idx); in trace_http_headers() 449 cur_hdr = ci_head(msg->chn) + hdr_idx_first_pos(hdr_idx); in trace_http_headers() 452 MIN(hdr_idx->v[cur_idx].len, 74), cur_hdr); in trace_http_headers() 453 cur_hdr += hdr_idx->v[cur_idx].len + hdr_idx->v[cur_idx].cr + 1; in trace_http_headers() 454 cur_idx = hdr_idx->v[cur_idx].next; in trace_http_headers()
|
H A D | flt_http_comp.c | 493 if (http_header_add_tail2(msg, &txn->hdr_idx, trash.area, trash.data) < 0) in http_set_comp_reshdr() 501 http_remove_header2(msg, &txn->hdr_idx, &ctx); in http_set_comp_reshdr() 511 if (http_find_full_header2("ETag", 4, ci_head(&s->res), &txn->hdr_idx, &ctx)) { in http_set_comp_reshdr() 521 http_remove_header2(msg, &txn->hdr_idx, &ctx); in http_set_comp_reshdr() 522 if (http_header_add_tail2(msg, &txn->hdr_idx, trash.area, trash.data) < 0) in http_set_comp_reshdr() 621 if (http_find_header2("User-Agent", 10, ci_head(req), &txn->hdr_idx, &ctx) && in http_select_comp_reqhdr() 695 http_remove_header2(msg, &txn->hdr_idx, &ctx); in http_select_comp_reqhdr() 698 http_remove_header2(msg, &txn->hdr_idx, &ctx); in http_select_comp_reqhdr() 891 if (http_find_full_header2("ETag", 4, ci_head(c), &txn->hdr_idx, &ctx)) { in http_select_comp_reshdr() 901 if (http_find_full_header2("ETag", 4, ci_head(c), &txn->hdr_idx, &ctx)) in http_select_comp_reshdr() [all …]
|
/dports/mail/dovecot/dovecot-2.3.17/src/plugins/mail-log/ |
H A D | mail-log-plugin.c | 214 unsigned int hdr_idx = 0; in mail_log_update_wanted_fields() local 217 headers[hdr_idx++] = "Message-ID"; in mail_log_update_wanted_fields() 219 headers[hdr_idx++] = "From"; in mail_log_update_wanted_fields() 221 headers[hdr_idx++] = "Subject"; in mail_log_update_wanted_fields() 222 if (hdr_idx > 0) { in mail_log_update_wanted_fields() 223 i_assert(hdr_idx < N_ELEMENTS(headers)); in mail_log_update_wanted_fields() 224 headers[hdr_idx] = NULL; in mail_log_update_wanted_fields()
|
/dports/astro/gpsbabel14/gpsbabel-1.4.4/ |
H A D | alan.c | 672 int hdr_idx, wpt_idx; in add_wpt() local 678 hdr_idx = find_wpt(wprdata, WP); in add_wpt() 679 if (hdr_idx >= 0) { in add_wpt() 682 wpt = &(wprdata->wpt[wpthdr->idx[hdr_idx]]); in add_wpt() 689 return hdr_idx; in add_wpt() 693 hdr_idx = i; in add_wpt() 710 wpthdr->idx[hdr_idx] = wpt_idx; in add_wpt() 718 return hdr_idx; in add_wpt() 729 int hdr_idx, rte_idx; in wpr_route_hdr() local 735 hdr_idx = i; in wpr_route_hdr() [all …]
|
/dports/mail/dovecot/dovecot-2.3.17/src/doveadm/ |
H A D | doveadm-print-table.c | 30 unsigned int hdr_idx; member 136 hdr = array_idx(&ctx->headers, ctx->hdr_idx); in doveadm_print_next() 144 if (++ctx->hdr_idx == array_count(&ctx->headers)) { in doveadm_print_next() 145 ctx->hdr_idx = 0; in doveadm_print_next()
|