Searched refs:randomsocks (Results 1 – 3 of 3) sorted by relevance
927 if (daemon->randomsocks[i].refcount == 0) in allocate_rfd()929 if ((daemon->randomsocks[i].fd = random_sock(family)) == -1) in allocate_rfd()932 daemon->randomsocks[i].refcount = 1; in allocate_rfd()933 daemon->randomsocks[i].family = family; in allocate_rfd()934 return &daemon->randomsocks[i]; in allocate_rfd()941 if (daemon->randomsocks[j].refcount != 0 && in allocate_rfd()942 daemon->randomsocks[j].family == family && in allocate_rfd()943 daemon->randomsocks[j].refcount != 0xffff) in allocate_rfd()946 daemon->randomsocks[j].refcount++; in allocate_rfd()947 return &daemon->randomsocks[j]; in allocate_rfd()
1066 if (daemon->randomsocks[i].refcount != 0) in set_dns_listeners()1068 FD_SET(daemon->randomsocks[i].fd, set); in set_dns_listeners()1069 bump_maxfd(daemon->randomsocks[i].fd, maxfdp); in set_dns_listeners()1117 if (daemon->randomsocks[i].refcount != 0 && in check_dns_listeners()1118 FD_ISSET(daemon->randomsocks[i].fd, set)) in check_dns_listeners()1119 reply_query(daemon->randomsocks[i].fd, daemon->randomsocks[i].family, now); in check_dns_listeners()
664 struct randfd randomsocks[RANDOM_SOCKS]; member