Searched refs:randomsocks (Results 1 – 3 of 3) sorted by relevance
914 if (daemon->randomsocks[i].refcount == 0) in allocate_rfd()916 if ((daemon->randomsocks[i].fd = random_sock(family)) == -1) in allocate_rfd()919 daemon->randomsocks[i].refcount = 1; in allocate_rfd()920 daemon->randomsocks[i].family = family; in allocate_rfd()921 return &daemon->randomsocks[i]; in allocate_rfd()928 if (daemon->randomsocks[j].refcount != 0 && in allocate_rfd()929 daemon->randomsocks[j].family == family && in allocate_rfd()930 daemon->randomsocks[j].refcount != 0xffff) in allocate_rfd()933 daemon->randomsocks[j].refcount++; in allocate_rfd()934 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()
662 struct randfd randomsocks[RANDOM_SOCKS]; member