Displaying 5 results from an estimated 5 matches for "newch".
Did you mean:
newc
2000 Aug 23
1
Protocol 2 remote forwarding patch
...*/
+
/*
* Maximum file descriptor value used in any of the channels. This is
* updated in channel_allocate.
@@ -581,13 +587,20 @@
"connect from %.200s port %d",
c->listening_port, c->path, c->host_port,
remote_hostname, remote_port);
- newch = channel_new("direct-tcpip",
+ /* Jarno: If the channel is SSH2 port listener (server) then send
+ * forwarded-tcpip message.
+ */
+ newch = channel_new( (c->type == SSH2_CHANNEL_PORT_LISTENER) ?
+ "forwarded-tcpip" : "direct-tcpip",
SSH_CH...
2001 Feb 10
3
Protocol 2 remote forwarding patch
...channel array. All slots of the array must always be
* initialized (at least the type field); unused slots are marked with type
@@ -608,13 +610,17 @@
"connect from %.200s port %d",
c->listening_port, c->path, c->host_port,
remote_hostname, remote_port);
- newch = channel_new("direct-tcpip",
+ newch = channel_new((c->type == SSH2_CHANNEL_PORT_LISTENER) ?
+ "forwarded-tcpip" : "direct-tcpip",
SSH_CHANNEL_OPENING, newsock, newsock, -1,
c->local_window_max, c->local_maxpacket,
0, xstrdup(buf)...
2000 Aug 15
0
Experimental -R support patch for openssh client
...emote address that is listening for the
+ connection */
+ int connected_port; /* Remote port connected */
+
+ char* client_address; /* Client that connected to connected_address */
+ int client_port; /* Client port */
+
+ unsigned int client_len, connected_len;
+
+ int newch;
+ int i;
+
+ debug("ssh2 server tries to open forwarded-tcpip channel.");
+
+ /* Get rest of the packet */
+ connected_address = packet_get_string(&connected_len);
+ connected_port = packet_get_int();
+ client_address = packet_get_string(&client_len);
+ client_port = packet_get_i...
2001 Aug 24
2
[PATCH] SO_KEEPALIVE for port forwards
...15:40:43 2001
@@ -61,6 +61,9 @@
#include "canohost.h"
#include "key.h"
#include "authfd.h"
+#include "readconf.h"
+
+extern Options options;
/* Maximum number of fake X11 displays to try. */
#define MAX_DISPLAYS 1000
@@ -765,6 +768,7 @@
int newsock, newch, nextstate;
socklen_t addrlen;
char *rtype;
+ int one = 1;
if (FD_ISSET(c->sock, readset)) {
debug("Connection to port %d forwarding "
@@ -781,6 +785,13 @@
if (newsock < 0) {
error("accept: %.100s", strerror(errno));
return;
+ }
+ /* Set keepalives...
2000 Jan 19
3
AIX openssh patches
.../* Get IP address of client. */
fromlen = sizeof(from);
*** channels.c.DIST Tue Jan 11 12:16:35 2000
--- channels.c Wed Jan 19 11:01:32 2000
***************
*** 374,380 ****
channel_after_select(fd_set * readset, fd_set * writeset)
{
struct sockaddr addr;
! int addrlen, newsock, i, newch, len;
Channel *ch;
char buf[16384], *remote_hostname;
--- 374,385 ----
channel_after_select(fd_set * readset, fd_set * writeset)
{
struct sockaddr addr;
! #ifdef _AIX
! unsigned long addrlen;
! #else
! int addrlen;
! #endif
! int newsock, i, newch, len;
Channel *ch;
char bu...