[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.43 and 1.44

version 1.43, 2001/01/13 18:32:50 version 1.44, 2001/01/13 18:36:45
Line 1233 
Line 1233 
 packet_set_interactive(int interactive)  packet_set_interactive(int interactive)
 {  {
         static int called = 0;          static int called = 0;
           int lowdelay = IPTOS_LOWDELAY;
           int throughput = IPTOS_THROUGHPUT;
           int on = 1;
   
         if (called)          if (called)
                 return;                  return;
         called = 1;          called = 1;
Line 1252 
Line 1256 
                  * IPTOS_LOWDELAY and TCP_NODELAY.                   * IPTOS_LOWDELAY and TCP_NODELAY.
                  */                   */
                 if (packet_connection_is_ipv4()) {                  if (packet_connection_is_ipv4()) {
                         int lowdelay = IPTOS_LOWDELAY;  
                         if (setsockopt(connection_in, IPPROTO_IP, IP_TOS,                          if (setsockopt(connection_in, IPPROTO_IP, IP_TOS,
                             (void *) &lowdelay, sizeof(lowdelay)) < 0)                              (void *) &lowdelay, sizeof(lowdelay)) < 0)
                                 error("setsockopt IPTOS_LOWDELAY: %.100s",                                  error("setsockopt IPTOS_LOWDELAY: %.100s",
Line 1266 
Line 1269 
                  * Set IP options for a non-interactive connection.  Use                   * Set IP options for a non-interactive connection.  Use
                  * IPTOS_THROUGHPUT.                   * IPTOS_THROUGHPUT.
                  */                   */
                 int throughput = IPTOS_THROUGHPUT;  
                 if (setsockopt(connection_in, IPPROTO_IP, IP_TOS, (void *) &throughput,                  if (setsockopt(connection_in, IPPROTO_IP, IP_TOS, (void *) &throughput,
                     sizeof(throughput)) < 0)                      sizeof(throughput)) < 0)
                         error("setsockopt IPTOS_THROUGHPUT: %.100s", strerror(errno));                          error("setsockopt IPTOS_THROUGHPUT: %.100s", strerror(errno));

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44