Lines Matching refs:optmask
63 int optmask);
104 int optmask) in ares_init_options() argument
175 status = init_by_options(channel, options, optmask); in ares_init_options()
249 int optmask; in ares_dup() local
255 rc = ares_save_options(src, &opts, &optmask); in ares_dup()
263 rc = ares_init_options(dest, &opts, optmask); in ares_dup()
315 int *optmask) in ares_save_options() argument
329 (*optmask) = (ARES_OPT_FLAGS|ARES_OPT_TRIES|ARES_OPT_NDOTS| in ares_save_options()
333 (*optmask) |= (channel->rotate ? ARES_OPT_ROTATE : ARES_OPT_NOROTATE); in ares_save_options()
336 (*optmask) |= ARES_OPT_RESOLVCONF; in ares_save_options()
422 int optmask) in init_by_options() argument
427 if ((optmask & ARES_OPT_FLAGS) && channel->flags == -1) in init_by_options()
429 if ((optmask & ARES_OPT_TIMEOUTMS) && channel->timeout == -1) in init_by_options()
431 else if ((optmask & ARES_OPT_TIMEOUT) && channel->timeout == -1) in init_by_options()
433 if ((optmask & ARES_OPT_TRIES) && channel->tries == -1) in init_by_options()
435 if ((optmask & ARES_OPT_NDOTS) && channel->ndots == -1) in init_by_options()
437 if ((optmask & ARES_OPT_ROTATE) && channel->rotate == -1) in init_by_options()
439 if ((optmask & ARES_OPT_NOROTATE) && channel->rotate == -1) in init_by_options()
441 if ((optmask & ARES_OPT_UDP_PORT) && channel->udp_port == -1) in init_by_options()
443 if ((optmask & ARES_OPT_TCP_PORT) && channel->tcp_port == -1) in init_by_options()
445 if ((optmask & ARES_OPT_SOCK_STATE_CB) && channel->sock_state_cb == NULL) in init_by_options()
450 if ((optmask & ARES_OPT_SOCK_SNDBUF) in init_by_options()
453 if ((optmask & ARES_OPT_SOCK_RCVBUF) in init_by_options()
457 if ((optmask & ARES_OPT_EDNSPSZ) && channel->ednspsz == -1) in init_by_options()
461 if ((optmask & ARES_OPT_SERVERS) && channel->nservers == -1) in init_by_options()
486 if ((optmask & ARES_OPT_DOMAINS) && channel->ndomains == -1) in init_by_options()
506 if ((optmask & ARES_OPT_LOOKUPS) && !channel->lookups) in init_by_options()
514 if ((optmask & ARES_OPT_SORTLIST) && (channel->nsort == -1)) { in init_by_options()
526 if ((optmask & ARES_OPT_RESOLVCONF) && !channel->resolvconf_path) in init_by_options()
533 channel->optmask = optmask; in init_by_options()