Go to the source code of this file.
◆ DLIST_ASSERTON
Value: do { \
(nodevar)= (nodevar)->part
next) { \
assert((nodevar)); \
} \
} while(0)
struct outqueuenode * head
static unsigned __int64 next
Definition at line 70 of file check.c.
◆ DLIST_CHECK1
Value:
for ((nodevar)= (
list).
head; (nodevar); (nodevar)= (nodevar)->next) { \
? (nodevar) == (nodevar)->
next->back \
: (nodevar) == (
list).tail); \
} \
}
static const void * body(MD5_CTX *ctx, const void *data, unsigned long size)
Definition at line 48 of file check.c.
◆ DLIST_CHECK2
Value:
for ((nodevar)= (
list).
head; (nodevar); (nodevar)= (nodevar)->part.next) { \
assert((nodevar)->part.next \
? (nodevar) == (nodevar)->part.next->part.back \
: (nodevar) == (
list).tail); \
} \
}
Definition at line 59 of file check.c.
◆ adns__consistency()
Definition at line 185 of file check.c.
185 {
187
190 break;
193 break;
196 break;
197 default:
199 }
200
206
207 if (qu) {
209 case query_tosend:
211 break;
212 case query_tcpw:
214 break;
215 case query_childw:
217 break;
220 break;
221 default:
222 assert(!
"specific query state");
223 }
224 }
225}
#define DLIST_ASSERTON(node, nodevar, list, part)
static void checkc_queue_tcpw(adns_state ads)
static void checkc_queue_childw(adns_state ads)
static void checkc_queue_udpw(adns_state ads)
static void checkc_global(adns_state ads)
static void checkc_queue_output(adns_state ads)
void query_done(struct query_node *qun, adns_answer *answer)
static short search(int val, const short *table, int size)
enum adns__query::@4227 state
struct query_queue udpw tcpw childw output
Referenced by adns_afterselect(), adns_beforeselect(), adns_cancel(), adns_check(), adns_checkconsistency(), adns_finish(), adns_firsttimeout(), adns_forallqueries_begin(), adns_forallqueries_next(), adns_globalsystemfailure(), adns_init(), adns_init_strcfg(), adns_processany(), adns_processexceptional(), adns_processreadable(), adns_processtimeouts(), adns_processwriteable(), adns_submit(), and adns_wait().
◆ adns_checkconsistency()
Definition at line 30 of file check.c.
30 {
32}
void adns__consistency(adns_state ads, adns_query qu, consistency_checks cc)
◆ checkc_global()
Definition at line 102 of file check.c.
102 {
104
106
109
111
113 case server_connecting:
116 break;
117 case server_disconnected:
118 case server_broken:
121 break;
122 case server_ok:
125 break;
126 default:
127 assert(!
"ads->tcpstate value");
128 }
129
131}
static void checkc_notcpbuf(adns_state ads)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
struct adns__state::sortlist sortlist[MAXSORTLIST]
enum adns__state::adns__tcpstate tcpstate
Referenced by adns__consistency().
◆ checkc_notcpbuf()
◆ checkc_query()
◆ checkc_query_alloc()
Definition at line 79 of file check.c.
79 {
81
82
84 });
85}
#define DLIST_CHECK1(list, nodevar, body)
struct adns__query::@4230 allocations
Referenced by checkc_queue_childw().
◆ checkc_queue_childw()
Definition at line 158 of file check.c.
158 {
160
162 assert(parent->state == query_childw);
163 assert(parent->children.head);
164 DLIST_CHECK2(parent->children, child, siblings, {
165 assert(child->parent == parent);
166 assert(child->state != query_done);
167 });
170 });
171}
static void checkc_query(adns_state ads, adns_query qu)
static void checkc_query_alloc(adns_state ads, adns_query qu)
Referenced by adns__consistency().
◆ checkc_queue_output()
Definition at line 173 of file check.c.
173 {
175
177 assert(qu->state == query_done);
178 assert(!qu->children.head && !qu->children.tail);
179 assert(!qu->parent);
180 assert(!qu->allocations.head && !qu->allocations.tail);
181 checkc_query(ads,qu);
182 });
183}
Referenced by adns__consistency().
◆ checkc_queue_tcpw()
Definition at line 146 of file check.c.
146 {
148
150 assert(qu->state==query_tcpw);
151 assert(!qu->children.head && !qu->children.tail);
152 assert(qu->retries <= ads->nservers+1);
153 checkc_query(ads,qu);
154 checkc_query_alloc(ads,qu);
155 });
156}
Referenced by adns__consistency().
◆ checkc_queue_udpw()
Definition at line 133 of file check.c.
133 {
135
137 assert(qu->state==query_tosend);
138 assert(qu->retries <= UDPMAXRETRIES);
139 assert(qu->udpsent);
140 assert(!qu->children.head && !qu->children.tail);
141 checkc_query(ads,qu);
142 checkc_query_alloc(ads,qu);
143 });
144}
Referenced by adns__consistency().