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

Diff for /src/usr.bin/ssh/channels.c between version 1.165 and 1.166

version 1.165, 2002/02/03 17:58:21 version 1.166, 2002/02/05 14:32:55
Line 588 
Line 588 
 }  }
   
 void  void
 channel_request(int id, char *service, int wantconfirm)  channel_request_start(int local_id, char *service, int wantconfirm)
 {  {
         channel_request_start(id, service, wantconfirm);          Channel *c = channel_lookup(local_id);
         packet_send();  
         debug("channel request %d: %s", id, service) ;  
 }  
 void  
 channel_request_start(int id, char *service, int wantconfirm)  
 {  
         Channel *c = channel_lookup(id);  
         if (c == NULL) {          if (c == NULL) {
                 log("channel_request: %d: bad id", id);                  log("channel_request_start: %d: unknown channel id", local_id);
                 return;                  return;
         }          }
           debug("channel request %d: %s", local_id, service) ;
         packet_start(SSH2_MSG_CHANNEL_REQUEST);          packet_start(SSH2_MSG_CHANNEL_REQUEST);
         packet_put_int(c->remote_id);          packet_put_int(c->remote_id);
         packet_put_cstring(service);          packet_put_cstring(service);

Legend:
Removed from v.1.165  
changed lines
  Added in v.1.166