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()
427 static in_port_t next_priv_port = IPPORT_RESERVED - 1; in udp_get_next_priv_port() local433 if (next_priv_port < us->us_min_anonpriv_port || in udp_get_next_priv_port()434 next_priv_port >= IPPORT_RESERVED) { in udp_get_next_priv_port()435 next_priv_port = IPPORT_RESERVED - 1; in udp_get_next_priv_port()443 next_priv_port, IPPROTO_UDP, B_FALSE)) != 0) { in udp_get_next_priv_port()444 next_priv_port = nextport; in udp_get_next_priv_port()448 return (next_priv_port--); in udp_get_next_priv_port()