| /mOS-networking-stack/samples/lighttpd-1.4.32/src/ |
| H A D | mod_auth.c | 63 if (!s) continue; in FREE_FUNC() 83 if (s->ldap) ldap_unbind_s(s->ldap); in FREE_FUNC() 86 free(s); in FREE_FUNC() 97 p->conf.x = s->x; 118 p->anon_conf = s; in mod_auth_patch_connection() 152 p->anon_conf = s; in mod_auth_patch_connection() 376 s->ldap = NULL; in SETDEFAULTS_FUNC() 430 …buffer_copy_string_len(s->ldap_filter_pre, s->auth_ldap_filter->ptr, dollar - s->auth_ldap_filter-… in SETDEFAULTS_FUNC() 572 if (NULL != s->ldap) ldap_unbind_s(s->ldap); in auth_ldap_init() 610 …if (LDAP_SUCCESS != (ret = ldap_simple_bind_s(s->ldap, s->auth_ldap_binddn->ptr, s->auth_ldap_bind… in auth_ldap_init() [all …]
|
| H A D | mod_evhost.c | 62 free(s); in FREE_FUNC() 81 s->path_pieces = realloc(s->path_pieces,(s->len+2) * sizeof(*s->path_pieces)); in mod_evhost_parse_pattern() 82 s->path_pieces[s->len] = buffer_init(); in mod_evhost_parse_pattern() 83 s->path_pieces[s->len+1] = buffer_init(); in mod_evhost_parse_pattern() 85 buffer_copy_string_len(s->path_pieces[s->len],pos,ptr-pos); in mod_evhost_parse_pattern() 88 buffer_copy_string_len(s->path_pieces[s->len+1],ptr++,2); in mod_evhost_parse_pattern() 90 s->len += 2; in mod_evhost_parse_pattern() 95 s->path_pieces = realloc(s->path_pieces,(s->len+1) * sizeof(*s->path_pieces)); in mod_evhost_parse_pattern() 96 s->path_pieces[s->len] = buffer_init(); in mod_evhost_parse_pattern() 98 buffer_copy_string_len(s->path_pieces[s->len],pos,ptr-pos); in mod_evhost_parse_pattern() [all …]
|
| H A D | mod_accesslog.c | 413 if (!s) continue; in FREE_FUNC() 423 write(s->log_access_fd, s->access_logbuffer->ptr, s->access_logbuffer->used - 1); in FREE_FUNC() 427 if (s->log_access_fd != -1) close(s->log_access_fd); in FREE_FUNC() 445 free(s); in FREE_FUNC() 472 plugin_config *s; in SETDEFAULTS_FUNC() local 482 s->last_generated_accesslog_ts_ptr = &(s->last_generated_accesslog_ts); in SETDEFAULTS_FUNC() 506 s->parsed_format = calloc(1, sizeof(*(s->parsed_format))); in SETDEFAULTS_FUNC() 508 if (-1 == accesslog_parse_format(srv, s->parsed_format, s->format)) { in SETDEFAULTS_FUNC() 568 if (s->use_syslog) { in SETDEFAULTS_FUNC() 601 write(s->log_access_fd, s->access_logbuffer->ptr, s->access_logbuffer->used - 1); in SIGHUP_FUNC() [all …]
|
| H A D | mod_mysql_vhost.c | 98 if (!s) continue; in SERVER_FUNC() 100 mysql_close(s->mysql); in SERVER_FUNC() 102 buffer_free(s->mydb); in SERVER_FUNC() 103 buffer_free(s->myuser); in SERVER_FUNC() 104 buffer_free(s->mypass); in SERVER_FUNC() 110 free(s); in SERVER_FUNC() 191 plugin_config *s; local 203 s->mysql = NULL; 260 #define FOO(x) (s->x->used ? s->x->ptr : NULL) 299 p->conf.x = s->x; [all …]
|
| H A D | mod_trigger_b4_dl.c | 92 if (!s) continue; in FREE_FUNC() 103 if (s->trigger_regex) pcre_free(s->trigger_regex); in FREE_FUNC() 104 if (s->download_regex) pcre_free(s->download_regex); in FREE_FUNC() 107 if (s->db) gdbm_close(s->db); in FREE_FUNC() 110 if (s->mc) mc_free(s->mc); in FREE_FUNC() 113 free(s); in FREE_FUNC() 149 plugin_config *s; in SETDEFAULTS_FUNC() local 191 if (NULL == (s->download_regex = pcre_compile(s->download_url->ptr, in SETDEFAULTS_FUNC() 202 if (NULL == (s->trigger_regex = pcre_compile(s->trigger_url->ptr, in SETDEFAULTS_FUNC() 217 s->mc = mc_new(); in SETDEFAULTS_FUNC() [all …]
|
| H A D | configfile.c | 170 assert(s); in config_insert() 209 s->global_bytes_per_second_cnt_ptr = &s->global_bytes_per_second_cnt; in config_insert() 989 stream s; in config_parse_file() local 1012 tokenizer_init(&t, filename, s.start, s.size); in config_parse_file() 1016 stream_close(&s); in config_parse_file() 1022 char *s, *s1; in getCWD() local 1030 s = malloc(len); in getCWD() 1037 free(s); in getCWD() 1040 s = s1; in getCWD() 1042 return s; in getCWD() [all …]
|
| H A D | mod_rrdtool.c | 68 buffer_free(s->path_rrd); in FREE_FUNC() 70 free(s); in FREE_FUNC() 297 p->conf.x = s->x; 312 s = p->config_storage[i]; in mod_rrd_patch_connection() 351 plugin_config *s; in SETDEFAULTS_FUNC() local 356 s->requests = 0; in SETDEFAULTS_FUNC() 357 s->bytes_written = 0; in SETDEFAULTS_FUNC() 358 s->bytes_read = 0; in SETDEFAULTS_FUNC() 461 s->requests = 0; in TRIGGER_FUNC() 462 s->bytes_written = 0; in TRIGGER_FUNC() [all …]
|
| H A D | mod_cml.c | 46 buffer_free(s->ext); in FREE_FUNC() 50 array_free(s->mc_hosts); in FREE_FUNC() 53 if (s->mc) mc_free(s->mc); in FREE_FUNC() 56 free(s); in FREE_FUNC() 89 plugin_config *s; in SETDEFAULTS_FUNC() local 92 s->ext = buffer_init(); in SETDEFAULTS_FUNC() 97 s->mc = NULL; in SETDEFAULTS_FUNC() 105 p->config_storage[i] = s; in SETDEFAULTS_FUNC() 111 if (s->mc_hosts->used) { in SETDEFAULTS_FUNC() 114 s->mc = mc_new(); in SETDEFAULTS_FUNC() [all …]
|
| H A D | mod_usertrack.c | 51 buffer_free(s->cookie_name); in FREE_FUNC() 52 buffer_free(s->cookie_domain); in FREE_FUNC() 54 free(s); in FREE_FUNC() 84 plugin_config *s; in SETDEFAULTS_FUNC() local 87 s->cookie_name = buffer_init(); in SETDEFAULTS_FUNC() 89 s->cookie_max_age = 0; in SETDEFAULTS_FUNC() 95 p->config_storage[i] = s; in SETDEFAULTS_FUNC() 110 s->cookie_name); in SETDEFAULTS_FUNC() 124 s->cookie_domain); in SETDEFAULTS_FUNC() 136 p->conf.x = s->x; [all …]
|
| H A D | mod_simple_vhost.c | 56 buffer_free(s->document_root); in FREE_FUNC() 57 buffer_free(s->default_host); in FREE_FUNC() 58 buffer_free(s->server_root); in FREE_FUNC() 64 free(s); in FREE_FUNC() 94 plugin_config *s; in SETDEFAULTS_FUNC() local 98 s->server_root = buffer_init(); in SETDEFAULTS_FUNC() 99 s->default_host = buffer_init(); in SETDEFAULTS_FUNC() 106 s->debug = 0; in SETDEFAULTS_FUNC() 114 p->config_storage[i] = s; in SETDEFAULTS_FUNC() 174 p->conf.x = s->x; [all …]
|
| H A D | network.c | 199 s->use_ipv6 = 1; 294 if (s->set_v6only) { 437 if (s->is_ssl) { 452 int v = s->defer_accept; 723 if (!s->ssl_use_sslv2) { 732 if (!s->ssl_use_sslv3) { 743 if (SSL_CTX_set_cipher_list(s->ssl_ctx, s->ssl_cipher_list->ptr) != 1) { 814 if (1 != SSL_CTX_load_verify_locations(s->ssl_ctx, s->ssl_ca_file->ptr, NULL)) { 832 s->ssl_ctx, 836 SSL_CTX_set_verify_depth(s->ssl_ctx, s->ssl_verifyclient_depth); [all …]
|
| H A D | mod_dirlisting.c | 177 if (!s) continue; in FREE_FUNC() 184 free(s); in FREE_FUNC() 284 plugin_config *s; in SETDEFAULTS_FUNC() local 289 s->dir_listing = 0; in SETDEFAULTS_FUNC() 332 p->conf.x = s->x; 539 stream s; in http_list_directory_header() local 552 buffer_append_string_len(out, s.start, s.size); in http_list_directory_header() 555 stream_close(&s); in http_list_directory_header() 592 stream s; in http_list_directory_footer() local 605 buffer_append_string_len(out, s.start, s.size); in http_list_directory_footer() [all …]
|
| H A D | mod_userdir.c | 62 array_free(s->include_user); in FREE_FUNC() 63 array_free(s->exclude_user); in FREE_FUNC() 64 buffer_free(s->path); in FREE_FUNC() 65 buffer_free(s->basepath); in FREE_FUNC() 67 free(s); in FREE_FUNC() 100 plugin_config *s; in SETDEFAULTS_FUNC() local 105 s->path = buffer_init(); in SETDEFAULTS_FUNC() 107 s->letterhomes = 0; in SETDEFAULTS_FUNC() 115 p->config_storage[i] = s; in SETDEFAULTS_FUNC() 126 p->conf.x = s->x; [all …]
|
| H A D | mod_staticfile.c | 68 free(s); in FREE_FUNC() 97 plugin_config *s; in SETDEFAULTS_FUNC() local 119 p->conf.x = s->x; 178 !error && *s && NULL != (minus = strchr(s, '-')); ) { in http_response_parse_range() 182 if (s == minus) { in http_response_parse_range() 194 s = err; in http_response_parse_range() 200 s = err + 1; in http_response_parse_range() 217 s = err + 1; in http_response_parse_range() 224 s = err + 2; in http_response_parse_range() 250 s = err; in http_response_parse_range() [all …]
|
| H A D | mod_secure_download.c | 68 buffer_free(s->secret); in FREE_FUNC() 69 buffer_free(s->doc_root); in FREE_FUNC() 70 buffer_free(s->uri_prefix); in FREE_FUNC() 72 free(s); in FREE_FUNC() 103 plugin_config *s; in SETDEFAULTS_FUNC() local 109 s->timeout = 60; in SETDEFAULTS_FUNC() 111 cv[0].destination = s->secret; in SETDEFAULTS_FUNC() 112 cv[1].destination = s->doc_root; in SETDEFAULTS_FUNC() 116 p->config_storage[i] = s; in SETDEFAULTS_FUNC() 152 p->conf.x = s->x; [all …]
|
| H A D | status_counter.c | 19 data_integer *status_counter_get_counter(server *srv, const char *s, size_t len) { in status_counter_get_counter() argument 22 if (NULL == (di = (data_integer *)array_get_element(srv->status, s))) { in status_counter_get_counter() 28 buffer_copy_string_len(di->key, s, len); in status_counter_get_counter() 38 int status_counter_inc(server *srv, const char *s, size_t len) { in status_counter_inc() argument 39 data_integer *di = status_counter_get_counter(srv, s, len); in status_counter_inc() 46 int status_counter_dec(server *srv, const char *s, size_t len) { in status_counter_dec() argument 47 data_integer *di = status_counter_get_counter(srv, s, len); in status_counter_dec() 54 int status_counter_set(server *srv, const char *s, size_t len, int val) { in status_counter_set() argument 55 data_integer *di = status_counter_get_counter(srv, s, len); in status_counter_set()
|
| H A D | mod_setenv.c | 70 array_free(s->request_header); in FREE_FUNC() 71 array_free(s->response_header); in FREE_FUNC() 72 array_free(s->environment); in FREE_FUNC() 74 free(s); in FREE_FUNC() 102 plugin_config *s; in SETDEFAULTS_FUNC() local 105 s->request_header = array_init(); in SETDEFAULTS_FUNC() 106 s->response_header = array_init(); in SETDEFAULTS_FUNC() 107 s->environment = array_init(); in SETDEFAULTS_FUNC() 113 p->config_storage[i] = s; in SETDEFAULTS_FUNC() 124 p->conf.x = s->x; [all …]
|
| H A D | mod_alias.c | 48 if(!s) continue; in FREE_FUNC() 50 array_free(s->alias); in FREE_FUNC() 52 free(s); in FREE_FUNC() 78 plugin_config *s; in SETDEFAULTS_FUNC() local 81 s->alias = array_init(); in SETDEFAULTS_FUNC() 82 cv[0].destination = s->alias; in SETDEFAULTS_FUNC() 84 p->config_storage[i] = s; in SETDEFAULTS_FUNC() 89 if (s->alias->used >= 2) { in SETDEFAULTS_FUNC() 90 const array *a = s->alias; in SETDEFAULTS_FUNC() 119 p->conf.x = s->x; [all …]
|
| H A D | mod_cgi.c | 132 free(s); in FREE_FUNC() 163 plugin_config *s; in SETDEFAULTS_FUNC() local 166 assert(s); in SETDEFAULTS_FUNC() 233 const char *s; in cgi_response_parse() local 273 key = s; in cgi_response_parse() 784 const char *s; in cgi_create_env() local 869 s = ""; in cgi_create_env() 872 cgi_env_add(&env, CONST_STR_LEN("SERVER_ADDR"), s, strlen(s)); in cgi_create_env() 907 s = ""; in cgi_create_env() 910 cgi_env_add(&env, CONST_STR_LEN("REMOTE_ADDR"), s, strlen(s)); in cgi_create_env() [all …]
|
| /mOS-networking-stack/core/src/bpf/ |
| H A D | sf_optimize.c | 471 for (s = b->stmts; s; s = s->next) 707 while (s != 0 && s->s.code == NOP) 708 s = s->next; 738 s = this_op(s); 755 if (s->s.code == BPF_ST && next->s.code == (BPF_LDX | BPF_MEM) && s->s.k == next->s.k) 843 ild->s.k += s->s.k; 1230 for (s = b->stmts; s != 0; s = s->next) 1252 for (s = b->stmts; s && s->next; s = s->next) 1298 for (s = b->stmts; s; s = s->next) 1879 if (x->s.code != y->s.code || x->s.k != y->s.k) [all …]
|
| H A D | sf_gencode.c | 5453 s[fix5]->s.jf = s[i]; 5468 s[fix2]->s.jf = s[i]; 5543 s[i - 1]->s.jf = s[i]; 5556 s[fix2]->s.jf = s[i]; 5568 s[fix3]->s.jf = s[ahcheck]; 5627 s[fix2]->s.jt = s[end]; 5628 s[fix4]->s.jf = s[end]; 5629 s[fix5]->s.jt = s[end]; 6834 a->s = s; in gen_loadlen() 6855 a->s = s; [all …]
|
| H A D | sf_nametoaddr.c | 283 const char *s; member 318 while (p->s != 0) in pcap_nametoeproto() 320 if (strcmp(p->s, s) == 0) in pcap_nametoeproto() 342 while (p->s != 0) in pcap_nametollc() 344 if (strcmp(p->s, s) == 0) in pcap_nametollc() 373 while (*s && *s != '.') in __pcap_atoin() 378 if (*s == '\0') in __pcap_atoin() 380 ++s; in __pcap_atoin() 423 while (*s) in pcap_ether_aton() 425 if (*s == ':' || *s == '.' || *s == '-') in pcap_ether_aton() [all …]
|
| /mOS-networking-stack/samples/lighttpd-1.4.32/ |
| H A D | config.sub | 745 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 749 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 753 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 1353 os=`echo $os | sed -e 's|solaris1|sunos4|'` 1365 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 1411 os=`echo $os | sed -e 's|nto|nto-qnx|'` 1418 os=`echo $os | sed -e 's|mac|macos|'` 1424 os=`echo $os | sed -e 's|linux|linux-gnu|'` 1427 os=`echo $os | sed -e 's|sunos5|solaris2|'` 1430 os=`echo $os | sed -e 's|sunos6|solaris3|'` [all …]
|
| /mOS-networking-stack/samples/lighttpd-1.4.32/tests/ |
| H A D | LightyTest.pm | 255 diag(sprintf("\nunexpected line '%s'", $line)); 286 diag(sprintf("\nproto failed: expected '%s', got '%s'", $href->{'HTTP-Protocol'}, $1)); 290 diag(sprintf("\nstatus failed: expected '%s', got '%s'", $href->{'HTTP-Status'}, $2)); 294 diag(sprintf("\nunexpected resp_line '%s'", $resp_line)); 301 diag(sprintf("\nbody failed: expected '%s', got '%s'", $href->{'HTTP-Content'}, $resp_body)); 308 diag(sprintf("\nbody failed: expected empty body, got '%s'", $resp_body)); 336 diag(sprintf("\nheader '%s' MUST not be set", $k)); 341 diag(sprintf("\nrequired header '%s' is missing", $k)); 349 diag(sprintf("\nresponse-header failed: expected '%s', got '%s', regex: %s", 354 diag(sprintf("\nresponse-header failed: expected '%s', got '%s'", [all …]
|
| /mOS-networking-stack/util/ |
| H A D | netlib.c | 56 int s; in CreateServerSocket() local 69 if (setsockopt(s, SOL_SOCKET, SO_LINGER, in CreateServerSocket() 71 close(s); in CreateServerSocket() 76 if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, in CreateServerSocket() 78 close(s); in CreateServerSocket() 84 if (fcntl(s, F_SETFL, O_NDELAY) < 0) { in CreateServerSocket() 87 close(s); in CreateServerSocket() 99 close(s); in CreateServerSocket() 103 if (listen(s, 1024) < 0) { in CreateServerSocket() 104 close(s); in CreateServerSocket() [all …]
|