| /mOS-networking-stack/samples/lighttpd-1.4.32/src/ |
| H A D | mod_accesslog.c | 269 for (j = 0; fmap[j].key != '\0'; j++) { in accesslog_parse_format() 316 for (j = 0; fmap[j].key != '\0'; j++) { in accesslog_parse_format() 349 for (j = 0; fmap[j].key != '\0'; j++) { in accesslog_parse_format() 436 size_t j; in FREE_FUNC() local 437 for (j = 0; j < s->parsed_format->used; j++) { in FREE_FUNC() 521 for (j = 0; j < s->parsed_format->used; j++) { in SETDEFAULTS_FUNC() 540 for (j = 0; j < s->parsed_format->used; j++) { in SETDEFAULTS_FUNC() 632 size_t i, j; in mod_accesslog_patch_connection() local 655 for (j = 0; j < dc->value->used; j++) { in mod_accesslog_patch_connection() 683 size_t j; in REQUESTDONE_FUNC() local [all …]
|
| H A D | plugin.c | 123 size_t i, j; in plugins_load() local 129 for (j = 0; j < i; j++) { in plugins_load() 235 size_t j;\ 239 for (j = 0; j < srv->plugins.used && slot[j]; j++) { \ 240 plugin *p = slot[j];\ 283 size_t j;\ in PLUGIN_TO_SLOT() 287 for (j = 0; j < srv->plugins.used && slot[j]; j++) { \ in PLUGIN_TO_SLOT() 288 plugin *p = slot[j];\ in PLUGIN_TO_SLOT() 374 size_t j; local 386 for (j = 0; j < srv->plugins.used; j++) { \ [all …]
|
| H A D | mod_usertrack.c | 104 size_t j; in SETDEFAULTS_FUNC() local 105 for (j = 0; j < s->cookie_name->used - 1; j++) { in SETDEFAULTS_FUNC() 106 char c = s->cookie_name->ptr[j] | 32; in SETDEFAULTS_FUNC() 118 size_t j; in SETDEFAULTS_FUNC() local 119 for (j = 0; j < s->cookie_domain->used - 1; j++) { in SETDEFAULTS_FUNC() 120 char c = s->cookie_domain->ptr[j]; in SETDEFAULTS_FUNC() 138 size_t i, j; in mod_usertrack_patch_connection() local 154 for (j = 0; j < dc->value->used; j++) { in mod_usertrack_patch_connection() 155 data_unset *du = dc->value->data[j]; in mod_usertrack_patch_connection()
|
| H A D | mod_alias.c | 91 size_t j, k; in SETDEFAULTS_FUNC() local 93 for (j = 0; j < a->used; j ++) { in SETDEFAULTS_FUNC() 94 const buffer *prefix = a->data[a->sorted[j]]->key; in SETDEFAULTS_FUNC() 95 for (k = j + 1; k < a->used; k ++) { in SETDEFAULTS_FUNC() 105 if (a->sorted[j] < a->sorted[k]) { in SETDEFAULTS_FUNC() 121 size_t i, j; in mod_alias_patch_connection() local 135 for (j = 0; j < dc->value->used; j++) { in mod_alias_patch_connection() 136 data_unset *du = dc->value->data[j]; in mod_alias_patch_connection()
|
| H A D | mod_redirect.c | 84 size_t j; in SETDEFAULTS_FUNC() local 116 for (j = 0; j < da->value->used; j++) { in SETDEFAULTS_FUNC() 117 if (da->value->data[j]->type != TYPE_STRING) { in SETDEFAULTS_FUNC() 121 "[", da->value->data[j]->key, "](string)"); in SETDEFAULTS_FUNC() 127 ((data_string *)(da->value->data[j]))->key->ptr, in SETDEFAULTS_FUNC() 128 ((data_string *)(da->value->data[j]))->value->ptr)) { in SETDEFAULTS_FUNC() 131 "pcre-compile failed for", da->value->data[j]->key); in SETDEFAULTS_FUNC() 140 size_t i, j; in mod_redirect_patch_connection() local 156 for (j = 0; j < dc->value->used; j++) { in mod_redirect_patch_connection() 157 data_unset *du = dc->value->data[j]; in mod_redirect_patch_connection()
|
| H A D | mod_evasive.c | 106 size_t i, j; in mod_evasive_patch_connection() local 121 for (j = 0; j < dc->value->used; j++) { in mod_evasive_patch_connection() 122 data_unset *du = dc->value->data[j]; in mod_evasive_patch_connection() 139 size_t j; in URIHANDLER_FUNC() local 158 for (j = 0; j < srv->conns->used; j++) { in URIHANDLER_FUNC() 159 connection *c = srv->conns->ptr[j]; in URIHANDLER_FUNC()
|
| H A D | mod_ssi.c | 176 size_t j; in ssi_env_add_request_headers() local 190 for (j = 0; j < ds->key->used - 1; j++) { in ssi_env_add_request_headers() 197 c = ds->key->ptr[j]; in ssi_env_add_request_headers() 213 size_t j; in ssi_env_add_request_headers() local 218 for (j = 0; j < ds->key->used - 1; j++) { in ssi_env_add_request_headers() 400 int j; in process_ssi_stmt() local 404 for (j = 0; echovars[j].var; j++) { in process_ssi_stmt() 598 int j = 0; in process_ssi_stmt() local 603 for (j = 0; s > 1024 && abr[j+1]; s /= 1024, j++); in process_ssi_stmt() 1114 size_t i, j; in mod_ssi_patch_connection() local [all …]
|
| H A D | md5.c | 291 unsigned int i, j; in Encode() local 293 for (i = 0, j = 0; j < len; i++, j += 4) { in Encode() 294 output[j] = (unsigned char)(input[i] & 0xff); in Encode() 295 output[j+1] = (unsigned char)((input[i] >> 8) & 0xff); in Encode() 296 output[j+2] = (unsigned char)((input[i] >> 16) & 0xff); in Encode() 297 output[j+3] = (unsigned char)((input[i] >> 24) & 0xff); in Encode() 306 unsigned int i, j; in Decode() local 308 for (i = 0, j = 0; j < len; i++, j += 4) in Decode() 309 output[i] = ((UINT4)input[j]) | (((UINT4)input[j+1]) << 8) | in Decode() 310 (((UINT4)input[j+2]) << 16) | (((UINT4)input[j+3]) << 24); in Decode()
|
| H A D | lemon.c | 543 for(j=0; j<p->nLookahead; j++){ in acttab_insert() 549 for(j=0; j<p->nAction; j++){ in acttab_insert() 557 for(j=0; j<p->nLookahead; j++){ in acttab_insert() 565 for(j=0; j<p->nAction; j++){ in acttab_insert() 575 for(j=0; j<p->nLookahead; j++){ in acttab_insert() 935 for(j=0; j<lemp->nterminal; j++){ 1665 for(j=0; op[j].label; j++){ 1704 for(j=0; op[j].label; j++){ 2595 for(j=i; j<lemp->nsymbol; j+=skip){ 3107 for(j=0; stddt[j]; j++){ [all …]
|
| H A D | mod_status.c | 203 size_t j; in mod_status_handle_server_status_html() local 404 for (j = 0, avg = 0; j < 5; j++) { in mod_status_handle_server_status_html() 405 avg += p->mod_5s_requests[j]; in mod_status_handle_server_status_html() 420 for (j = 0, avg = 0; j < 5; j++) { in mod_status_handle_server_status_html() 421 avg += p->mod_5s_traffic_out[j]; in mod_status_handle_server_status_html() 450 for (j = 0; j < srv->conns->used; j++) { in mod_status_handle_server_status_html() 451 connection *c = srv->conns->ptr[j]; in mod_status_handle_server_status_html() 462 if (((j + 1) % 50) == 0) { in mod_status_handle_server_status_html() 481 for (j = 0; j < srv->conns->used; j++) { in mod_status_handle_server_status_html() 773 size_t i, j; in mod_status_patch_connection() local [all …]
|
| H A D | array.c | 184 size_t j; in array_insert_unique() local 216 for (j = a->used; j < a->size; j++) a->data[j] = NULL; in array_insert_unique() 223 for (j = a->used; j < a->size; j++) a->data[j] = NULL; in array_insert_unique() 317 int j; in array_print() local 324 for (j = maxlen - strlen(du->key->ptr); j > 0; j --) { in array_print()
|
| H A D | mod_evhost.c | 52 size_t j; in FREE_FUNC() local 53 for (j = 0; j < s->len; j++) { in FREE_FUNC() 54 buffer_free(s->path_pieces[j]); in FREE_FUNC() 229 size_t i, j; in mod_evhost_patch_connection() local 244 for (j = 0; j < dc->value->used; j++) { in mod_evhost_patch_connection() 245 data_unset *du = dc->value->data[j]; in mod_evhost_patch_connection()
|
| H A D | mod_rewrite.c | 167 size_t j; in parse_config_entry() local 178 for (j = 0; j < da->value->used; j++) { in parse_config_entry() 179 if (da->value->data[j]->type != TYPE_STRING) { in parse_config_entry() 183 "[", da->value->data[j]->key, "](string)"); in parse_config_entry() 189 ((data_string *)(da->value->data[j]))->key, in parse_config_entry() 190 ((data_string *)(da->value->data[j]))->value, in parse_config_entry() 193 "pcre-compile failed for", da->value->data[j]->key); in parse_config_entry() 286 size_t i, j; in mod_rewrite_patch_connection() local 305 for (j = 0; j < dc->value->used; j++) { in mod_rewrite_patch_connection() 306 data_unset *du = dc->value->data[j]; in mod_rewrite_patch_connection()
|
| H A D | http_chunk.c | 24 size_t i, olen = len, j; in http_chunk_append_len() local 39 for (j = i-1, len = olen; j+1 > 0; j--) { in http_chunk_append_len() 40 b->ptr[j] = (len & 0xf) + (((len & 0xf) <= 9) ? '0' : 'a' - 10); in http_chunk_append_len()
|
| H A D | request.c | 341 size_t j; in http_request_parse() local 475 for (j = 0; j < con->request.uri->used - 1; j++) { in http_request_parse() 482 buf[0] = con->request.uri->ptr[j]; in http_request_parse() 485 if (con->request.uri->ptr[j] > 32 && in http_request_parse() 495 con->request.uri->ptr[j]); in http_request_parse() 582 size_t j; in http_request_parse() local 639 for (j = 1; !got_colon; j++) { in http_request_parse() 648 i += j - 1; in http_request_parse() 849 size_t j; in http_request_parse() local 868 for (j = 0; j < ds->value->used - 1; j++) { in http_request_parse() [all …]
|
| H A D | mod_dirlisting.c | 202 size_t j; in parse_config_entry() local 213 for (j = 0; j < da->value->used; j++) { in parse_config_entry() 214 if (da->value->data[j]->type != TYPE_STRING) { in parse_config_entry() 217 da->value->data[j]->key, "](string)"); in parse_config_entry() 334 size_t i, j; in mod_dirlisting_patch_connection() local 360 for (j = 0; j < dc->value->used; j++) { in mod_dirlisting_patch_connection() 361 data_unset *du = dc->value->data[j]; in mod_dirlisting_patch_connection() 416 int i, j; in http_dirls_sort() local 429 j = i + gap; in http_dirls_sort() 432 ent[i] = ent[j]; in http_dirls_sort() [all …]
|
| H A D | mod_access.c | 87 size_t i, j; in mod_access_patch_connection() local 101 for (j = 0; j < dc->value->used; j++) { in mod_access_patch_connection() 102 data_unset *du = dc->value->data[j]; in mod_access_patch_connection()
|
| H A D | mod_skeleton.c | 134 size_t i, j; in mod_skeleton_patch_connection() local 148 for (j = 0; j < dc->value->used; j++) { in mod_skeleton_patch_connection() 149 data_unset *du = dc->value->data[j]; in mod_skeleton_patch_connection()
|
| H A D | stat_cache.c | 258 int ndx, j; in stat_cache_handle_fdevent() local 278 for (j = 0; j < 2; j++) { in stat_cache_handle_fdevent() 280 buffer_append_long(sc->hash_key, j); in stat_cache_handle_fdevent() 730 size_t j; in stat_cache_trigger_cleanup() local 738 for (j = 0; j < ctrl.used; j++) { in stat_cache_trigger_cleanup() 739 if (ctrl.ptr[j] == ndx) { in stat_cache_trigger_cleanup() 740 ctrl.ptr[j] = ctrl.ptr[--ctrl.used]; in stat_cache_trigger_cleanup()
|
| H A D | mod_indexfile.c | 108 size_t i, j; in mod_indexfile_patch_connection() local 122 for (j = 0; j < dc->value->used; j++) { in mod_indexfile_patch_connection() 123 data_unset *du = dc->value->data[j]; in mod_indexfile_patch_connection()
|
| /mOS-networking-stack/core/src/ |
| H A D | netmap_module.c | 45 int j; in netmap_init_handle() local 59 for (j = 0; j < g_config.mos->netdev_table->num; j++) { in netmap_init_handle() 61 if (if_indextoname(devices_attached[j], ifname) == NULL) { in netmap_init_handle() 64 ifname, devices_attached[j], strerror(errno)); in netmap_init_handle() 68 strcpy(ifname, ent[j]->dev_name); in netmap_init_handle() 75 TRACE_INFO("Opening %s with j: %d (cpu: %d)\n", nifname, j, ctxt->cpu); in netmap_init_handle() 81 npc->local_nmd[j] = nm_open(nifname, &base_nmd, 0, NULL); in netmap_init_handle() 82 if (npc->local_nmd[j] == NULL) { in netmap_init_handle() 335 int j; in netmap_load_module_lower_half() local 339 for (j = 0; j < g_config.mos->netdev_table->num; j++) { in netmap_load_module_lower_half() [all …]
|
| H A D | addr_pool.c | 46 int i, j, cnt; in CreateAddressPool() local 88 for (j = MIN_PORT; j < MAX_PORT; j++) { in CreateAddressPool() 90 ap->pool[cnt].addr.sin_port = htons(j); in CreateAddressPool() 91 ap->mapper[i].addrmap[j] = &ap->pool[cnt]; in CreateAddressPool() 114 int i, j, cnt; in CreateAddressPoolPerCore() local 161 for (j = MIN_PORT; j < MAX_PORT; j++) { in CreateAddressPoolPerCore() 165 sport_h = j; in CreateAddressPoolPerCore() 173 ap->mapper[i].addrmap[j] = &ap->pool[cnt]; in CreateAddressPoolPerCore()
|
| H A D | tcp_util.c | 99 int i, j; in ParseSACKOption() local 117 j = 0; in ParseSACKOption() 118 while (j < optlen - 2) { in ParseSACKOption() 119 left_edge = ntohl(*(uint32_t *)(tcpopt + i + j)); in ParseSACKOption() 120 right_edge = ntohl(*(uint32_t *)(tcpopt + i + j + 4)); in ParseSACKOption() 127 j += 8; in ParseSACKOption() 147 i += j; in ParseSACKOption()
|
| /mOS-networking-stack/util/ |
| H A D | netlib.c | 167 int i, j; in ParseOptions() local 170 for (j = 0; ops[j].op_name; j++) { in ParseOptions() 171 if (strcmp(ops[j].op_name, argv[i]) == 0) { in ParseOptions() 177 *(ops[j].op_varptr) = (char *)argv[++i]; in ParseOptions() 181 if (ops[j].op_name == NULL) { in ParseOptions()
|
| /mOS-networking-stack/core/test/scalable_event/ |
| H A D | test.c | 224 int j; in main() local 225 for (j=0; j<LCOUNT;j++) in main() 251 int i, j; in main() local 258 for (j = 0; j < RULE_CONDS; j++) in main()
|