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

Diff for /src/usr.bin/ssh/packet.c between version 1.41 and 1.42

version 1.41, 2001/01/02 20:41:02 version 1.42, 2001/01/09 21:19:50
Line 1247 
Line 1247 
                         error("setsockopt SO_KEEPALIVE: %.100s", strerror(errno));                          error("setsockopt SO_KEEPALIVE: %.100s", strerror(errno));
         }          }
         /*          /*
          * IPTOS_LOWDELAY, TCP_NODELAY and IPTOS_THROUGHPUT are IPv4 only           * IPTOS_LOWDELAY and IPTOS_THROUGHPUT are IPv4 only
          */           */
         if (!packet_connection_is_ipv4())  
                 return;  
         if (interactive) {          if (interactive) {
                 /*                  /*
                  * Set IP options for an interactive connection.  Use                   * Set IP options for an interactive connection.  Use
                  * IPTOS_LOWDELAY and TCP_NODELAY.                   * IPTOS_LOWDELAY and TCP_NODELAY.
                  */                   */
                 int lowdelay = IPTOS_LOWDELAY;                  if (packet_connection_is_ipv4()) {
                 if (setsockopt(connection_in, IPPROTO_IP, IP_TOS, (void *) &lowdelay,                          int lowdelay = IPTOS_LOWDELAY;
                     sizeof(lowdelay)) < 0)                          if (setsockopt(connection_in, IPPROTO_IP, IP_TOS,
                         error("setsockopt IPTOS_LOWDELAY: %.100s", strerror(errno));                              (void *) &lowdelay, sizeof(lowdelay)) < 0)
                                   error("setsockopt IPTOS_LOWDELAY: %.100s",
                                       strerror(errno));
                   }
                 if (setsockopt(connection_in, IPPROTO_TCP, TCP_NODELAY, (void *) &on,                  if (setsockopt(connection_in, IPPROTO_TCP, TCP_NODELAY, (void *) &on,
                     sizeof(on)) < 0)                      sizeof(on)) < 0)
                         error("setsockopt TCP_NODELAY: %.100s", strerror(errno));                          error("setsockopt TCP_NODELAY: %.100s", strerror(errno));
         } else {          } else if (packet_connection_is_ipv4()) {
                 /*                  /*
                  * Set IP options for a non-interactive connection.  Use                   * Set IP options for a non-interactive connection.  Use
                  * IPTOS_THROUGHPUT.                   * IPTOS_THROUGHPUT.

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42