diff options
| author | Ruslan Ermilov <ru@nginx.com> | 2013-12-06 14:30:28 +0400 |
|---|---|---|
| committer | Ruslan Ermilov <ru@nginx.com> | 2013-12-06 14:30:28 +0400 |
| commit | 809bee30b742eadbf1b487d4d185215f093377a5 (patch) | |
| tree | fa895748920108b62d5ba24302e1606dfad21b49 /src/core/ngx_resolver.h | |
| parent | 3aeefbcaea75c1ccf158be15afe61ce863978be9 (diff) | |
| download | nginx-809bee30b742eadbf1b487d4d185215f093377a5.tar.gz nginx-809bee30b742eadbf1b487d4d185215f093377a5.tar.bz2 | |
Resolver: implemented IPv6 address to name resolving.
Diffstat (limited to 'src/core/ngx_resolver.h')
| -rw-r--r-- | src/core/ngx_resolver.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/ngx_resolver.h b/src/core/ngx_resolver.h index c9942d8f3..2488a3dd4 100644 --- a/src/core/ngx_resolver.h +++ b/src/core/ngx_resolver.h @@ -54,6 +54,11 @@ typedef struct { /* PTR: resolved name, A: name to resolve */ u_char *name; +#if (NGX_HAVE_INET6) + /* PTR: IPv6 address to resolve (IPv4 address is in rbtree node key) */ + struct in6_addr addr6; +#endif + u_short nlen; u_short qlen; @@ -100,6 +105,13 @@ typedef struct { ngx_queue_t name_expire_queue; ngx_queue_t addr_expire_queue; +#if (NGX_HAVE_INET6) + ngx_rbtree_t addr6_rbtree; + ngx_rbtree_node_t addr6_sentinel; + ngx_queue_t addr6_resend_queue; + ngx_queue_t addr6_expire_queue; +#endif + time_t resend_timeout; time_t expire; time_t valid; |
