Home
last modified time | relevance | path

Searched refs:randomsocks (Results 1 – 3 of 3) sorted by relevance

/external/dnsmasq/src/
Dforward.c803 if (daemon->randomsocks[i].refcount == 0) { in allocate_rfd()
804 if ((daemon->randomsocks[i].fd = random_sock(family)) == -1) break; in allocate_rfd()
806 daemon->randomsocks[i].refcount = 1; in allocate_rfd()
807 daemon->randomsocks[i].family = family; in allocate_rfd()
808 return &daemon->randomsocks[i]; in allocate_rfd()
814 if (daemon->randomsocks[j].refcount != 0 && daemon->randomsocks[j].family == family && in allocate_rfd()
815 daemon->randomsocks[j].refcount != 0xffff) { in allocate_rfd()
817 daemon->randomsocks[j].refcount++; in allocate_rfd()
818 return &daemon->randomsocks[j]; in allocate_rfd()
Ddnsmasq.c863 if (daemon->randomsocks[i].refcount != 0) { in set_dns_listeners()
864 FD_SET(daemon->randomsocks[i].fd, set); in set_dns_listeners()
865 bump_maxfd(daemon->randomsocks[i].fd, maxfdp); in set_dns_listeners()
900 if (daemon->randomsocks[i].refcount != 0 && FD_ISSET(daemon->randomsocks[i].fd, set)) in check_dns_listeners()
901 reply_query(daemon->randomsocks[i].fd, daemon->randomsocks[i].family, now); in check_dns_listeners()
Ddnsmasq.h635 struct randfd randomsocks[RANDOM_SOCKS]; member