=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/sshconnect.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- src/usr.bin/ssh/sshconnect.c 1999/09/30 04:30:03 1.7 +++ src/usr.bin/ssh/sshconnect.c 1999/09/30 05:53:04 1.8 @@ -15,7 +15,7 @@ */ #include "includes.h" -RCSID("$Id: sshconnect.c,v 1.7 1999/09/30 04:30:03 deraadt Exp $"); +RCSID("$Id: sshconnect.c,v 1.8 1999/09/30 05:53:04 deraadt Exp $"); #include #include "xmalloc.h" @@ -183,9 +183,7 @@ struct servent *sp; struct hostent *hp; struct sockaddr_in hostaddr; -#ifdef SO_LINGER struct linger linger; -#endif /* SO_LINGER */ debug("ssh_connect: getuid %d geteuid %d anon %d", (int)getuid(), (int)geteuid(), anonymous); @@ -315,14 +313,10 @@ /* Set socket options. We would like the socket to disappear as soon as it has been closed for whatever reason. */ /* setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (void *)&on, sizeof(on)); */ -#ifdef TCP_NODELAY setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (void *)&on, sizeof(on)); -#endif /* TCP_NODELAY */ -#ifdef SO_LINGER linger.l_onoff = 1; linger.l_linger = 5; setsockopt(sock, SOL_SOCKET, SO_LINGER, (void *)&linger, sizeof(linger)); -#endif /* SO_LINGER */ /* Set the connection. */ packet_set_connection(sock, sock);