| /mOS-networking-stack/samples/lighttpd-1.4.32/tests/ |
| H A D | request.t | 15 my $t; 21 $t->{REQUEST} = ( <<EOF 28 $t->{REQUEST} = ( <<EOF 35 $t->{REQUEST} = ( <<EOF 43 $t->{REQUEST} = ( <<EOF 51 $t->{REQUEST} = ( <<EOF 59 $t->{REQUEST} = ( <<EOF 67 $t->{REQUEST} = ( <<EOF 76 $t->{REQUEST} = ( <<EOF 83 $t->{REQUEST} = ( <<EOF [all …]
|
| H A D | core-request.t | 15 my $t; 21 $t->{REQUEST} = ( <<EOF 28 $t->{REQUEST} = ( <<EOF 39 $t->{REQUEST} = ( <<EOF 47 $t->{REQUEST} = ( <<EOF 55 $t->{REQUEST} = ( <<EOF 63 $t->{REQUEST} = ( <<EOF 71 $t->{REQUEST} = ( <<EOF 79 $t->{REQUEST} = ( <<EOF 87 $t->{REQUEST} = ( <<EOF [all …]
|
| H A D | mod-fastcgi.t | 15 my $t; 32 $t->{REQUEST} = ( <<EOF 40 $t->{REQUEST} = ( <<EOF 48 $t->{REQUEST} = ( <<EOF 56 $t->{REQUEST} = ( <<EOF 64 $t->{REQUEST} = ( <<EOF 72 $t->{REQUEST} = ( <<EOF 80 $t->{REQUEST} = ( <<EOF 88 $t->{REQUEST} = ( <<EOF 96 $t->{REQUEST} = ( <<EOF [all …]
|
| H A D | core.t | 15 my $t; 19 $t->{REQUEST} = ( <<EOF 26 $t->{REQUEST} = ( <<EOF 33 $t->{REQUEST} = ( <<EOF 42 $t->{REQUEST} = ( <<EOF 49 $t->{REQUEST} = ( <<EOF 56 $t->{REQUEST} = ( <<EOF 63 $t->{REQUEST} = ( <<EOF 70 $t->{REQUEST} = ( <<EOF 77 $t->{REQUEST} = ( <<EOF [all …]
|
| H A D | mod-cgi.t | 15 my $t; 21 $t->{REQUEST} = ( <<EOF 28 $t->{REQUEST} = ( <<EOF 35 $t->{REQUEST} = ( <<EOF 42 $t->{REQUEST} = ( <<EOF 49 $t->{REQUEST} = ( <<EOF 56 $t->{REQUEST} = ( <<EOF 63 $t->{REQUEST} = ( <<EOF 70 $t->{REQUEST} = ( <<EOF 77 $t->{REQUEST} = ( <<EOF [all …]
|
| H A D | core-condition.t | 15 my $t; 20 $t->{REQUEST} = ( <<EOF 28 $t->{REQUEST} = ( <<EOF 36 $t->{REQUEST} = ( <<EOF 44 $t->{REQUEST} = ( <<EOF 52 $t->{REQUEST} = ( <<EOF 60 $t->{REQUEST} = ( <<EOF 73 $t->{REQUEST} = ( <<EOF 81 $t->{REQUEST} = ( <<EOF 90 $t->{REQUEST} = ( <<EOF [all …]
|
| H A D | mod-auth.t | 15 my $t; 19 $t->{REQUEST} = ( <<EOF 26 $t->{REQUEST} = ( <<EOF 34 $t->{REQUEST} = ( <<EOF 42 $t->{REQUEST} = ( <<EOF 50 $t->{REQUEST} = ( <<EOF 59 $t->{REQUEST} = ( <<EOF 71 $t->{REQUEST} = ( <<EOF 81 $t->{REQUEST} = ( <<EOF 90 $t->{REQUEST} = ( <<EOF [all …]
|
| H A D | cachable.t | 15 my $t; 23 $t->{REQUEST} = ( <<EOF 31 $t->{REQUEST} = ( <<EOF 39 my $now = $t->{date}; 41 $t->{REQUEST} = ( <<EOF 49 $t->{REQUEST} = ( <<EOF 57 $t->{REQUEST} = ( <<EOF 65 my $etag = $t->{etag}; 67 $t->{REQUEST} = ( <<EOF 75 $t->{REQUEST} = ( <<EOF [all …]
|
| H A D | core-response.t | 15 my $t; 21 $t->{REQUEST} = ( <<EOF 30 $t->{REQUEST} = ( <<EOF 37 $t->{REQUEST} = ( <<EOF 44 $t->{REQUEST} = ( <<EOF 56 $t->{REQUEST} = ( <<EOF 64 $t->{REQUEST} = ( <<EOF 75 $t->{REQUEST} = ( <<EOF 82 $t->{REQUEST} = ( <<EOF 91 $t->{REQUEST} = ( <<EOF [all …]
|
| H A D | mod-compress.t | 15 my $t; 21 $t->{REQUEST} = ( <<EOF 27 ok($tf->handle_http($t) == 0, 'Vary is set'); 29 $t->{REQUEST} = ( <<EOF 38 $t->{REQUEST} = ( <<EOF 47 $t->{REQUEST} = ( <<EOF 56 $t->{REQUEST} = ( <<EOF 66 $t->{REQUEST} = ( <<EOF 74 $t->{REQUEST} = ( <<EOF 82 $t->{REQUEST} = ( <<EOF [all …]
|
| H A D | lowercase.t | 15 my $t; 23 $t->{REQUEST} = ( <<EOF 28 ok($tf->handle_http($t) == 0, 'uppercase access'); 30 $t->{REQUEST} = ( <<EOF 35 ok($tf->handle_http($t) == 0, 'lowercase access'); 39 $t->{REQUEST} = ( <<EOF 47 $t->{REQUEST} = ( <<EOF 57 $t->{REQUEST} = ( <<EOF 65 $t->{REQUEST} = ( <<EOF 75 $t->{REQUEST} = ( <<EOF [all …]
|
| H A D | symlink.t | 15 my $t; 41 $t->{REQUEST} = ( <<EOF 47 ok($tf->handle_http($t) == 0, 'allow: simple file'); 50 $t->{REQUEST} = ( <<EOF 59 $t->{REQUEST} = ( <<EOF 68 $t->{REQUEST} = ( <<EOF 78 $t->{REQUEST} = ( <<EOF 84 ok($tf->handle_http($t) == 0, 'deny: simple file'); 87 $t->{REQUEST} = ( <<EOF 96 $t->{REQUEST} = ( <<EOF [all …]
|
| H A D | core-404-handler.t | 25 my $t; 30 $t->{REQUEST} = ( <<EOF 35 ok($tf->handle_http($t) == 0, '404 handler => static'); 40 $t->{REQUEST} = ( <<EOF 45 ok($tf->handle_http($t) == 0, '404 handler => dynamic(200)'); 47 $t->{REQUEST} = ( <<EOF 52 ok($tf->handle_http($t) == 0, '404 handler => dynamic(302)'); 54 $t->{REQUEST} = ( <<EOF 59 ok($tf->handle_http($t) == 0, '404 handler => dynamic(404)'); 61 $t->{REQUEST} = ( <<EOF [all …]
|
| H A D | core-keepalive.t | 15 my $t; 19 $t->{REQUEST} = ( <<EOF 31 ok($tf->handle_http($t) == 0, 'Explicit HTTP/1.0 Keep-Alive'); 33 undef $t->{RESPONSE}; 35 $t->{REQUEST} = ( <<EOF 47 ok($tf->handle_http($t) == 0, 'Explicit HTTP/1.0 Keep-Alive'); 49 undef $t->{RESPONSE}; 51 $t->{REQUEST} = ( <<EOF 61 ok($tf->handle_http($t) == 0, 'Implicit HTTP/1.0 Keep-Alive'); 64 $t->{REQUEST} = ( <<EOF [all …]
|
| H A D | Makefile.am | 33 core.t \ 34 mod-proxy.t \ 37 mod-access.t \ 38 mod-auth.t \ 39 mod-cgi.t \ 46 symlink.t \ 47 request.t \ 48 mod-ssi.t \ 50 mod-setenv.t \ 51 lowercase.t \ [all …]
|
| H A D | SConscript | 18 core-request.t \ 21 core.t \ 22 mod-access.t \ 23 mod-auth.t \ 24 mod-cgi.t \ 27 mod-fastcgi.t \ 29 mod-userdir.t \ 30 mod-rewrite.t \ 31 request.t \ 32 mod-ssi.t \ [all …]
|
| H A D | mod-redirect.t | 15 my $t; 19 $t->{REQUEST} = ( <<EOF 25 ok($tf->handle_http($t) == 0, 'external redirect'); 27 $t->{REQUEST} = ( <<EOF 33 ok($tf->handle_http($t) == 0, 'external redirect should have a Content-Length: 0'); 35 $t->{REQUEST} = ( <<EOF 41 ok($tf->handle_http($t) == 0, 'external redirect with cond regsub'); 43 $t->{REQUEST} = ( <<EOF 49 ok($tf->handle_http($t) == 0, 'external redirect with cond regsub on remoteip'); 51 $t->{REQUEST} = ( <<EOF [all …]
|
| H A D | mod-secdownload.t | 16 my $t; 25 $t->{REQUEST} = ( <<EOF 32 ok($tf->handle_http($t) == 0, 'secdownload'); 37 $t->{REQUEST} = ( <<EOF 44 ok($tf->handle_http($t) == 0, 'secdownload - gone (timeout)'); 46 $t->{REQUEST} = ( <<EOF 53 ok($tf->handle_http($t) == 0, 'secdownload - direct access'); 55 $t->{REQUEST} = ( <<EOF 62 ok($tf->handle_http($t) == 0, 'secdownload - conditional access'); 69 $t->{REQUEST} = ( <<EOF [all …]
|
| H A D | mod-setenv.t | 15 my $t; 19 $t->{REQUEST} = ( <<EOF 25 ok($tf->handle_http($t) == 0, 'query first setenv'); 27 $t->{REQUEST} = ( <<EOF 33 ok($tf->handle_http($t) == 0, 'query second setenv'); 35 $t->{REQUEST} = ( <<EOF 40 $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'foo' … 41 ok($tf->handle_http($t) == 0, 'query add-request-header'); 43 $t->{REQUEST} = ( <<EOF 48 $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'BAR' => 'foo' } ]; [all …]
|
| H A D | mod-rewrite.t | 15 my $t; 31 $t->{REQUEST} = ( <<EOF 36 $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => '' } ]; 37 ok($tf->handle_http($t) == 0, 'valid request'); 39 $t->{REQUEST} = ( <<EOF 44 …$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'a=b' … 45 ok($tf->handle_http($t) == 0, 'valid request'); 47 $t->{REQUEST} = ( <<EOF 53 ok($tf->handle_http($t) == 0, 'valid request'); 55 $t->{REQUEST} = ( <<EOF [all …]
|
| /mOS-networking-stack/samples/lighttpd-1.4.32/src/ |
| H A D | splaytree.c | 66 if (t == NULL) return t; in splaytree_splay() 79 t->size = node_size(t->left) + node_size(t->right) + 1; in splaytree_splay() 85 t = t->left; in splaytree_splay() 93 t->size = node_size(t->left) + node_size(t->right) + 1; in splaytree_splay() 99 t = t->right; in splaytree_splay() 137 t = splaytree_splay(t, i); in splaytree_insert() 150 t->size = 1+node_size(t->right); in splaytree_insert() 155 t->size = 1+node_size(t->left); in splaytree_insert() 171 t = splaytree_splay(t, i); in splaytree_delete() 200 t = t->left; [all …]
|
| H A D | mod_ssi_expr.c | 51 for (tid = 0; tid == 0 && t->offset < t->size && t->input[t->offset] ; ) { in ssi_expr_tokenizer() 52 char c = t->input[t->offset]; in ssi_expr_tokenizer() 66 if (t->input[t->offset + 1] == '=') { in ssi_expr_tokenizer() 84 if (t->input[t->offset + 1] == '=') { in ssi_expr_tokenizer() 103 if (t->input[t->offset + 1] == '=') { in ssi_expr_tokenizer() 160 for (i = 1; t->input[t->offset + i] && t->input[t->offset + i] != '\''; i++); in ssi_expr_tokenizer() 162 if (t->input[t->offset + i]) { in ssi_expr_tokenizer() 198 for (i = 2; t->input[t->offset + i] && t->input[t->offset + i] != '}'; i++); in ssi_expr_tokenizer() 210 for (i = 1; isalpha(t->input[t->offset + i]) || t->input[t->offset + i] == '_'; i++); in ssi_expr_tokenizer() 231 char d = t->input[t->offset + i]; in ssi_expr_tokenizer() [all …]
|
| H A D | configfile.c | 535 t->input = t->s.start; 537 t->size = t->s.size; 556 assert(t->input[t->offset] == '\r' || t->input[t->offset] == '\n'); in config_skip_newline() 557 if (t->input[t->offset] == '\r' && t->input[t->offset + 1] == '\n') { in config_skip_newline() 567 assert(t->input[t->offset] == '#'); in config_skip_comment() 569 (t->input[t->offset + i] != '\n' && t->input[t->offset + i] != '\r'); in config_skip_comment() 579 for (tid = 0; tid == 0 && t->offset < t->size && t->input[t->offset] ; ) { in config_tokenizer() 580 char c = t->input[t->offset]; in config_tokenizer() 679 switch (t->input[t->offset]) { in config_tokenizer() 863 for (i = 0; t->input[t->offset + i] && isdigit((unsigned char)t->input[t->offset + i]); i++); in config_tokenizer() [all …]
|
| /mOS-networking-stack/core/src/include/ |
| H A D | tcp_in.h | 53 #define TIMEVAL_TO_TS(t) (uint32_t)((t)->tv_sec * HZ + \ argument 54 ((t)->tv_usec / TIME_TICK)) 56 #define TS_TO_USEC(t) ((t) * TIME_TICK) argument 57 #define TS_TO_MSEC(t) (TS_TO_USEC(t) / 1000) argument 59 #define USEC_TO_TS(t) ((t) / TIME_TICK) argument 60 #define MSEC_TO_TS(t) (USEC_TO_TS((t) * 1000)) argument 62 #define SEC_TO_USEC(t) ((t) * 1000000) argument 63 #define SEC_TO_MSEC(t) ((t) * 1000) argument 64 #define MSEC_TO_USEC(t) ((t) * 1000) argument 65 #define USEC_TO_SEC(t) ((t) / 1000000) argument
|
| /mOS-networking-stack/core/src/ |
| H A D | debug.c | 70 uint8_t *t; in DumpPacket() local 103 t = (uint8_t *)&iph->saddr; in DumpPacket() 104 thread_printf(mtcp, mtcp->log_fp, "%u.%u.%u.%u", t[0], t[1], t[2], t[3]); in DumpPacket() 110 t = (uint8_t *)&iph->daddr; in DumpPacket() 111 thread_printf(mtcp, mtcp->log_fp, "%u.%u.%u.%u", t[0], t[1], t[2], t[3]); in DumpPacket() 163 uint8_t *t; in DumpIPPacket() local 169 thread_printf(mtcp, mtcp->log_fp, "%u.%u.%u.%u", t[0], t[1], t[2], t[3]); in DumpIPPacket() 176 thread_printf(mtcp, mtcp->log_fp, "%u.%u.%u.%u", t[0], t[1], t[2], t[3]); in DumpIPPacket() 221 uint8_t *t; in DumpIPPacketToFile() local 227 fprintf(fout, "%u.%u.%u.%u", t[0], t[1], t[2], t[3]); in DumpIPPacketToFile() [all …]
|