[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.20 and 1.20.2.1

version 1.20, 2006/02/07 01:42:00 version 1.20.2.1, 2006/09/30 04:06:51
Line 1 
Line 1 
   /* $OpenBSD$ */
 /*  /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>   * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland   * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
Line 42 
Line 43 
  * suitable code.   * suitable code.
  */   */
   
 #include "includes.h"  #include <sys/types.h>
 RCSID("$OpenBSD$");  
   
   #include <errno.h>
   #include <string.h>
 #include <termios.h>  #include <termios.h>
   #include <stdarg.h>
   
 #include "packet.h"  #include "packet.h"
 #include "log.h"  #include "log.h"
 #include "ssh1.h"  #include "ssh1.h"
 #include "compat.h"  #include "compat.h"
 #include "buffer.h"  #include "buffer.h"
 #include "bufaux.h"  
   
 #define TTY_OP_END              0  #define TTY_OP_END              0
 /*  /*
Line 360 
Line 362 
                         n_bytes += 4;                          n_bytes += 4;
                         baud = packet_get_int();                          baud = packet_get_int();
                         debug3("tty_parse_modes: ispeed %d", baud);                          debug3("tty_parse_modes: ispeed %d", baud);
                         if (failure != -1 && cfsetispeed(&tio, baud_to_speed(baud)) == -1)                          if (failure != -1 &&
                               cfsetispeed(&tio, baud_to_speed(baud)) == -1)
                                 error("cfsetispeed failed for %d", baud);                                  error("cfsetispeed failed for %d", baud);
                         break;                          break;
   
Line 370 
Line 373 
                         n_bytes += 4;                          n_bytes += 4;
                         baud = packet_get_int();                          baud = packet_get_int();
                         debug3("tty_parse_modes: ospeed %d", baud);                          debug3("tty_parse_modes: ospeed %d", baud);
                         if (failure != -1 && cfsetospeed(&tio, baud_to_speed(baud)) == -1)                          if (failure != -1 &&
                               cfsetospeed(&tio, baud_to_speed(baud)) == -1)
                                 error("cfsetospeed failed for %d", baud);                                  error("cfsetospeed failed for %d", baud);
                         break;                          break;
   
Line 418 
Line 422 
                                         /*                                          /*
                                          * It is a truly undefined opcode (160 to 255).                                           * It is a truly undefined opcode (160 to 255).
                                          * We have no idea about its arguments.  So we                                           * We have no idea about its arguments.  So we
                                          * must stop parsing.  Note that some data may be                                           * must stop parsing.  Note that some data
                                          * left in the packet; hopefully there is nothing                                           * may be left in the packet; hopefully there
                                          * more coming after the mode data.                                           * is nothing more coming after the mode data.
                                          */                                           */
                                         logit("parse_tty_modes: unknown opcode %d", opcode);                                          logit("parse_tty_modes: unknown opcode %d",
                                               opcode);
                                         goto set;                                          goto set;
                                 }                                  }
                         } else {                          } else {
Line 438 
Line 443 
                                         (void) packet_get_int();                                          (void) packet_get_int();
                                         break;                                          break;
                                 } else {                                  } else {
                                         logit("parse_tty_modes: unknown opcode %d", opcode);                                          logit("parse_tty_modes: unknown opcode %d",
                                               opcode);
                                         goto set;                                          goto set;
                                 }                                  }
                         }                          }

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.20.2.1