Lines Matching refs:newsock
1317 int newsock; in channel_post_x11_listener() local
1325 newsock = accept(c->sock, (struct sockaddr *)&addr, &addrlen); in channel_post_x11_listener()
1331 if (newsock < 0) { in channel_post_x11_listener()
1335 set_nodelay(newsock); in channel_post_x11_listener()
1336 remote_ipaddr = get_peer_ipaddr(newsock); in channel_post_x11_listener()
1337 remote_port = get_peer_port(newsock); in channel_post_x11_listener()
1342 SSH_CHANNEL_OPENING, newsock, newsock, -1, in channel_post_x11_listener()
1450 int newsock, nextstate; in channel_post_port_listener() local
1473 newsock = accept(c->sock, (struct sockaddr *)&addr, &addrlen); in channel_post_port_listener()
1474 if (newsock < 0) { in channel_post_port_listener()
1478 set_nodelay(newsock); in channel_post_port_listener()
1479 nc = channel_new(rtype, nextstate, newsock, newsock, -1, in channel_post_port_listener()
1500 int newsock; in channel_post_auth_listener() local
1506 newsock = accept(c->sock, (struct sockaddr *)&addr, &addrlen); in channel_post_auth_listener()
1507 if (newsock < 0) { in channel_post_auth_listener()
1512 SSH_CHANNEL_OPENING, newsock, newsock, -1, in channel_post_auth_listener()
1894 int newsock; local
1908 if ((newsock = accept(c->sock, (struct sockaddr*)&addr,
1914 if (getpeereid(newsock, &euid, &egid) < 0) {
1917 close(newsock);
1923 close(newsock);
1927 newsock, newsock, -1, c->local_window_max,