Searched refs:ports_avail (Results 1 – 1 of 1) sorted by relevance
577 unsigned int ports_avail = 65536u - (unsigned short) daemon->min_port; in random_sock() local578 int tries = ports_avail < 30 ? 3 * ports_avail : 100; in random_sock()590 port = htons(daemon->min_port + (port % ((unsigned short) ports_avail))); in random_sock()