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

Diff for /src/usr.bin/ssh/ttymodes.c between version 1.28 and 1.29

version 1.28, 2008/07/07 00:31:41 version 1.29, 2008/11/02 00:16:16
Line 283 
Line 283 
   
         /* Store input and output baud rates. */          /* Store input and output baud rates. */
         baud = speed_to_baud(cfgetospeed(&tio));          baud = speed_to_baud(cfgetospeed(&tio));
         debug3("tty_make_modes: ospeed %d", baud);  
         buffer_put_char(&buf, tty_op_ospeed);          buffer_put_char(&buf, tty_op_ospeed);
         buffer_put_int(&buf, baud);          buffer_put_int(&buf, baud);
         baud = speed_to_baud(cfgetispeed(&tio));          baud = speed_to_baud(cfgetispeed(&tio));
         debug3("tty_make_modes: ispeed %d", baud);  
         buffer_put_char(&buf, tty_op_ispeed);          buffer_put_char(&buf, tty_op_ispeed);
         buffer_put_int(&buf, baud);          buffer_put_int(&buf, baud);
   
Line 331 
Line 329 
   
         if (compat20) {          if (compat20) {
                 *n_bytes_ptr = packet_get_int();                  *n_bytes_ptr = packet_get_int();
                 debug3("tty_parse_modes: SSH2 n_bytes %d", *n_bytes_ptr);  
                 if (*n_bytes_ptr == 0)                  if (*n_bytes_ptr == 0)
                         return;                          return;
                 get_arg = packet_get_int;                  get_arg = packet_get_int;
Line 363 
Line 360 
                 case TTY_OP_ISPEED_PROTO2:                  case TTY_OP_ISPEED_PROTO2:
                         n_bytes += 4;                          n_bytes += 4;
                         baud = packet_get_int();                          baud = packet_get_int();
                         debug3("tty_parse_modes: ispeed %d", baud);  
                         if (failure != -1 &&                          if (failure != -1 &&
                             cfsetispeed(&tio, baud_to_speed(baud)) == -1)                              cfsetispeed(&tio, baud_to_speed(baud)) == -1)
                                 error("cfsetispeed failed for %d", baud);                                  error("cfsetispeed failed for %d", baud);
Line 374 
Line 370 
                 case TTY_OP_OSPEED_PROTO2:                  case TTY_OP_OSPEED_PROTO2:
                         n_bytes += 4;                          n_bytes += 4;
                         baud = packet_get_int();                          baud = packet_get_int();
                         debug3("tty_parse_modes: ospeed %d", baud);  
                         if (failure != -1 &&                          if (failure != -1 &&
                             cfsetospeed(&tio, baud_to_speed(baud)) == -1)                              cfsetospeed(&tio, baud_to_speed(baud)) == -1)
                                 error("cfsetospeed failed for %d", baud);                                  error("cfsetospeed failed for %d", baud);

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29