Home
last modified time | relevance | path

Searched refs:next_priv_port (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_bind.c290 static in_port_t next_priv_port = IPPORT_RESERVED - 1; in tcp_get_next_priv_port() local
295 if (next_priv_port < tcps->tcps_min_anonpriv_port || in tcp_get_next_priv_port()
296 next_priv_port >= IPPORT_RESERVED) { in tcp_get_next_priv_port()
297 next_priv_port = IPPORT_RESERVED - 1; in tcp_get_next_priv_port()
304 next_priv_port, IPPROTO_TCP, B_FALSE)) != 0) { in tcp_get_next_priv_port()
305 next_priv_port = nextport; in tcp_get_next_priv_port()
308 return (next_priv_port--); in tcp_get_next_priv_port()
/illumos-gate/usr/src/uts/common/inet/udp/
H A Dudp.c444 static in_port_t next_priv_port = IPPORT_RESERVED - 1; in udp_get_next_priv_port() local
450 if (next_priv_port < us->us_min_anonpriv_port || in udp_get_next_priv_port()
451 next_priv_port >= IPPORT_RESERVED) { in udp_get_next_priv_port()
452 next_priv_port = IPPORT_RESERVED - 1; in udp_get_next_priv_port()
460 next_priv_port, IPPROTO_UDP, B_FALSE)) != 0) { in udp_get_next_priv_port()
461 next_priv_port = nextport; in udp_get_next_priv_port()
465 return (next_priv_port--); in udp_get_next_priv_port()