Lines Matching defs:optmask
86 int *optmask)
93 * we might overwrite their memory! So using the optmask is critical
96 * Unfortunately ares_destroy_options() doesn't take an optmask, so
111 if (channel->optmask & ARES_OPT_FLAGS) {
117 if (channel->optmask & ARES_OPT_TIMEOUTMS) {
121 if (channel->optmask & ARES_OPT_TRIES) {
125 if (channel->optmask & ARES_OPT_NDOTS) {
129 if (channel->optmask & ARES_OPT_MAXTIMEOUTMS) {
133 if (channel->optmask & ARES_OPT_UDP_PORT) {
136 if (channel->optmask & ARES_OPT_TCP_PORT) {
140 if (channel->optmask & ARES_OPT_SOCK_STATE_CB) {
145 if (channel->optmask & ARES_OPT_SERVERS) {
152 if (channel->optmask & ARES_OPT_DOMAINS) {
171 if (channel->optmask & ARES_OPT_LOOKUPS) {
178 if (channel->optmask & ARES_OPT_SORTLIST) {
192 if (channel->optmask & ARES_OPT_RESOLVCONF) {
199 if (channel->optmask & ARES_OPT_HOSTS_FILE) {
206 if (channel->optmask & ARES_OPT_SOCK_SNDBUF &&
211 if (channel->optmask & ARES_OPT_SOCK_RCVBUF &&
216 if (channel->optmask & ARES_OPT_EDNSPSZ) {
220 if (channel->optmask & ARES_OPT_UDP_MAX_QUERIES) {
224 if (channel->optmask & ARES_OPT_QUERY_CACHE) {
228 if (channel->optmask & ARES_OPT_EVENT_THREAD) {
232 *optmask = (int)channel->optmask;
258 int optmask)
267 if (optmask != 0) {
277 if (optmask & ARES_OPT_EVENT_THREAD) {
281 if (optmask & ARES_OPT_SOCK_STATE_CB) {
287 if (optmask & ARES_OPT_FLAGS) {
291 if (optmask & ARES_OPT_TIMEOUTMS) {
293 * the default instead of just omitting the optmask */
295 optmask &= ~(ARES_OPT_TIMEOUTMS);
299 } else if (optmask & ARES_OPT_TIMEOUT) {
300 optmask &= ~(ARES_OPT_TIMEOUT);
302 * the default instead of just omitting the optmask */
305 optmask |= ARES_OPT_TIMEOUTMS;
310 if (optmask & ARES_OPT_TRIES) {
312 optmask &= ~(ARES_OPT_TRIES);
318 if (optmask & ARES_OPT_NDOTS) {
320 optmask &= ~(ARES_OPT_NDOTS);
326 if (optmask & ARES_OPT_MAXTIMEOUTMS) {
328 optmask &= ~(ARES_OPT_MAXTIMEOUTMS);
334 if (optmask & ARES_OPT_ROTATE) {
338 if (optmask & ARES_OPT_NOROTATE) {
342 if (optmask & ARES_OPT_UDP_PORT) {
346 if (optmask & ARES_OPT_TCP_PORT) {
350 if (optmask & ARES_OPT_SOCK_STATE_CB) {
355 if (optmask & ARES_OPT_SOCK_SNDBUF) {
357 optmask &= ~(ARES_OPT_SOCK_SNDBUF);
363 if (optmask & ARES_OPT_SOCK_RCVBUF) {
365 optmask &= ~(ARES_OPT_SOCK_RCVBUF);
371 if (optmask & ARES_OPT_EDNSPSZ) {
373 optmask &= ~(ARES_OPT_EDNSPSZ);
382 if (optmask & ARES_OPT_DOMAINS && options->ndomains > 0) {
398 if (optmask & ARES_OPT_LOOKUPS) {
400 optmask &= ~(ARES_OPT_LOOKUPS);
410 if (optmask & ARES_OPT_SORTLIST && options->nsort > 0) {
423 if (optmask & ARES_OPT_RESOLVCONF) {
425 optmask &= ~(ARES_OPT_RESOLVCONF);
435 if (optmask & ARES_OPT_HOSTS_FILE) {
437 optmask &= ~(ARES_OPT_HOSTS_FILE);
446 if (optmask & ARES_OPT_UDP_MAX_QUERIES) {
448 optmask &= ~(ARES_OPT_UDP_MAX_QUERIES);
454 if (optmask & ARES_OPT_QUERY_CACHE) {
457 optmask &= ~(ARES_OPT_QUERY_CACHE);
464 if (optmask & ARES_OPT_SERVERS) {
466 optmask &= ~(ARES_OPT_SERVERS);
477 channel->optmask = (unsigned int)optmask;