Home
last modified time | relevance | path

Searched refs:argv (Results 1 – 25 of 238) sorted by relevance

12345678910

/trafficserver/src/tscore/
H A Dink_args.cc92 arg = *++(**argv) ? **argv : *++(*argv); in process_arg()
118 **argv += strlen(**argv) - 1; in process_arg()
174 const char **argv) in process_args_ex() argument
209 while (*++argv) { in process_args_ex()
211 if (strcmp(*argv, "-") == 0) { in process_args_ex()
217 if ((*argv)[0] != '-') { in process_args_ex()
222 if ((*argv)[1] == '-') { in process_args_ex()
232 *argv += strlen(*argv) - 1; in process_args_ex()
244 while (*++(*argv)) { in process_args_ex()
262 if (*argv) { in process_args_ex()
[all …]
H A Dtest_geometry.cc33 main(int argc, const char **argv) in main() argument
39 fd = open(argv[i], O_RDONLY); in main()
41 fprintf(stderr, "open(%s): %s\n", argv[i], strerror(errno)); in main()
46 printf("%s:\n", argv[i]); in main()
51 printf("%s: %s (%d)\n", argv[i], strerror(errno), errno); in main()
/trafficserver/proxy/http/remap/
H A DRemapConfig.cc87 memset(this->argv, 0, sizeof(this->argv)); in BUILD_TABLE_INFO()
100 clear_xstr_array(this->argv, sizeof(this->argv) / sizeof(char *)); in reset()
611 if (argv && argc > 0) { in remap_check_option()
623 *argptr = &argv[i][7]; in remap_check_option()
631 *argptr = &argv[i][7]; in remap_check_option()
639 *argptr = &argv[i][7]; in remap_check_option()
647 *argptr = &argv[i][8]; in remap_check_option()
655 *argptr = &argv[i][7]; in remap_check_option()
754 argv = &new_argv[0]; in remap_load_plugin()
790 if (plugin_encountered && !strncasecmp("plugin=", argv[idx], 7) && argv[idx][7]) { in remap_load_plugin()
[all …]
H A DRemapConfig.h54 char *argv[BUILD_TABLE_MAX_ARGS]; member
71 const char *remap_validate_filter_args(acl_filter_rule **rule_pp, const char **argv, int argc, char…
74 unsigned long remap_check_option(const char **argv, int argc, unsigned long findmode = 0, int *_ret…
/trafficserver/tests/tools/plugins/
H A Dssl_verify_test.cc70 parse_callbacks(int argc, const char *argv[], int &count) in parse_callbacks() argument
75 if (argv[i][0] == '-') { in parse_callbacks()
76 switch (argv[i][1]) { in parse_callbacks()
78 ptr = index(argv[i], '='); in parse_callbacks()
84 ptr = index(argv[i], '='); in parse_callbacks()
111 TSPluginInit(int argc, const char *argv[]) in TSPluginInit() argument
122 parse_callbacks(argc, argv, verify_count); in TSPluginInit()
H A Dssl_hook_test.cc231 if (argv[i][0] == '-') { in parse_callbacks()
232 switch (argv[i][1]) { in parse_callbacks()
234 ptr = index(argv[i], '='); in parse_callbacks()
240 ptr = index(argv[i], '='); in parse_callbacks()
246 ptr = index(argv[i], '='); in parse_callbacks()
248 if (strncmp(argv[i] + 1, "close", strlen("close")) == 0) { in parse_callbacks()
260 ptr = index(argv[i], '='); in parse_callbacks()
266 ptr = index(argv[i], '='); in parse_callbacks()
272 ptr = index(argv[i], '='); in parse_callbacks()
276 } else if (strncmp(argv[i] + 1, "out_start", strlen("out_start")) == 0) { in parse_callbacks()
[all …]
H A Dssl_client_verify_test.cc136 parse_callbacks(int argc, const char *argv[], int &count) in parse_callbacks() argument
141 if (argv[i][0] == '-') { in parse_callbacks()
142 switch (argv[i][1]) { in parse_callbacks()
144 ptr = index(argv[i], '='); in parse_callbacks()
150 ptr = index(argv[i], '='); in parse_callbacks()
177 TSPluginInit(int argc, const char *argv[]) in TSPluginInit() argument
188 parse_callbacks(argc, argv, verify_count); in TSPluginInit()
/trafficserver/proxy/
H A DPlugin.cc124 single_plugin_init(int argc, char *argv[], bool validateOnly) in single_plugin_init() argument
132 ink_filepath_make(path, sizeof(path), plugin_dir, argv[0]); in single_plugin_init()
181 init(argc, argv); in single_plugin_init()
266 char *argv[MAX_PLUGIN_ARGS]; in plugin_init() local
317 argv[argc++] = p; in plugin_init()
327 argv[argc++] = p; in plugin_init()
340 vars[i] = plugin_expand(argv[i]); in plugin_init()
342 argv[i] = vars[i]; in plugin_init()
347 argv[argc] = nullptr; in plugin_init()
349 argv[MAX_PLUGIN_ARGS - 1] = nullptr; in plugin_init()
[all …]
/trafficserver/lib/yamlcpp/util/
H A Dparse.cpp13 Params ParseArgs(int argc, char** argv) { in ParseArgs() argument
16 std::vector<std::string> args(argv + 1, argv + argc); in ParseArgs()
49 int main(int argc, char** argv) { in main() argument
50 Params p = ParseArgs(argc, argv); in main()
54 fin.open(argv[1]); in main()
/trafficserver/example/plugins/c-api/remap/
H A Dremap.cc54 char **argv; member in remap_entry
73 argv[i] = TSstrdup(_argv[i]); in remap_entry()
75 argv[i] = nullptr; in remap_entry()
82 if (argc && argv) { in ~remap_entry()
84 TSfree(argv[i]); in ~remap_entry()
86 TSfree(argv); in ~remap_entry()
168 TSRemapNewInstance(int argc, char *argv[], void **ih, char *errbuf, int errbuf_size) in TSRemapNewInstance() argument
178 if (!argv || !ih) { in TSRemapNewInstance()
183 TSDebug(PLUGIN_NAME, "[%s] - argv[%d] = \"%s\"\n", __func__, i, argv[i]); in TSRemapNewInstance()
186 ri = new remap_entry(argc, argv); in TSRemapNewInstance()
[all …]
/trafficserver/src/traffic_layout/
H A Dtraffic_layout.cc31 main(int argc, const char **argv) in main() argument
36 while (argv[i]) { in main()
37 engine._argv.push_back(argv[i]); in main()
70 engine.arguments = engine.parser.parse(argv); in main()
73 argparser_runroot_handler(runroot_arg.value(), argv[0], engine.arguments.get("json")); in main()
/trafficserver/example/plugins/c-api/add_header/
H A Dadd_header.c124 TSPluginInit(int argc, const char *argv[]) in TSPluginInit() argument
141 TSError("[%s] Usage: %s \"name1: value1\" \"name2: value2\" ...>", PLUGIN_NAME, argv[0]); in TSPluginInit()
157 p = strchr(argv[i], ':'); in TSPluginInit()
159 retval = TSMimeHdrFieldNameSet(hdr_bufp, hdr_loc, field_loc, argv[i], p - argv[i]); in TSPluginInit()
175 retval = TSMimeHdrFieldNameSet(hdr_bufp, hdr_loc, field_loc, argv[i], strlen(argv[i])); in TSPluginInit()
/trafficserver/tests/gold_tests/tls/
H A Dtest-0rtt-s_client.py26 ats_port = sys.argv[1]
27 http_ver = sys.argv[2]
28 test = sys.argv[3]
29 sess_file_path = os.path.join(sys.argv[4], 'sess.dat')
30 early_data_file_path = os.path.join(sys.argv[4], 'early_{0}_{1}.txt'.format(http_ver, test))
/trafficserver/tools/http_load/
H A Dhttp_load.c336 argv0 = argv[0]; in main()
352 while (argn < argc && argv[argn][0] == '-' && argv[argn][1] != '\0') { in main()
353 if (strncmp(argv[argn], "-checksum", strlen(argv[argn])) == 0) in main() local
355 else if (strncmp(argv[argn], "-sequential", strlen(argv[argn])) == 0) in main() local
357 else if (strncmp(argv[argn], "-throttle", strlen(argv[argn])) == 0) in main() local
362 } else if (strncmp(argv[argn], "-verbose", strlen(argv[argn])) == 0) in main() local
366 else if (strncmp(argv[argn], "-jitter", strlen(argv[argn])) == 0) in main() local
368 else if (strncmp(argv[argn], "-accept_gzip", strlen(argv[argn])) == 0) in main() local
418 } else if (strncmp(argv[argn], "-unique_id", strlen(argv[argn])) == 0) { in main() local
426 else if (strncmp(argv[argn], "-ignore_bytes", strlen(argv[argn])) == 0) in main() local
[all …]
/trafficserver/plugins/cachekey/tests/
H A Dpattern_test.cc31 main(int argc, char *argv[]) in main() argument
34 std::cerr << "Usage: " << String(argv[0]) << " subject pattern" << std::endl; in main()
38 String subject(argv[1]); in main()
39 String pattern(argv[2]); in main()
/trafficserver/example/plugins/c-api/disable_http2/
H A Ddisable_http2.cc60 TSPluginInit(int argc, char const *argv[]) in TSPluginInit() argument
81 TSDebug(PLUGIN_NAME, "%s added to the No-H2 list", argv[i]); in TSPluginInit()
82 Domains.emplace(std::string(argv[i], strlen(argv[i]))); in TSPluginInit()
/trafficserver/example/plugins/c-api/remap_header_add/
H A Dremap_header_add.cc39 char **argv; // store the originals member
88 TSRemapNewInstance(int argc, char *argv[], void **ih, char *, int) in TSRemapNewInstance() argument
94 if (!argv || !ih) { in TSRemapNewInstance()
103 rl->argv = argv; in TSRemapNewInstance()
112 ParseArgIntoNv(argv[i], &rl->name[i - 2], &rl->val[i - 2]); in TSRemapNewInstance()
/trafficserver/proxy/hdrs/
H A Dload_http_hdr.cc295 main(int argc, const char *argv[]) in main() argument
302 fprintf(stderr, "Usage: %s req|res <file>\n", argv[0]); in main()
306 if (strcasecmp(argv[1], "req") == 0) { in main()
308 } else if (strcasecmp(argv[1], "resp") == 0) { in main()
310 } else if (strcasecmp(argv[1], "hinfo") == 0) { in main()
312 } else if (strcasecmp(argv[1], "mbuf") == 0) { in main()
315 fprintf(stderr, "Usage: %s req|resp|hinfo|mbuf <file>\n", argv[0]); in main()
319 int fd = open(argv[2], O_RDONLY); in main()
322 fprintf(stderr, "Could not open file %s : %s\n", argv[2], strerror(errno)); in main()
/trafficserver/plugins/escalate/
H A Descalate.cc159 TSRemapNewInstance(int argc, char *argv[], void **instance, char *errbuf, int errbuf_size) in TSRemapNewInstance() argument
169 if (0 == strncasecmp(argv[i], "--pristine", 10)) { in TSRemapNewInstance()
173 sep = strchr(argv[i], ':'); in TSRemapNewInstance()
175 snprintf(errbuf, errbuf_size, "malformed status:target config: %s", argv[i]); in TSRemapNewInstance()
194 for (token = strtok_r(argv[i], ",", &save); token; token = strtok_r(nullptr, ",", &save)) { in TSRemapNewInstance()
198 …size, "invalid status code: %.*s", static_cast<int>(std::distance(argv[i], sep)), argv[i]); in TSRemapNewInstance()
/trafficserver/plugins/experimental/collapsed_forwarding/
H A Dcollapsed_forwarding.cc309 process_args(int argc, const char **argv) in process_args() argument
313 if (strncmp(argv[i], "--delay=", 8) == 0) { in process_args()
314 OPEN_WRITE_FAIL_REQ_DELAY_TIMEOUT = atoi(const_cast<char *>(argv[i] + 8)); in process_args()
315 } else if (strncmp(argv[i], "--retries=", 10) == 0) { in process_args()
316 OPEN_WRITE_FAIL_MAX_REQ_DELAY_RETRIES = atoi(const_cast<char *>(argv[i] + 10)); in process_args()
325 TSPluginInit(int argc, const char *argv[]) in TSPluginInit() argument
337 process_args(argc, argv); in TSPluginInit()
361 TSRemapNewInstance(int argc, char *argv[], void ** /* ih */, char * /* errbuf */, int /* errbuf_siz… in TSRemapNewInstance() argument
363 process_args(argc - 1, const_cast<const char **>(argv + 1)); in TSRemapNewInstance()
/trafficserver/tests/gold_tests/chunked_encoding/
H A Dsmuggle-client.c47 main(int argc, char *argv[]) in main() argument
54 fprintf(stderr, "Usage: %s <target addr> <target_port>\n", argv[0]); in main()
58 const char *target = argv[1]; in main()
59 const char *target_port = argv[2]; in main()
/trafficserver/plugins/experimental/geoip_acl/
H A Dacl.cc293 CountryAcl::process_args(int argc, char *argv[]) in process_args() argument
298 if (!strncmp(argv[i], "allow", 5)) { in process_args()
300 } else if (!strncmp(argv[i], "deny", 4)) { in process_args()
302 } else if (!strncmp(argv[i], "regex::", 7)) { in process_args()
303 read_regex(argv[i] + 7, tokens); in process_args()
304 } else if (!strncmp(argv[i], "html::", 6)) { in process_args()
305 read_html(argv[i] + 6); in process_args()
307 add_token(argv[i]); in process_args()
/trafficserver/plugins/prefetch/
H A Dconfigs.cc55 PrefetchConfig::init(int argc, char *argv[]) in init() argument
76 argv++; in init()
80 opt = getopt_long(argc, (char *const *)argv, "", longopt, nullptr); in init()
86 PrefetchDebug("processing %s", argv[optind - 1]); in init()
/trafficserver/plugins/header_rewrite/
H A Dheader_rewrite.cc316 TSPluginInit(int argc, const char *argv[]) in TSPluginInit() argument
338 TSDebug(PLUGIN_NAME, "Loading global configuration file %s", argv[i]); in TSPluginInit()
339 if (conf->parse_config(argv[i], TS_HTTP_READ_RESPONSE_HDR_HOOK)) { in TSPluginInit()
340 TSDebug(PLUGIN_NAME, "Successfully loaded global config file %s", argv[i]); in TSPluginInit()
343 TSError("[header_rewrite] failed to parse configuration file %s", argv[i]); in TSPluginInit()
393 TSRemapNewInstance(int argc, char *argv[], void **ih, char * /* errbuf ATS_UNUSED */, int /* errbuf… in TSRemapNewInstance() argument
405 TSDebug(PLUGIN_NAME, "Loading remap configuration file %s", argv[i]); in TSRemapNewInstance()
406 if (!conf->parse_config(argv[i], TS_REMAP_PSEUDO_HOOK)) { in TSRemapNewInstance()
411 TSDebug(PLUGIN_NAME, "Successfully loaded remap config file %s", argv[i]); in TSRemapNewInstance()
/trafficserver/plugins/experimental/custom_redirect/
H A Dcustom_redirect.cc122 TSPluginInit(int argc, const char *argv[]) in TSPluginInit() argument
143 if (isNumber(argv[1])) { in TSPluginInit()
144 return_code = atoi(argv[1]); in TSPluginInit()
147 redirect_url_header = TSstrdup(argv[1]); in TSPluginInit()

Completed in 180 milliseconds

12345678910