Lines Matching refs:newsock
1655 int r, newsock, oerrno, remote_port; in channel_post_x11_listener() local
1664 newsock = accept(c->sock, (struct sockaddr *)&addr, &addrlen); in channel_post_x11_listener()
1672 if (newsock == -1) { in channel_post_x11_listener()
1680 set_nodelay(newsock); in channel_post_x11_listener()
1681 remote_ipaddr = get_peer_ipaddr(newsock); in channel_post_x11_listener()
1682 remote_port = get_peer_port(newsock); in channel_post_x11_listener()
1687 SSH_CHANNEL_OPENING, newsock, newsock, -1, in channel_post_x11_listener()
1786 int newsock, nextstate; in channel_post_port_listener() local
1814 newsock = accept(c->sock, (struct sockaddr *)&addr, &addrlen); in channel_post_port_listener()
1815 if (newsock == -1) { in channel_post_port_listener()
1824 set_nodelay(newsock); in channel_post_port_listener()
1825 nc = channel_new(ssh, rtype, nextstate, newsock, newsock, -1, in channel_post_port_listener()
1845 int r, newsock; in channel_post_auth_listener() local
1853 newsock = accept(c->sock, (struct sockaddr *)&addr, &addrlen); in channel_post_auth_listener()
1854 if (newsock == -1) { in channel_post_auth_listener()
1861 SSH_CHANNEL_OPENING, newsock, newsock, -1, in channel_post_auth_listener()
2310 int newsock; local
2324 if ((newsock = accept(c->sock, (struct sockaddr*)&addr,
2332 if (getpeereid(newsock, &euid, &egid) == -1) {
2335 close(newsock);
2341 close(newsock);
2345 newsock, newsock, -1, c->local_window_max,