Home
last modified time | relevance | path

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

/titanic_44/usr/src/uts/common/inet/tcp/
H A Dtcp_bind.c288 static in_port_t next_priv_port = IPPORT_RESERVED - 1; in tcp_get_next_priv_port() local
293 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()
/titanic_44/usr/src/uts/common/inet/udp/
H A Dudp.c361 static in_port_t next_priv_port = IPPORT_RESERVED - 1; in udp_get_next_priv_port() local
367 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()