search for: ssh_channel_larval

Displaying 12 results from an estimated 12 matches for "ssh_channel_larval".

2001 Apr 05
1
bug in channel_still_open() ?
...t counted as "open", so sshd thinks that all channels are closed and exits. I think the fact you get even one chance is an accident. A quick fix is this: --- channels.c Thu Apr 5 03:53:30 2001 +++ channels.c.new Thu Apr 5 03:54:56 2001 @@ -1503,7 +1503,6 @@ case SSH_CHANNEL_LARVAL: if (!compat20) fatal("cannot happen: SSH_CHANNEL_LARVAL"); - continue; case SSH_CHANNEL_OPENING: case SSH_CHANNEL_OPEN: case SSH_CHANNEL_X11_OPEN: (That is, remo...
2001 May 04
19
SSH connection hanging on logout
I am running OpenSSH 2.9p1 on SunOS 5.7 w/4-24-2001 patch cluster. Like many other users I am seeing the hanging session on logout with background processes. This is a huge problem for me as I centrally manage 50+ machines with rdist across ssh. Instead of just complaining about the problem I thought I would put my CS degree to use and try to track down the problem myself. For starters,
2004 Jul 14
1
New dynamic window patch (with limits)
...-dynwindow/scard diff -u openssh-3.8.1p1/serverloop.c openssh-3.8.1p1-dynwindow/serverloop.c --- openssh-3.8.1p1/serverloop.c 2004-01-20 19:02:50.000000000 -0500 +++ openssh-3.8.1p1-dynwindow/serverloop.c 2004-07-07 09:53:44.000000000 -0400 @@ -894,6 +894,9 @@ c = channel_new("session", SSH_CHANNEL_LARVAL, -1, -1, -1, /*window size*/0, CHAN_SES_PACKET_DEFAULT, 0, "server-session", 1); + set_unlimited(&c->input,1); + set_unlimited(&c->output,1); + c->dynamic_window = 1; if (session_open(the_authctxt, c->self) != 1) { debug("session open failed, free...
2002 May 09
0
functions : server_input_channel_req userauth_pubkey
...ug("*******************************"); id = packet_get_int(); rtype = packet_get_string(NULL); @@ -1012,7 +1023,7 @@ packet_disconnect("server_input_channel_req: " "unknown channel %d", id); if (c->type == SSH_CHANNEL_LARVAL || c->type == SSH_CHANNEL_OPEN) - - success = session_input_channel_req(c, rtype); + success = session_input_channel_req(c, rtype, realname); if (reply) { packet_start(success ? SSH2_MSG_CHANNEL_SUCCESS : SSH2_MSG_CHANNEL_FA...
2001 Sep 28
1
[PATCH] fix for Linux hang on exit bug in 2.9.9p2
...id chan_shutdown_read(Channel *); +void chan_shutdown_read(Channel *); /* * SSH1 specific implementation of event functions @@ -524,7 +524,7 @@ c->self, c->wfd, strerror(errno)); } } -static void +void chan_shutdown_read(Channel *c) { if (compat20 && c->type == SSH_CHANNEL_LARVAL) diff -u openssh-2.9.9p2/readconf.c openssh-2.9.9p2J/readconf.c --- openssh-2.9.9p2/readconf.c Wed Sep 19 18:57:56 2001 +++ openssh-2.9.9p2J/readconf.c Thu Sep 27 22:17:56 2001 @@ -115,7 +115,7 @@ oKbdInteractiveAuthentication, oKbdInteractiveDevices, oHostKeyAlias, oDynamicForward, oPreferredA...
2004 Jul 07
3
DynamicWindow Patch
...scard Common subdirectories: src/usr.bin/ssh/scp and ssh/scp diff -u src/usr.bin/ssh/serverloop.c ssh/serverloop.c --- src/usr.bin/ssh/serverloop.c 2004-05-21 07:33:11.000000000 -0400 +++ ssh/serverloop.c 2004-07-07 10:02:24.000000000 -0400 @@ -892,6 +892,9 @@ c = channel_new("session", SSH_CHANNEL_LARVAL, -1, -1, -1, /*window size*/0, CHAN_SES_PACKET_DEFAULT, 0, "server-session", 1); + set_unlimited(&c->input,1); + set_unlimited(&c->output,1); + c->dynamic_window = 1; if (session_open(the_authctxt, c->self) != 1) { debug("session open failed, free...
2012 Oct 22
1
[PATCH] Implement remote dynamic TCP forwarding
...t 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 SSH_CHANNEL_DYNAMIC: + case SSH_CHANNEL_RDYNAMIC: case SSH_CHANNEL_OPENING: case SSH_CHANNEL_OPEN: case SSH_CHANNEL_INPUT_DRAINING: @@ -534,6 +536,7 @@ channel_still_open(void) case SSH_CHANNEL_CLOSED: case SSH_CHANNEL_AUTH_SOCKET: case SSH_CHAN...
2001 Sep 05
2
sshd hangs on logout -- is this a bug?
In the changelog, there is an entry: 20001129 - (djm) Back out all the serverloop.c hacks. sshd will now hang again if there are background children with open fds. Does this mean that this is regarded as expected (and correct) behavior, that should not change in the future, or does it mean that this behavior is a known problem that someone will eventually fix? --Adam -- Adam McKenna
2001 Nov 14
6
[PATCH]: Patch to fix hang on exit bug under Linux and add optional exit delay
...id chan_shutdown_read(Channel *); +void chan_shutdown_read(Channel *); /* * SSH1 specific implementation of event functions @@ -533,7 +533,7 @@ c->self, c->wfd, strerror(errno)); } } -static void +void chan_shutdown_read(Channel *c) { if (compat20 && c->type == SSH_CHANNEL_LARVAL) diff -ur openssh-3.0p1/readconf.c openssh-3.0p1J/readconf.c --- openssh-3.0p1/readconf.c Wed Oct 3 11:39:39 2001 +++ openssh-3.0p1J/readconf.c Tue Nov 13 16:09:00 2001 @@ -115,7 +115,7 @@ oKbdInteractiveAuthentication, oKbdInteractiveDevices, oHostKeyAlias, oDynamicForward, oPreferredAuthenti...
2001 Feb 10
3
Protocol 2 remote forwarding patch
....h openssh/channels.h --- openssh.orig/channels.h Tue Dec 5 20:11:48 2000 +++ openssh/channels.h Sat Feb 10 00:01:29 2001 @@ -49,7 +49,8 @@ #define SSH_CHANNEL_INPUT_DRAINING 8 /* sending remaining data to conn */ #define SSH_CHANNEL_OUTPUT_DRAINING 9 /* sending remaining data to app */ #define SSH_CHANNEL_LARVAL 10 /* larval session */ -#define SSH_CHANNEL_MAX_TYPE 11 +#define SSH2_CHANNEL_PORT_LISTENER 11 +#define SSH_CHANNEL_MAX_TYPE 12 /* * Data structure for channel data. This is iniailized in channel_allocate @@ -149,6 +150,9 @@ void channel_input_window_adjust(int type, int plen, void *ctxt...
2000 Aug 23
1
Protocol 2 remote forwarding patch
...--- openssh-2.1.1p4/channels.h Thu Jun 22 14:32:31 2000 +++ openssh-2.1.1p4-jhchanges/channels.h Tue Aug 22 21:36:16 2000 @@ -15,7 +15,13 @@ #define SSH_CHANNEL_INPUT_DRAINING 8 /* sending remaining data to conn */ #define SSH_CHANNEL_OUTPUT_DRAINING 9 /* sending remaining data to app */ #define SSH_CHANNEL_LARVAL 10 /* larval session */ -#define SSH_CHANNEL_MAX_TYPE 11 +#define SSH2_CHANNEL_PORT_LISTENER 11 /* Jarno: protocol 2 remote port + * listener. (needs different type + * because with protocol 2 remote + * forward the server sends +...
2010 Jan 14
1
ssh(1) multiplexing rewrite
...HANNEL_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_OPENING: @@ -622,12 +627,12 @@ channel_open_message(void) case SSH_CHANNEL_INPUT_DRAINING: case SSH_CHANNEL_OUTPUT_DRAINING: snprintf(buf, sizeof buf, - " #%d %.300s (t%d r%d i%d/%d o%d/%d fd %d/%d cfd %d)\r\n", + " #%d %.300s (t%d r%d i%d...