Searched refs:next_priv_port (Results 1 – 2 of 2) sorted by relevance
288 static in_port_t next_priv_port = IPPORT_RESERVED - 1; in tcp_get_next_priv_port() local293 if (next_priv_port < tcps->tcps_min_anonpriv_port || in tcp_get_next_priv_port()294 next_priv_port >= IPPORT_RESERVED) { in tcp_get_next_priv_port()295 next_priv_port = IPPORT_RESERVED - 1; in tcp_get_next_priv_port()302 next_priv_port, IPPROTO_TCP, B_FALSE)) != 0) { in tcp_get_next_priv_port()303 next_priv_port = nextport; in tcp_get_next_priv_port()306 return (next_priv_port--); in tcp_get_next_priv_port()
361 static in_port_t next_priv_port = IPPORT_RESERVED - 1; in udp_get_next_priv_port() local367 if (next_priv_port < us->us_min_anonpriv_port || in udp_get_next_priv_port()368 next_priv_port >= IPPORT_RESERVED) { in udp_get_next_priv_port()369 next_priv_port = IPPORT_RESERVED - 1; in udp_get_next_priv_port()377 next_priv_port, IPPROTO_UDP, B_FALSE)) != 0) { in udp_get_next_priv_port()378 next_priv_port = nextport; in udp_get_next_priv_port()382 return (next_priv_port--); in udp_get_next_priv_port()