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

Diff for /src/usr.bin/ssh/dispatch.c between version 1.4 and 1.5

version 1.4, 2000/09/07 20:27:51 version 1.5, 2000/09/21 11:25:34
Line 33 
Line 33 
 dispatch_fn *dispatch[DISPATCH_MAX];  dispatch_fn *dispatch[DISPATCH_MAX];
   
 void  void
 dispatch_protocol_error(int type, int plen)  dispatch_protocol_error(int type, int plen, void *ctxt)
 {  {
         error("Hm, dispatch protocol error: type %d plen %d", type, plen);          error("Hm, dispatch protocol error: type %d plen %d", type, plen);
 }  }
Line 50 
Line 50 
         dispatch[type] = fn;          dispatch[type] = fn;
 }  }
 void  void
 dispatch_run(int mode, int *done)  dispatch_run(int mode, int *done, void *ctxt)
 {  {
         for (;;) {          for (;;) {
                 int plen;                  int plen;
Line 64 
Line 64 
                                 return;                                  return;
                 }                  }
                 if (type > 0 && type < DISPATCH_MAX && dispatch[type] != NULL)                  if (type > 0 && type < DISPATCH_MAX && dispatch[type] != NULL)
                         (*dispatch[type])(type, plen);                          (*dispatch[type])(type, plen, ctxt);
                 else                  else
                         packet_disconnect("protocol error: rcvd type %d", type);                          packet_disconnect("protocol error: rcvd type %d", type);
                 if (done != NULL && *done)                  if (done != NULL && *done)

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5