Lines Matching defs:nso
1657 struct sonode *nso;
1763 nso = socket_newconn(so, NULL, NULL, SOCKET_SLEEP, &error);
1764 if (nso == NULL) {
1776 nvp = SOTOV(nso);
1777 nsti = SOTOTPI(nso);
1784 nso->so_options |= so->so_options & SO_DEBUG;
1817 nso->so_peercred = cr;
1818 nso->so_cpid = cpid;
1840 nso->so_peercred = msg_extractcred(mp, &nso->so_cpid);
1856 if ((nso->so_family == AF_INET || nso->so_family == AF_INET6) &&
1858 nso->so_type == SOCK_STREAM && !soaccept_tpi_tcp) {
1863 mutex_enter(&nso->so_lock);
1864 so_automatic_bind(nso);
1865 mutex_exit(&nso->so_lock);
1868 if ((error = sotpi_bind(nso, NULL, 0, _SOBIND_UNSPEC,
1872 eprintsoline(nso, error);
1885 nso->so_pgrp = so->so_pgrp;
1886 nso->so_state |= so->so_state & SS_ASYNC;
1889 if (nso->so_pgrp != 0) {
1890 if ((error = so_set_events(nso, nvp, cr)) != 0) {
1891 eprintsoline(nso, error);
1893 nso->so_pgrp = 0;
1903 nso->so_options = so->so_options & (SO_DEBUG|SO_REUSEADDR|SO_KEEPALIVE|
1906 nso->so_sndbuf = so->so_sndbuf;
1907 nso->so_rcvbuf = so->so_rcvbuf;
1908 if (nso->so_options & SO_LINGER)
1909 nso->so_linger = so->so_linger;
1929 error = kstrputmsg(SOTOV(nso), mp, NULL,
1937 mutex_enter(&nso->so_lock);
1938 error = sowaitprim(nso, T_CONN_RES, T_OK_ACK,
1941 mutex_exit(&nso->so_lock);
1947 if (nso->so_family == AF_INET) {
1964 nso->so_state |= SS_ISCONNECTED;
1965 nso->so_proto_handle = (sock_lower_handle_t)opt;
1986 } else if (nl7c_process(nso, B_FALSE)) {
1992 mutex_exit(&nso->so_lock);
2001 mutex_exit(&nso->so_lock);
2013 if ((error = strioctl(SOTOV(nso), _SIOCSOCKFALLBACK,
2026 *nsop = nso;
2046 if ((nso->so_mode & SM_ACCEPTOR_ID) == 0) {
2052 * Can safely do this since we "own" nso/nvp.
2103 mutex_enter(&nso->so_lock);
2104 sinlen = (nso->so_family == AF_INET) ? sizeof (sin_t) : sizeof (sin6_t);
2105 if ((nso->so_family == AF_INET) || (nso->so_family == AF_INET6) &&
2111 } else if (nso->so_family == AF_UNIX) {
2122 nsti->sti_laddr_sa->sa_family = nso->so_family;
2124 nso->so_state |= SS_ISCONNECTED;
2125 mutex_exit(&nso->so_lock);
2137 *nsop = nso;