[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.154 and 1.155

version 1.154, 2003/11/21 11:57:03 version 1.155, 2003/12/09 21:53:37
Line 411 
Line 411 
   
         debug("Connection established.");          debug("Connection established.");
   
         /* Set keepalives if requested. */          /* Set SO_KEEPALIVE if requested. */
         if (options.keepalives &&          if (options.tcp_keep_alive &&
             setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, (void *)&on,              setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, (void *)&on,
             sizeof(on)) < 0)              sizeof(on)) < 0)
                 error("setsockopt SO_KEEPALIVE: %.100s", strerror(errno));                  error("setsockopt SO_KEEPALIVE: %.100s", strerror(errno));

Legend:
Removed from v.1.154  
changed lines
  Added in v.1.155