Lines Matching refs:sock_in
361 sshd_exchange_identification(struct ssh *ssh, int sock_in, int sock_out) in sshd_exchange_identification() argument
386 if (atomicio(read, sock_in, &buf[i], 1) != 1) { in sshd_exchange_identification()
419 close(sock_in); in sshd_exchange_identification()
458 close(sock_in); in sshd_exchange_identification()
982 server_accept_inetd(int *sock_in, int *sock_out) argument
989 *sock_in = *sock_out = dup(STDIN_FILENO);
995 *sock_in = dup(STDIN_FILENO);
1011 debug("inetd sockets after dupping: %d, %d", *sock_in, *sock_out);
1095 server_accept_loop(int *sock_in, int *sock_out, int *newsock, int *config_s) argument
1230 *sock_in = *newsock;
1263 *sock_in = *newsock;
1325 int sock_in = ssh_packet_get_connection_in(ssh); local
1332 if (getpeername(sock_in, (struct sockaddr *)&from,
1339 if (getsockopt(sock_in, IPPROTO_IP, IP_OPTIONS, opts,
1362 int sock_in = -1, sock_out = -1, newsock = -1; local
1863 server_accept_inetd(&sock_in, &sock_out);
1890 server_accept_loop(&sock_in, &sock_out,
1916 sock_in, sock_out, newsock, startup_pipe, config_s[0]);
1940 newsock = sock_out = sock_in = dup(STDIN_FILENO);
1948 sock_in, sock_out, newsock, startup_pipe, config_s[0]);
1953 fcntl(sock_in, F_SETFD, FD_CLOEXEC);
1972 packet_set_connection(sock_in, sock_out);
1979 setsockopt(sock_in, SOL_SOCKET, SO_KEEPALIVE, &on, sizeof(on)) < 0)
1999 laddr = get_local_ipaddr(sock_in);
2016 sshd_exchange_identification(ssh, sock_in, sock_out);