Displaying 3 results from an estimated 3 matches for "channel_connect".
2012 Oct 22
1
[PATCH] Implement remote dynamic TCP forwarding
...-
3 files changed, 183 insertions(+), 45 deletions(-)
diff --git a/channels.c b/channels.c
index 7791feb..6e46229 100644
--- a/channels.c
+++ b/channels.c
@@ -172,6 +172,7 @@ static void port_open_helper(Channel *c, char *rtype);
/* non-blocking connect helpers */
static int connect_next(struct channel_connect *);
static void channel_connect_ctx_free(struct channel_connect *);
+static int connect_to_helper(const char *host, u_short port, struct channel_connect *cctx);
/* -- channel core */
@@ -209,6 +210,7 @@ channel_lookup(int id)
case SSH_CHANNEL_LARVAL:
case SSH_CHANNEL_CONNECTING:
case SS...
2014 Jan 15
0
remote port forward failed because of failure resolving localhost to IP with error No such file or directory
...is here:
3133 /* Return CONNECTING channel to remote host, port */
3134 static Channel *
3135 connect_to(const char *host, u_short port, char *ctype, char *rname)
3136 {
3137 struct addrinfo hints;
3138 int gaierr;
3139 int sock = -1;
3140 char strport[NI_MAXSERV];
3141 struct channel_connect cctx;
3142 Channel *c;
3143
3144 memset(&cctx, 0, sizeof(cctx));
3145 memset(&hints, 0, sizeof(hints));
3146 hints.ai_family = IPv4or6;
3147 hints.ai_socktype = SOCK_STREAM;
3148 snprintf(strport, sizeof strport, "%d", port);
3149 if ((gaierr = getaddri...
2010 Jan 14
1
ssh(1) multiplexing rewrite
...INING:
case SSH_CHANNEL_OUTPUT_DRAINING:
@@ -562,6 +563,8 @@ channel_find_open(void)
case SSH_CHANNEL_X11_LISTENER:
case SSH_CHANNEL_PORT_LISTENER:
case SSH_CHANNEL_RPORT_LISTENER:
+ case SSH_CHANNEL_MUX_LISTENER:
+ case SSH_CHANNEL_MUX_CLIENT:
case SSH_CHANNEL_OPENING:
case SSH_CHANNEL_CONNECTING:
case SSH_CHANNEL_ZOMBIE:
@@ -612,6 +615,8 @@ channel_open_message(void)
case SSH_CHANNEL_CLOSED:
case SSH_CHANNEL_AUTH_SOCKET:
case SSH_CHANNEL_ZOMBIE:
+ case SSH_CHANNEL_MUX_CLIENT:
+ case SSH_CHANNEL_MUX_LISTENER:
continue;
case SSH_CHANNEL_LARVAL:
case SSH_CHANNEL_OPE...