~ubuntu-branches/ubuntu/utopic/nginx/utopic

« back to all changes in this revision

Viewing changes to src/core/ngx_resolver.h

  • Committer: Package Import Robot
  • Author(s): Robie Basak
  • Date: 2014-08-15 16:46:48 UTC
  • mfrom: (4.3.16 sid)
  • Revision ID: package-import@ubuntu.com-20140815164648-a5f0kta1qhtpw161
Tags: 1.6.1-1ubuntu1
* Merge from Debian. Remaining changes:
  - debian/patches/ubuntu-branding.patch: add Ubuntu branding
    (refreshed).
  - debian/rules: Drop from -O3 to -O2 to work around a build failure.
  - d/{control,rules,nginx-core.*}: add new binary package for main,
    nginx-core, which contains only source-tarball-included modules
    and no third-party modules.
* Add dep8 smoke test

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#define NGX_RESOLVE_PTR       12
19
19
#define NGX_RESOLVE_MX        15
20
20
#define NGX_RESOLVE_TXT       16
 
21
#if (NGX_HAVE_INET6)
 
22
#define NGX_RESOLVE_AAAA      28
 
23
#endif
21
24
#define NGX_RESOLVE_DNAME     39
22
25
 
23
26
#define NGX_RESOLVE_FORMERR   1
54
57
    /* PTR: resolved name, A: name to resolve */
55
58
    u_char                   *name;
56
59
 
 
60
#if (NGX_HAVE_INET6)
 
61
    /* PTR: IPv6 address to resolve (IPv4 address is in rbtree node key) */
 
62
    struct in6_addr           addr6;
 
63
#endif
 
64
 
57
65
    u_short                   nlen;
58
66
    u_short                   qlen;
59
67
 
60
68
    u_char                   *query;
 
69
#if (NGX_HAVE_INET6)
 
70
    u_char                   *query6;
 
71
#endif
61
72
 
62
73
    union {
63
74
        in_addr_t             addr;
65
76
        u_char               *cname;
66
77
    } u;
67
78
 
 
79
    u_char                    code;
68
80
    u_short                   naddrs;
69
81
    u_short                   cnlen;
70
82
 
 
83
#if (NGX_HAVE_INET6)
 
84
    union {
 
85
        struct in6_addr       addr6;
 
86
        struct in6_addr      *addrs6;
 
87
    } u6;
 
88
 
 
89
    u_short                   naddrs6;
 
90
#endif
 
91
 
71
92
    time_t                    expire;
72
93
    time_t                    valid;
 
94
    uint32_t                  ttl;
73
95
 
74
96
    ngx_resolver_ctx_t       *waiting;
75
97
} ngx_resolver_node_t;
100
122
    ngx_queue_t               name_expire_queue;
101
123
    ngx_queue_t               addr_expire_queue;
102
124
 
 
125
#if (NGX_HAVE_INET6)
 
126
    ngx_uint_t                ipv6;                 /* unsigned  ipv6:1; */
 
127
    ngx_rbtree_t              addr6_rbtree;
 
128
    ngx_rbtree_node_t         addr6_sentinel;
 
129
    ngx_queue_t               addr6_resend_queue;
 
130
    ngx_queue_t               addr6_expire_queue;
 
131
#endif
 
132
 
103
133
    time_t                    resend_timeout;
104
134
    time_t                    expire;
105
135
    time_t                    valid;
117
147
    ngx_int_t                 ident;
118
148
 
119
149
    ngx_int_t                 state;
120
 
    ngx_int_t                 type;
121
150
    ngx_str_t                 name;
122
151
 
123
152
    ngx_uint_t                naddrs;
124
 
    in_addr_t                *addrs;
125
 
    in_addr_t                 addr;
 
153
    ngx_addr_t               *addrs;
 
154
    ngx_addr_t                addr;
 
155
    struct sockaddr_in        sin;
126
156
 
127
157
    ngx_resolver_handler_pt   handler;
128
158
    void                     *data;