[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.11 and 1.12

version 1.11, 1999/11/15 21:38:54 version 1.12, 1999/11/19 19:58:18
Line 66 
Line 66 
 /* Flag indicating whether packet compression/decompression is enabled. */  /* Flag indicating whether packet compression/decompression is enabled. */
 static int packet_compression = 0;  static int packet_compression = 0;
   
   /* default maximum packet size */
   int max_packet_size = 32768;
   
 /* Flag indicating whether this module has been initialized. */  /* Flag indicating whether this module has been initialized. */
 static int initialized = 0;  static int initialized = 0;
   
Line 744 
Line 747 
 packet_is_interactive()  packet_is_interactive()
 {  {
   return interactive_mode;    return interactive_mode;
   }
   
   int
   packet_set_maxsize(int s)
   {
     static int called = 0;
     if (called) {
       log("packet_set_maxsize: called twice: old %d new %d", max_packet_size, s);
       return -1;
     }
     if (s < 4*1024 || s > 1024*1024) {
       log("packet_set_maxsize: bad size %d", s);
       return -1;
     }
     log("packet_set_maxsize: setting to %d", s);
     max_packet_size = s;
     return s;
 }  }

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12