Lines Matching refs:util

62 #include "util.h"
135 auto d = util::parse_uint(portstr);
227 LOG(INFO) << "session ticket key: " << util::format_hex(key.data.name);
257 if (s.size() != expectedlen * 2 || !util::is_hex_string(s)) {
268 util::decode_hex(std::begin(qkm.reserved),
271 util::decode_hex(std::begin(qkm.secret),
274 util::decode_hex(std::begin(qkm.salt), StringRef{p, p + qkm.salt.size()});
315 util::make_socket_closeonexec(fd);
374 util::inp_strlower(name_iov.base, p);
391 auto val = util::parse_uint(optarg);
406 auto n = util::parse_uint_with_unit(optarg);
430 auto tokens = util::split_str(optarg, ',', 5);
484 if (util::strieq_l("pi", name, 2)) {
493 if (util::strieq_l("pat", name, 3)) {
498 if (util::strieq_l("alp", name, 3)) {
507 if (util::strieq_l("metho", name, 5)) {
512 if (util::strieq_l("statu", name, 5)) {
521 if (util::strieq_l("tls_sn", name, 6)) {
526 if (util::strieq_l("reques", name, 6)) {
535 if (util::strieq_l("time_loca", name, 9)) {
540 if (util::strieq_l("ssl_ciphe", name, 9)) {
543 if (util::strieq_l("tls_ciphe", name, 9)) {
552 if (util::strieq_l("remote_add", name, 10)) {
557 if (util::strieq_l("remote_por", name, 10)) {
560 if (util::strieq_l("server_por", name, 10)) {
569 if (util::strieq_l("time_iso860", name, 11)) {
574 if (util::strieq_l("request_tim", name, 11)) {
579 if (util::strieq_l("ssl_protoco", name, 11)) {
582 if (util::strieq_l("tls_protoco", name, 11)) {
587 if (util::strieq_l("backend_hos", name, 11)) {
590 if (util::strieq_l("backend_por", name, 11)) {
599 if (util::strieq_l("ssl_session_i", name, 13)) {
602 if (util::strieq_l("tls_session_i", name, 13)) {
611 if (util::strieq_l("body_bytes_sen", name, 14)) {
620 if (util::strieq_l("protocol_versio", name, 15)) {
629 if (util::strieq_l("tls_client_seria", name, 16)) {
638 if (util::strieq_l("ssl_session_reuse", name, 17)) {
641 if (util::strieq_l("tls_session_reuse", name, 17)) {
646 if (util::strieq_l("path_without_quer", name, 17)) {
655 if (util::strieq_l("tls_client_issuer_nam", name, 21)) {
664 if (util::strieq_l("tls_client_subject_nam", name, 22)) {
673 if (util::strieq_l("tls_client_fingerprint_sha", name, 26)) {
682 if (util::strieq_l("tls_client_fingerprint_sha25", name, 28)) {
695 return util::is_alpha(c) || util::is_digit(c) || c == '_';
744 if (util::istarts_with_l(StringRef{var_name, var_namelen}, "http_")) {
745 if (util::streq_l("host", StringRef{var_name + str_size("http_"),
801 if (util::strieq_l("auto", optarg)) {
805 if (util::strieq_l("IPv4", optarg)) {
809 if (util::strieq_l("IPv6", optarg)) {
822 auto t = util::parse_duration_with_unit(optarg);
865 if (util::strieq_l("tls", param)) {
867 } else if (util::strieq_l("no-tls", param)) {
903 if (util::strieq_l("tls", param)) {
905 } else if (util::strieq_l("sni-fwd", param)) {
907 } else if (util::strieq_l("no-tls", param)) {
909 } else if (util::strieq_l("api", param)) {
916 } else if (util::strieq_l("healthmon", param)) {
923 } else if (util::strieq_l("proxyproto", param)) {
925 } else if (util::strieq_l("quic", param)) {
973 auto t = util::parse_duration_with_unit(value);
994 if (util::istarts_with_l(param, "proto=")) {
1001 if (util::streq_l("h2", std::begin(protostr), protostr.size())) {
1003 } else if (util::streq_l("http/1.1", std::begin(protostr),
1010 } else if (util::istarts_with_l(param, "fall=")) {
1017 auto n = util::parse_uint(valstr);
1024 } else if (util::istarts_with_l(param, "rise=")) {
1031 auto n = util::parse_uint(valstr);
1038 } else if (util::strieq_l("tls", param)) {
1040 } else if (util::strieq_l("no-tls", param)) {
1042 } else if (util::istarts_with_l(param, "sni=")) {
1044 } else if (util::istarts_with_l(param, "affinity=")) {
1046 if (util::strieq_l("none", valstr)) {
1048 } else if (util::strieq_l("ip", valstr)) {
1050 } else if (util::strieq_l("cookie", valstr)) {
1057 } else if (util::istarts_with_l(param, "affinity-cookie-name=")) {
1065 } else if (util::istarts_with_l(param, "affinity-cookie-path=")) {
1068 } else if (util::istarts_with_l(param, "affinity-cookie-secure=")) {
1070 if (util::strieq_l("auto", valstr)) {
1072 } else if (util::strieq_l("yes", valstr)) {
1074 } else if (util::strieq_l("no", valstr)) {
1081 } else if (util::istarts_with_l(param, "affinity-cookie-stickiness=")) {
1084 if (util::strieq_l("loose", valstr)) {
1086 } else if (util::strieq_l("strict", valstr)) {
1094 } else if (util::strieq_l("dns", param)) {
1096 } else if (util::strieq_l("redirect-if-not-tls", param)) {
1098 } else if (util::strieq_l("upgrade-scheme", param)) {
1100 } else if (util::istarts_with_l(param, "mruby=")) {
1103 } else if (util::istarts_with_l(param, "read-timeout=")) {
1109 } else if (util::istarts_with_l(param, "write-timeout=")) {
1115 } else if (util::istarts_with_l(param, "weight=")) {
1123 auto n = util::parse_uint(valstr);
1130 } else if (util::istarts_with_l(param, "group=")) {
1137 } else if (util::istarts_with_l(param, "group-weight=")) {
1145 auto n = util::parse_uint(valstr);
1152 } else if (util::strieq_l("dnf", param)) {
1183 auto mapping = util::split_str(src_pattern, ':');
1234 util::inp_strlower(iov.base, p);
1247 util::inp_strlower(iov.base, p);
1410 if (util::strieq_l("obfuscated", optarg)) {
1414 if (util::strieq_l("ip", optarg)) {
1423 return util::is_alpha(c) || util::is_digit(c) || c == '.' || c == '_' ||
1450 auto n = util::parse_uint(codestr);
1512 if (util::istarts_with_l(param, "sct-dir=")) {
1576 if (name[0] == '.' || !util::iends_with_l(name, ".sct")) {
1696 if (!util::is_hex_string(StringRef{sep_it + 1, std::end(line)})) {
1706 util::decode_hex(config->balloc, StringRef{sep_it + 1, std::end(line)});
1763 if (!util::is_hex_string(StringRef{sep_it + 1, std::end(line)})) {
1773 util::decode_hex(config->balloc, StringRef{sep_it + 1, std::end(line)});
1789 if (util::strieq_l("con", name, 3)) {
1794 if (util::strieq_l("use", name, 3)) {
1803 if (util::strieq_l("no-vi", name, 5)) {
1808 if (util::strieq_l("altsv", name, 5)) {
1813 if (util::strieq_l("daemo", name, 5)) {
1818 if (util::strieq_l("cacer", name, 5)) {
1821 if (util::strieq_l("clien", name, 5)) {
1830 if (util::strieq_l("backen", name, 6)) {
1835 if (util::strieq_l("includ", name, 6)) {
1840 if (util::strieq_l("backlo", name, 6)) {
1843 if (util::strieq_l("paddin", name, 6)) {
1848 if (util::strieq_l("no-ocs", name, 6)) {
1853 if (util::strieq_l("cipher", name, 6)) {
1856 if (util::strieq_l("worker", name, 6)) {
1861 if (util::strieq_l("subcer", name, 6)) {
1870 if (util::strieq_l("fronten", name, 7)) {
1875 if (util::strieq_l("insecur", name, 7)) {
1878 if (util::strieq_l("pid-fil", name, 7)) {
1883 if (util::strieq_l("fastope", name, 7)) {
1888 if (util::strieq_l("tls-ktl", name, 7)) {
1893 if (util::strieq_l("npn-lis", name, 7)) {
1902 if (util::strieq_l("no-kqueu", name, 8)) {
1905 if (util::strieq_l("read-rat", name, 8)) {
1910 if (util::strieq_l("log-leve", name, 8)) {
1919 if (util::strieq_l("error-pag", name, 9)) {
1922 if (util::strieq_l("mruby-fil", name, 9)) {
1925 if (util::strieq_l("write-rat", name, 9)) {
1930 if (util::strieq_l("read-burs", name, 9)) {
1939 if (util::strieq_l("server-nam", name, 10)) {
1944 if (util::strieq_l("no-quic-bp", name, 10)) {
1949 if (util::strieq_l("tls-sct-di", name, 10)) {
1954 if (util::strieq_l("backend-tl", name, 10)) {
1957 if (util::strieq_l("ecdh-curve", name, 10)) {
1960 if (util::strieq_l("psk-secret", name, 10)) {
1965 if (util::strieq_l("write-burs", name, 10)) {
1970 if (util::strieq_l("dns-max-tr", name, 10)) {
1973 if (util::strieq_l("http2-prox", name, 10)) {
1982 if (util::strieq_l("backend-ipv", name, 11)) {
1987 if (util::strieq_l("backend-ipv", name, 11)) {
1992 if (util::strieq_l("http2-altsv", name, 11)) {
1997 if (util::strieq_l("host-rewrit", name, 11)) {
2000 if (util::strieq_l("http2-bridg", name, 11)) {
2005 if (util::strieq_l("ocsp-startu", name, 11)) {
2010 if (util::strieq_l("client-prox", name, 11)) {
2013 if (util::strieq_l("forwarded-b", name, 11)) {
2022 if (util::strieq_l("add-forwarde", name, 12)) {
2025 if (util::strieq_l("single-threa", name, 12)) {
2030 if (util::strieq_l("dh-param-fil", name, 12)) {
2033 if (util::strieq_l("errorlog-fil", name, 12)) {
2036 if (util::strieq_l("rlimit-nofil", name, 12)) {
2041 if (util::strieq_l("forwarded-fo", name, 12)) {
2046 if (util::strieq_l("tls13-cipher", name, 12)) {
2051 if (util::strieq_l("verify-clien", name, 12)) {
2060 if (util::strieq_l("quic-server-i", name, 13)) {
2065 if (util::strieq_l("accesslog-fil", name, 13)) {
2070 if (util::strieq_l("no-server-pus", name, 13)) {
2075 if (util::strieq_l("rlimit-memloc", name, 13)) {
2080 if (util::strieq_l("no-verify-ocs", name, 13)) {
2085 if (util::strieq_l("backend-no-tl", name, 13)) {
2088 if (util::strieq_l("client-cipher", name, 13)) {
2091 if (util::strieq_l("single-proces", name, 13)) {
2096 if (util::strieq_l("tls-proto-lis", name, 13)) {
2105 if (util::strieq_l("no-host-rewrit", name, 14)) {
2110 if (util::strieq_l("errorlog-syslo", name, 14)) {
2115 if (util::strieq_l("frontend-no-tl", name, 14)) {
2120 if (util::strieq_l("syslog-facilit", name, 14)) {
2129 if (util::strieq_l("certificate-fil", name, 15)) {
2132 if (util::strieq_l("client-cert-fil", name, 15)) {
2135 if (util::strieq_l("private-key-fil", name, 15)) {
2138 if (util::strieq_l("worker-read-rat", name, 15)) {
2143 if (util::strieq_l("accesslog-syslo", name, 15)) {
2148 if (util::strieq_l("accesslog-forma", name, 15)) {
2157 if (util::strieq_l("no-server-rewrit", name, 16)) {
2160 if (util::strieq_l("worker-write-rat", name, 16)) {
2165 if (util::strieq_l("backend-http1-tl", name, 16)) {
2168 if (util::strieq_l("max-header-field", name, 16)) {
2173 if (util::strieq_l("dns-cache-timeou", name, 16)) {
2176 if (util::strieq_l("worker-read-burs", name, 16)) {
2185 if (util::strieq_l("tls-max-early-dat", name, 17)) {
2190 if (util::strieq_l("add-request-heade", name, 17)) {
2195 if (util::strieq_l("client-psk-secret", name, 17)) {
2200 if (util::strieq_l("dns-lookup-timeou", name, 17)) {
2203 if (util::strieq_l("worker-write-burs", name, 17)) {
2212 if (util::strieq_l("no-location-rewrit", name, 18)) {
2215 if (util::strieq_l("require-http-schem", name, 18)) {
2218 if (util::strieq_l("tls-ticket-key-fil", name, 18)) {
2223 if (util::strieq_l("backend-max-backof", name, 18)) {
2228 if (util::strieq_l("add-response-heade", name, 18)) {
2231 if (util::strieq_l("add-x-forwarded-fo", name, 18)) {
2234 if (util::strieq_l("header-field-buffe", name, 18)) {
2239 if (util::strieq_l("redirect-https-por", name, 18)) {
2242 if (util::strieq_l("stream-read-timeou", name, 18)) {
2251 if (util::strieq_l("frontend-frame-debu", name, 19)) {
2256 if (util::strieq_l("ocsp-update-interva", name, 19)) {
2261 if (util::strieq_l("max-worker-processe", name, 19)) {
2264 if (util::strieq_l("tls13-client-cipher", name, 19)) {
2269 if (util::strieq_l("backend-read-timeou", name, 19)) {
2272 if (util::strieq_l("stream-write-timeou", name, 19)) {
2275 if (util::strieq_l("verify-client-cacer", name, 19)) {
2280 if (util::strieq_l("api-max-request-bod", name, 19)) {
2289 if (util::strieq_l("backend-tls-sni-fiel", name, 20)) {
2294 if (util::strieq_l("quic-bpf-program-fil", name, 20)) {
2299 if (util::strieq_l("accept-proxy-protoco", name, 20)) {
2304 if (util::strieq_l("tls-max-proto-versio", name, 20)) {
2307 if (util::strieq_l("tls-min-proto-versio", name, 20)) {
2312 if (util::strieq_l("tls-ticket-key-ciphe", name, 20)) {
2317 if (util::strieq_l("frontend-max-request", name, 20)) {
2322 if (util::strieq_l("backend-write-timeou", name, 20)) {
2325 if (util::strieq_l("frontend-read-timeou", name, 20)) {
2330 if (util::strieq_l("accesslog-write-earl", name, 20)) {
2339 if (util::strieq_l("backend-http-proxy-ur", name, 21)) {
2344 if (util::strieq_l("backend-request-buffe", name, 21)) {
2347 if (util::strieq_l("frontend-quic-qlog-di", name, 21)) {
2352 if (util::strieq_l("frontend-write-timeou", name, 21)) {
2357 if (util::strieq_l("backend-address-famil", name, 21)) {
2366 if (util::strieq_l("client-private-key-fil", name, 22)) {
2369 if (util::strieq_l("private-key-passwd-fil", name, 22)) {
2374 if (util::strieq_l("frontend-quic-debug-lo", name, 22)) {
2379 if (util::strieq_l("backend-response-buffe", name, 22)) {
2384 if (util::strieq_l("backend-connect-timeou", name, 22)) {
2393 if (util::strieq_l("frontend-quic-early-dat", name, 23)) {
2398 if (util::strieq_l("strip-incoming-forwarde", name, 23)) {
2401 if (util::strieq_l("tls-ticket-key-memcache", name, 23)) {
2406 if (util::strieq_l("fetch-ocsp-response-fil", name, 23)) {
2411 if (util::strieq_l("no-add-x-forwarded-prot", name, 23)) {
2416 if (util::strieq_l("listener-disable-timeou", name, 23)) {
2419 if (util::strieq_l("tls-dyn-rec-idle-timeou", name, 23)) {
2428 if (util::strieq_l("backend-http2-window-siz", name, 24)) {
2431 if (util::strieq_l("frontend-quic-secret-fil", name, 24)) {
2436 if (util::strieq_l("http2-no-cookie-crumblin", name, 24)) {
2441 if (util::strieq_l("backend-http2-window-bit", name, 24)) {
2444 if (util::strieq_l("max-request-header-field", name, 24)) {
2449 if (util::strieq_l("frontend-quic-initial-rt", name, 24)) {
2458 if (util::strieq_l("tls-no-postpone-early-dat", name, 25)) {
2463 if (util::strieq_l("frontend-http2-window-siz", name, 25)) {
2466 if (util::strieq_l("frontend-http3-window-siz", name, 25)) {
2471 if (util::strieq_l("frontend-http2-window-bit", name, 25)) {
2474 if (util::strieq_l("max-response-header-field", name, 25)) {
2479 if (util::strieq_l("backend-keep-alive-timeou", name, 25)) {
2482 if (util::strieq_l("frontend-quic-idle-timeou", name, 25)) {
2485 if (util::strieq_l("no-http2-cipher-black-lis", name, 25)) {
2488 if (util::strieq_l("no-http2-cipher-block-lis", name, 25)) {
2497 if (util::strieq_l("tls-session-cache-memcache", name, 26)) {
2502 if (util::strieq_l("frontend-quic-require-toke", name, 26)) {
2507 if (util::strieq_l("request-header-field-buffe", name, 26)) {
2512 if (util::strieq_l("worker-frontend-connection", name, 26)) {
2517 if (util::strieq_l("frontend-http2-read-timeou", name, 26)) {
2520 if (util::strieq_l("frontend-http3-read-timeou", name, 26)) {
2523 if (util::strieq_l("frontend-keep-alive-timeou", name, 26)) {
2532 if (util::strieq_l("no-strip-incoming-early-dat", name, 27)) {
2537 if (util::strieq_l("tls-dyn-rec-warmup-threshol", name, 27)) {
2542 if (util::strieq_l("response-header-field-buffe", name, 27)) {
2547 if (util::strieq_l("http2-max-concurrent-stream", name, 27)) {
2550 if (util::strieq_l("tls-ticket-key-memcached-tl", name, 27)) {
2555 if (util::strieq_l("backend-connections-per-hos", name, 27)) {
2564 if (util::strieq_l("verify-client-tolerate-expire", name, 29)) {
2569 if (util::strieq_l("frontend-http3-max-window-siz", name, 29)) {
2574 if (util::strieq_l("ignore-per-pattern-mruby-erro", name, 29)) {
2577 if (util::strieq_l("strip-incoming-x-forwarded-fo", name, 29)) {
2582 if (util::strieq_l("backend-http2-settings-timeou", name, 29)) {
2591 if (util::strieq_l("tls-session-cache-memcached-tl", name, 30)) {
2596 if (util::strieq_l("frontend-http2-settings-timeou", name, 30)) {
2605 if (util::strieq_l("backend-connections-per-fronten", name, 31)) {
2614 if (util::strieq_l("tls-ticket-key-memcached-interva", name, 32)) {
2617 if (util::strieq_l("tls-ticket-key-memcached-max-fai", name, 32)) {
2622 if (util::strieq_l("client-no-http2-cipher-black-lis", name, 32)) {
2625 if (util::strieq_l("client-no-http2-cipher-block-lis", name, 32)) {
2634 if (util::strieq_l("tls-ticket-key-memcached-cert-fil", name, 33)) {
2639 if (util::strieq_l("frontend-http2-dump-request-heade", name, 33)) {
2644 if (util::strieq_l("backend-http1-connections-per-hos", name, 33)) {
2649 if (util::strieq_l("tls-ticket-key-memcached-max-retr", name, 33)) {
2658 if (util::strieq_l("frontend-http2-optimize-window-siz", name, 34)) {
2663 if (util::strieq_l("no-strip-incoming-x-forwarded-prot", name, 34)) {
2668 if (util::strieq_l("frontend-http2-dump-response-heade", name, 34)) {
2671 if (util::strieq_l("frontend-quic-congestion-controlle", name, 34)) {
2680 if (util::strieq_l("worker-process-grace-shutdown-perio", name, 35)) {
2685 if (util::strieq_l("backend-http2-connection-window-siz", name, 35)) {
2690 if (util::strieq_l("backend-http2-connections-per-worke", name, 35)) {
2695 if (util::strieq_l("backend-http2-connection-window-bit", name, 35)) {
2698 if (util::strieq_l("backend-http2-max-concurrent-stream", name, 35)) {
2707 if (util::strieq_l("frontend-http2-connection-window-siz", name, 36)) {
2710 if (util::strieq_l("frontend-http3-connection-window-siz", name, 36)) {
2713 if (util::strieq_l("tls-session-cache-memcached-cert-fil", name, 36)) {
2718 if (util::strieq_l("frontend-http2-connection-window-bit", name, 36)) {
2721 if (util::strieq_l("frontend-http2-max-concurrent-stream", name, 36)) {
2724 if (util::strieq_l("frontend-http3-max-concurrent-stream", name, 36)) {
2733 if (util::strieq_l("backend-http1-connections-per-fronten", name, 37)) {
2742 if (util::strieq_l("tls-ticket-key-memcached-address-famil", name, 38)) {
2751 if (util::strieq_l("backend-http2-decoder-dynamic-table-siz", name, 39)) {
2754 if (util::strieq_l("backend-http2-encoder-dynamic-table-siz", name, 39)) {
2763 if (util::strieq_l("frontend-http2-decoder-dynamic-table-siz", name,
2767 if (util::strieq_l("frontend-http2-encoder-dynamic-table-siz", name,
2771 if (util::strieq_l("frontend-http2-optimize-write-buffer-siz", name,
2775 if (util::strieq_l("frontend-http3-max-connection-window-siz", name,
2779 if (util::strieq_l("tls-ticket-key-memcached-private-key-fil", name,
2789 if (util::strieq_l("tls-session-cache-memcached-address-famil", name,
2799 if (util::strieq_l("tls-session-cache-memcached-private-key-fil", name,
2831 if (util::istarts_with(optarg, SHRPX_UNIX_PATH_PREFIX)) {
2909 if (util::istarts_with(optarg, SHRPX_UNIX_PATH_PREFIX)) {
2933 if (util::numeric_host(host, AF_INET)) {
2940 if (util::numeric_host(host, AF_INET6)) {
2989 config->daemon = util::strieq_l("yes", optarg);
2993 config->http2_proxy = util::strieq_l("yes", optarg);
3007 config->http.xff.add = util::strieq_l("yes", optarg);
3011 config->http.xff.strip_incoming = util::strieq_l("yes", optarg);
3015 config->http.no_via = util::strieq_l("yes", optarg);
3041 config->logging.access.syslog = util::strieq_l("yes", optarg);
3053 config->logging.error.syslog = util::strieq_l("yes", optarg);
3261 config->tls.insecure = util::strieq_l("yes", optarg);
3292 auto uf = util::get_uri_field(optarg.c_str(), u, UF_USERINFO);
3296 proxy.userinfo = util::percent_decode(config->balloc, uf);
3301 config->balloc, util::get_uri_field(optarg.c_str(), u, UF_HOST));
3344 auto list = util::split_str(optarg, ',');
3356 auto list = util::split_str(optarg, ',');
3365 config->tls.client_verify.enabled = util::strieq_l("yes", optarg);
3392 config->http2.no_cookie_crumbling = util::strieq_l("yes", optarg);
3396 config->http2.upstream.debug.frame_debug = util::strieq_l("yes", optarg);
3429 config->http.no_location_rewrite = util::strieq_l("yes", optarg);
3513 config->http2.no_server_push = util::strieq_l("yes", optarg);
3527 config->tls.ocsp.disabled = util::strieq_l("yes", optarg);
3565 if (util::strieq_l("aes-128-cbc", optarg)) {
3567 } else if (util::strieq_l("aes-256-cbc", optarg)) {
3578 config->http.no_host_rewrite = !util::strieq_l("yes", optarg);
3659 config->conn.upstream.accept_proxy_protocol = util::strieq_l("yes", optarg);
3665 for (const auto &param : util::split_str(optarg, ',')) {
3666 if (util::strieq_l("by", param)) {
3670 if (util::strieq_l("for", param)) {
3674 if (util::strieq_l("host", param)) {
3678 if (util::strieq_l("proto", param)) {
3691 config->http.forwarded.strip_incoming = util::strieq_l("yes", optarg);
3728 config->tls.no_http2_cipher_block_list = util::strieq_l("yes", optarg);
3804 config->http.no_server_rewrite = util::strieq_l("yes", optarg);
3809 util::strieq_l("yes", optarg);
3813 config->http2.upstream.optimize_window_size = util::strieq_l("yes", optarg);
3935 util::strieq_l("yes", optarg);
3947 config->logging.access.write_early = util::strieq_l("yes", optarg);
3955 auto n = util::parse_uint(optarg);
3968 config->single_thread = util::strieq_l("yes", optarg);
3972 config->single_process = util::strieq_l("yes", optarg);
3976 config->http.xfp.add = !util::strieq_l("yes", optarg);
3980 config->http.xfp.strip_incoming = !util::strieq_l("yes", optarg);
3984 config->tls.ocsp.startup = util::strieq_l("yes", optarg);
3988 config->tls.ocsp.no_verify = util::strieq_l("yes", optarg);
3992 config->tls.client_verify.tolerate_expired = util::strieq_l("yes", optarg);
3996 config->ignore_per_pattern_mruby_error = util::strieq_l("yes", optarg);
4000 config->tls.no_postpone_early_data = util::strieq_l("yes", optarg);
4007 config->http.early_data.strip_incoming = !util::strieq_l("yes", optarg);
4018 config->quic.bpf.disabled = util::strieq_l("yes", optarg);
4048 config->quic.upstream.debug.log = util::strieq_l("yes", optarg);
4097 config->quic.upstream.early_data = util::strieq_l("yes", optarg);
4109 config->quic.upstream.require_token = util::strieq_l("yes", optarg);
4115 if (util::strieq_l("cubic", optarg)) {
4117 } else if (util::strieq_l("bbr", optarg)) {
4129 !util::is_hex_string(optarg)) {
4133 util::decode_hex(std::begin(config->quic.server_id), optarg);
4173 config->http.require_http_scheme = util::strieq_l("yes", optarg);
4176 config->tls.ktls = util::strieq_l("yes", optarg);
4271 if (util::strieq_l("auth", strfacility)) {
4276 if (util::strieq_l("authpriv", strfacility)) {
4281 if (util::strieq_l("cron", strfacility)) {
4285 if (util::strieq_l("daemon", strfacility)) {
4290 if (util::strieq_l("ftp", strfacility)) {
4295 if (util::strieq_l("kern", strfacility)) {
4299 if (util::strieq_l("local0", strfacility)) {
4303 if (util::strieq_l("local1", strfacility)) {
4307 if (util::strieq_l("local2", strfacility)) {
4311 if (util::strieq_l("local3", strfacility)) {
4315 if (util::strieq_l("local4", strfacility)) {
4319 if (util::strieq_l("local5", strfacility)) {
4323 if (util::strieq_l("local6", strfacility)) {
4327 if (util::strieq_l("local7", strfacility)) {
4331 if (util::strieq_l("lpr", strfacility)) {
4335 if (util::strieq_l("mail", strfacility)) {
4339 if (util::strieq_l("news", strfacility)) {
4343 if (util::strieq_l("syslog", strfacility)) {
4347 if (util::strieq_l("user", strfacility)) {
4351 if (util::strieq_l("uucp", strfacility)) {
4395 rv = util::sha256(buf.data(), StringRef{t});
4467 << (addr.host_unix ? "" : ":" + util::utos(addr.port))
4512 std::array<char, util::max_hostport> hostport_buf;
4556 util::make_http_hostport(downstreamconf.balloc, addr.host, addr.port);
4559 util::make_hostport(std::begin(hostport_buf), addr.host, addr.port);
4570 << util::to_numeric_addr(&addr.addr);
4610 addr.affinity_hash = util::hash32(key);
4639 auto service = util::utos(port);