[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.106 and 1.107

version 1.106, 2001/04/11 13:56:13 version 1.107, 2001/04/13 22:46:52
Line 1843 
Line 1843 
         return 0;          return 0;
 }  }
   
   /* Returns the id of an open channel suitable for keepaliving */
   
   int
   channel_find_open()
   {
           u_int i;
           for (i = 0; i < channels_alloc; i++)
                   switch (channels[i].type) {
                   case SSH_CHANNEL_CLOSED:
                           continue;
                   case SSH_CHANNEL_LARVAL:
                   case SSH_CHANNEL_DYNAMIC:
                   case SSH_CHANNEL_AUTH_SOCKET:
                   case SSH_CHANNEL_CONNECTING:    /* XXX ??? */
                   case SSH_CHANNEL_FREE:
                   case SSH_CHANNEL_X11_LISTENER:
                   case SSH_CHANNEL_PORT_LISTENER:
                   case SSH_CHANNEL_RPORT_LISTENER:
                   case SSH_CHANNEL_OPENING:
                   case SSH_CHANNEL_OPEN:
                   case SSH_CHANNEL_X11_OPEN:
                           return i;
                   case SSH_CHANNEL_INPUT_DRAINING:
                   case SSH_CHANNEL_OUTPUT_DRAINING:
                           if (!compat13)
                                   fatal("cannot happen: OUT_DRAIN");
                           return i;
                   default:
                           fatal("channel_find_open: bad channel type %d", channels[i].type);
                           /* NOTREACHED */
                   }
           return -1;
   }
   
   
 /*  /*
  * Returns a message describing the currently open forwarded connections,   * Returns a message describing the currently open forwarded connections,
  * suitable for sending to the client.  The message contains crlf pairs for   * suitable for sending to the client.  The message contains crlf pairs for

Legend:
Removed from v.1.106  
changed lines
  Added in v.1.107