Mercurial > hg > nginx
diff src/core/ngx_resolver.h @ 5476:950c9ed3e66f
Resolver: implemented IPv6 address to name resolving.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 06 Dec 2013 14:30:28 +0400 |
parents | 07dd5bd222ac |
children | 98876ce2a7fd |
line wrap: on
line diff
--- 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;