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

Diff for /src/usr.bin/ssh/nchan.c between version 1.1 and 1.2

version 1.1, 1999/10/16 20:47:14 version 1.2, 1999/10/16 22:29:01
Line 1 
Line 1 
 #include "includes.h"  #include "includes.h"
   RCSID("$Id$");
   
 #include "ssh.h"  #include "ssh.h"
   
 #include "buffer.h"  #include "buffer.h"
Line 6 
Line 8 
 #include "packet.h"  #include "packet.h"
 #include "nchan.h"  #include "nchan.h"
   
   
 void  void
 dump_chan(Channel *c){  dump_chan(Channel *c){
         debug("chan %d type %d flags 0x%x", c->self, c->type, c->flags);          debug("chan %d type %d flags 0x%x", c->self, c->type, c->flags);
Line 41 
Line 42 
 void  void
 chan_send_ieof(Channel *c){  chan_send_ieof(Channel *c){
         if(c->flags & CHAN_IEOF_SENT){          if(c->flags & CHAN_IEOF_SENT){
                 debug("send_chan_ieof twice %d", c->self);                  /* this is ok: it takes some time before we get OCLOSE */
                   /* debug("send_chan_ieof twice %d", c->self); */
                 return;                  return;
         }          }
         debug("send_CHAN_IEOF %d", c->self);          debug("send_CHAN_IEOF %d", c->self);
Line 76 
Line 78 
         c->flags |= CHAN_SHUT_WR;          c->flags |= CHAN_SHUT_WR;
         /* clear output buffer, since there is noone going to read the data          /* clear output buffer, since there is noone going to read the data
            we just closed the output-socket */             we just closed the output-socket */
         // buffer_consume(&c->output, buffer_len(&c->output));          /* buffer_consume(&c->output, buffer_len(&c->output)); */
 }  }
 void  void
 chan_shutdown_read(Channel *c){  chan_shutdown_read(Channel *c){
         if(c->flags & CHAN_SHUT_RD){          if(c->flags & CHAN_SHUT_RD){
                 debug("chan_shutdown_read twice %d",c->self);                  /* chan_shutdown_read is called for read-errors and OCLOSE */
                   /* debug("chan_shutdown_read twice %d",c->self); */
                 return;                  return;
         }          }
         debug("chan_shutdown_read %d", c->self);          debug("chan_shutdown_read %d", c->self);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2