Mercurial > hg > nginx-vendor-current
annotate src/core/ngx_radix_tree.h @ 694:88a1b4797f2e NGINX_1_3_10
nginx 1.3.10
*) Change: domain names specified in configuration file are now resolved
to IPv6 addresses as well as IPv4 ones.
*) Change: now if the "include" directive with mask is used on Unix
systems, included files are sorted in alphabetical order.
*) Change: the "add_header" directive adds headers to 201 responses.
*) Feature: the "geo" directive now supports IPv6 addresses in CIDR
notation.
*) Feature: the "flush" and "gzip" parameters of the "access_log"
directive.
*) Feature: variables support in the "auth_basic" directive.
*) Bugfix: nginx could not be built with the ngx_http_perl_module in
some cases.
*) Bugfix: a segmentation fault might occur in a worker process if the
ngx_http_xslt_module was used.
*) Bugfix: nginx could not be built on MacOSX in some cases.
Thanks to Piotr Sikora.
*) Bugfix: the "limit_rate" directive with high rates might result in
truncated responses on 32-bit platforms.
Thanks to Alexey Antropov.
*) Bugfix: a segmentation fault might occur in a worker process if the
"if" directive was used.
Thanks to Piotr Sikora.
*) Bugfix: a "100 Continue" response was issued with "413 Request Entity
Too Large" responses.
*) Bugfix: the "image_filter", "image_filter_jpeg_quality" and
"image_filter_sharpen" directives might be inherited incorrectly.
Thanks to Ian Babrou.
*) Bugfix: "crypt_r() failed" errors might appear if the "auth_basic"
directive was used on Linux.
*) Bugfix: in backup servers handling.
Thanks to Thomas Chen.
*) Bugfix: proxied HEAD requests might return incorrect response if the
"gzip" directive was used.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 25 Dec 2012 00:00:00 +0400 |
parents | d0f7a625f27c |
children |
rev | line source |
---|---|
34 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
660 | 4 * Copyright (C) Nginx, Inc. |
34 | 5 */ |
6 | |
7 | |
8 #ifndef _NGX_RADIX_TREE_H_INCLUDED_ | |
9 #define _NGX_RADIX_TREE_H_INCLUDED_ | |
10 | |
11 | |
12 #include <ngx_config.h> | |
13 #include <ngx_core.h> | |
14 | |
15 | |
16 #define NGX_RADIX_NO_VALUE (uintptr_t) -1 | |
17 | |
18 typedef struct ngx_radix_node_s ngx_radix_node_t; | |
19 | |
20 struct ngx_radix_node_s { | |
21 ngx_radix_node_t *right; | |
22 ngx_radix_node_t *left; | |
23 ngx_radix_node_t *parent; | |
24 uintptr_t value; | |
25 }; | |
26 | |
27 | |
28 typedef struct { | |
29 ngx_radix_node_t *root; | |
30 ngx_pool_t *pool; | |
31 ngx_radix_node_t *free; | |
32 char *start; | |
33 size_t size; | |
34 } ngx_radix_tree_t; | |
35 | |
36 | |
36 | 37 ngx_radix_tree_t *ngx_radix_tree_create(ngx_pool_t *pool, |
38 | 38 ngx_int_t preallocate); |
694 | 39 |
34 | 40 ngx_int_t ngx_radix32tree_insert(ngx_radix_tree_t *tree, |
36 | 41 uint32_t key, uint32_t mask, uintptr_t value); |
34 | 42 ngx_int_t ngx_radix32tree_delete(ngx_radix_tree_t *tree, |
36 | 43 uint32_t key, uint32_t mask); |
34 | 44 uintptr_t ngx_radix32tree_find(ngx_radix_tree_t *tree, uint32_t key); |
45 | |
694 | 46 #if (NGX_HAVE_INET6) |
47 ngx_int_t ngx_radix128tree_insert(ngx_radix_tree_t *tree, | |
48 u_char *key, u_char *mask, uintptr_t value); | |
49 ngx_int_t ngx_radix128tree_delete(ngx_radix_tree_t *tree, | |
50 u_char *key, u_char *mask); | |
51 uintptr_t ngx_radix128tree_find(ngx_radix_tree_t *tree, u_char *key); | |
52 #endif | |
53 | |
34 | 54 |
55 #endif /* _NGX_RADIX_TREE_H_INCLUDED_ */ |