Displaying 6 results from an estimated 6 matches for "channel_pre_listener".
2001 Oct 24
2
disable features
...int IPv4or6 = AF_UNSPEC;
 
+#ifdef WITH_TCPFWD
 /* helper */
 static void port_open_helper(Channel *c, char *rtype);
+#endif
 
 /* -- channel core */
 
@@ -678,6 +683,7 @@
 chan_fn *channel_pre[SSH_CHANNEL_MAX_TYPE];
 chan_fn *channel_post[SSH_CHANNEL_MAX_TYPE];
 
+#ifdef WITH_TCPFWD
 static void
 channel_pre_listener(Channel *c, fd_set * readset, fd_set * writeset)
 {
@@ -690,7 +696,9 @@
 	debug3("channel %d: waiting for connection", c->self);
 	FD_SET(c->sock, writeset);
 }
+#endif
 
+#ifdef WITH_PROTO13
 static void
 channel_pre_open_13(Channel *c, fd_set * readset, fd_set * writeset)
 {
@@ -6...
2001 Feb 10
3
Protocol 2 remote forwarding patch
...ut_int(newch);
 			packet_put_int(c->local_window_max);
 			packet_put_int(c->local_maxpacket);
@@ -820,10 +826,12 @@
 	channel_pre[SSH_CHANNEL_OPEN] =			&channel_pre_open_20;
 	channel_pre[SSH_CHANNEL_X11_OPEN] =		&channel_pre_x11_open;
 	channel_pre[SSH_CHANNEL_PORT_LISTENER] =	&channel_pre_listener;
+	channel_pre[SSH2_CHANNEL_PORT_LISTENER] =	&channel_pre_listener;
 	channel_pre[SSH_CHANNEL_X11_LISTENER] =		&channel_pre_listener;
 
 	channel_post[SSH_CHANNEL_OPEN] =		&channel_post_open_2;
 	channel_post[SSH_CHANNEL_PORT_LISTENER] =	&channel_post_port_listener;
+	channel_post[S...
2000 Aug 23
1
Protocol 2 remote forwarding patch
...ut_int(newch);
 			packet_put_int(c->local_window_max);
 			packet_put_int(c->local_maxpacket);
@@ -786,10 +799,12 @@
 	channel_pre[SSH_CHANNEL_OPEN] =			&channel_pre_open_20;
 	channel_pre[SSH_CHANNEL_X11_OPEN] =		&channel_pre_x11_open;
 	channel_pre[SSH_CHANNEL_PORT_LISTENER] =	&channel_pre_listener;
+	channel_pre[SSH2_CHANNEL_PORT_LISTENER] =	&channel_pre_listener;
 	channel_pre[SSH_CHANNEL_X11_LISTENER] =		&channel_pre_listener;
 
 	channel_post[SSH_CHANNEL_OPEN] =		&channel_post_open_2;
 	channel_post[SSH_CHANNEL_PORT_LISTENER] =	&channel_post_port_listener;
+	channel_post[S...
2012 Oct 22
1
[PATCH] Implement remote dynamic TCP forwarding
...axfd();
+				return;
+			}
+			chan_mark_dead(c);
+		}
+	}
+}
+
 /* This is our fake X11 server socket. */
 /* ARGSUSED */
 static void
@@ -1984,6 +2094,7 @@ channel_handler_init_20(void)
 	channel_pre[SSH_CHANNEL_DYNAMIC] =		&channel_pre_dynamic;
 	channel_pre[SSH_CHANNEL_MUX_LISTENER] =		&channel_pre_listener;
 	channel_pre[SSH_CHANNEL_MUX_CLIENT] =		&channel_pre_mux_client;
+	channel_pre[SSH_CHANNEL_RDYNAMIC] =		&channel_pre_rdynamic;
 
 	channel_post[SSH_CHANNEL_OPEN] =		&channel_post_open;
 	channel_post[SSH_CHANNEL_PORT_LISTENER] =	&channel_post_port_listener;
@@ -1994,6 +2105,7 @@ c...
2020 Oct 14
2
Connection hang, can't stop SSH
Using OpenSSH_8.3p1 I had an open (working) connection to some other
box; after a bit of inactivity, some device in the middle seems to have
forgotten about the TCP connection (NAT) and broke it.
I've got an EscapeChar defined, though; so first I tried to send a BREAK
and, when that didn't help (TCP already gone, packets get lost!), I
tried (just out of curiosity) a Rekey.
Now I can see
2010 Jan 14
1
ssh(1) multiplexing rewrite
...state transitions must not elicit protocol messages */
+		nc->flags |= CHAN_LOCAL;
+	}
+}
+
 /* ARGSUSED */
 static void
 channel_post_output_drain_13(Channel *c, fd_set *readset, fd_set *writeset)
@@ -1817,6 +1931,8 @@ channel_handler_init_20(void)
 	channel_pre[SSH_CHANNEL_AUTH_SOCKET] =		&channel_pre_listener;
 	channel_pre[SSH_CHANNEL_CONNECTING] =		&channel_pre_connecting;
 	channel_pre[SSH_CHANNEL_DYNAMIC] =		&channel_pre_dynamic;
+	channel_pre[SSH_CHANNEL_MUX_LISTENER] =		&channel_pre_listener;
+	channel_pre[SSH_CHANNEL_MUX_CLIENT] =		&channel_pre_mux_client;
 
 	channel_post[SSH_CHA...