Lines Matching defs:downstream
112 Channel *downstream; /* Downstream mux*/
668 Channel *downstream)
686 (*permp)[n].downstream = downstream;
702 if (perm->downstream != c)
3059 * with downstream messages from the mux client and upstream messages
3061 * 1) Handling downstream messages is straightforward and happens
3065 * downstream client, we have to replace the channel IDs used by the
3078 * downstream mux client are removed.
3083 * specific downstream client based on the listen-address/port.
3090 * receive packets from downstream mux clients:
3096 channel_proxy_downstream(struct ssh *ssh, Channel *downstream)
3107 /* sshbuf_dump(downstream->input, stderr); */
3108 if ((r = sshbuf_get_string_direct(downstream->input, &cp, &have))
3123 downstream->self, type);
3139 c->mux_ctx = downstream; /* point to mux client */
3140 c->mux_downstream_id = id; /* original downstream id */
3166 c->mux_ctx = downstream; /* point to mux client */
3204 -1, listen_host, NULL, (int)listen_port, downstream);
3244 * to correct downstream:
3246 * replaces local (proxy) channel ID with downstream channel ID.
3252 Channel *downstream;
3265 if ((downstream = c->mux_ctx) == NULL)
3298 (r = sshbuf_put_stringb(downstream->output, b)) != 0) {
4698 * returns either the newly connected channel or the downstream channel
4714 if (perm->downstream)
4715 return perm->downstream;