[BACK]Return to sshconnect.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/sshconnect.c between version 1.133 and 1.134

version 1.133, 2002/07/29 18:57:30 version 1.134, 2002/09/13 19:23:09
Line 225 
Line 225 
         int sock = -1, attempt;          int sock = -1, attempt;
         char ntop[NI_MAXHOST], strport[NI_MAXSERV];          char ntop[NI_MAXHOST], strport[NI_MAXSERV];
         struct addrinfo hints, *ai, *aitop;          struct addrinfo hints, *ai, *aitop;
         struct linger linger;  
         struct servent *sp;          struct servent *sp;
         /*          /*
          * Did we get only other errors than "Connection refused" (which           * Did we get only other errors than "Connection refused" (which
Line 325 
Line 324 
         }          }
   
         debug("Connection established.");          debug("Connection established.");
   
         /*  
          * 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)); */  
         linger.l_onoff = 1;  
         linger.l_linger = 5;  
         setsockopt(sock, SOL_SOCKET, SO_LINGER, (void *)&linger, sizeof(linger));  
   
         /* Set keepalives if requested. */          /* Set keepalives if requested. */
         if (options.keepalives &&          if (options.keepalives &&

Legend:
Removed from v.1.133  
changed lines
  Added in v.1.134