diff options
author | Ruslan Ermilov <ru@nginx.com> | 2012-12-25 12:21:56 +0400 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2012-12-25 12:21:56 +0400 |
commit | 3d87688bc60228ca4ce311805d99d0a7908d16ce (patch) | |
tree | c41e0d1401456e3532d3c8c6420c585d8ad516be /src/core/ngx_radix_tree.h | |
parent | dd46cc659afe2fc947fc35b22fdd00ae9dd09ff7 (diff) |
Geo: IPv6 support.
The "ranges" mode is still limited to IPv4 only.
Diffstat (limited to 'src/core/ngx_radix_tree.h')
-rw-r--r-- | src/core/ngx_radix_tree.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/ngx_radix_tree.h b/src/core/ngx_radix_tree.h index 65ee69b26..4fe06e014 100644 --- a/src/core/ngx_radix_tree.h +++ b/src/core/ngx_radix_tree.h @@ -36,11 +36,20 @@ typedef struct { ngx_radix_tree_t *ngx_radix_tree_create(ngx_pool_t *pool, ngx_int_t preallocate); + ngx_int_t ngx_radix32tree_insert(ngx_radix_tree_t *tree, uint32_t key, uint32_t mask, uintptr_t value); ngx_int_t ngx_radix32tree_delete(ngx_radix_tree_t *tree, uint32_t key, uint32_t mask); uintptr_t ngx_radix32tree_find(ngx_radix_tree_t *tree, uint32_t key); +#if (NGX_HAVE_INET6) +ngx_int_t ngx_radix128tree_insert(ngx_radix_tree_t *tree, + u_char *key, u_char *mask, uintptr_t value); +ngx_int_t ngx_radix128tree_delete(ngx_radix_tree_t *tree, + u_char *key, u_char *mask); +uintptr_t ngx_radix128tree_find(ngx_radix_tree_t *tree, u_char *key); +#endif + #endif /* _NGX_RADIX_TREE_H_INCLUDED_ */ |