search for: channel_list_rport_listen

Displaying 1 result from an estimated 1 matches for "channel_list_rport_listen".

2013 May 15
1
[PATCH] Expose remote forwarding ports as environment variable
...openssh-6.2p1.patched/channels.c --- openssh-6.2p1/channels.c 2012-12-02 23:50:55.000000000 +0100 +++ openssh-6.2p1.patched/channels.c 2013-05-15 23:26:17.119989982 +0200 @@ -2865,6 +2865,52 @@ return success; } +/* + * Write list of remote forwarding ports into an existing buffer + */ +void +channel_list_rport_listener(char *buf, size_t size) +{ + u_int i, j, num_ports = 0; + int offset = 0; + int *ports; + int skip; + + ports = xcalloc(channels_alloc, sizeof(int)); + + for (i = 0; i < channels_alloc; i++) { + skip = 0; + Channel *c = channels[i]; + if (c == NULL || c->type != SSH_CHANNEL_RPORT_LISTENE...