Displaying 3 results from an estimated 3 matches for "allocated_listen_port".
2011 Sep 08
1
Dynamic port remote listener - a BUG?
...on: channel_setup_fwd_listener
/*
* listen_port == 0 requests a dynamically allocated port -
* record what we got.
*/
if (type == SSH_CHANNEL_RPORT_LISTENER && listen_port == 0
&&
allocated_listen_port != NULL &&
*allocated_listen_port == 0) {
*allocated_listen_port = get_sock_port(sock, 1);
debug("Allocated listen port %d",
*allocated_listen_port);
}...
2015 Nov 27
2
[Bug 2509] New: Unexpected change in tcpip-forward reply message in OpenSSH 6.8
...a non-zero port number is requested. The associated code
for this in server_input_global_request() in server loop.c is:
if (want_reply) {
packet_start(success ?
SSH2_MSG_REQUEST_SUCCESS :
SSH2_MSG_REQUEST_FAILURE);
if (success && allocated_listen_port > 0)
packet_put_int(allocated_listen_port);
packet_send();
packet_write_wait();
}
Note the test for "allocated_listen_port > 0". However, the new code in
OpenSSH 6.8 does the following:
if ((r = sshbuf...
2009 Mar 16
2
openssh 5.2p1 fails to build on IRIX 5.3
...; undefined; reoccurrences
will not be reported.
lport_p = &((struct sockaddr_in *)ai->ai_addr)->
^
cfe: Error: channels.c, line 2562: 'lport_p' undefined; reoccurrences
will not be reported.
*lport_p = (*allocated_listen_port) ;
-^
make: *** [channels.o] Error 1
IRIX 5.3 does not define in_port_t in <netinet/in.h> instead it uses
ushort for sockaddr_in.sin_port.
In other parts of openssh users of sin_port either use ushort or
u_int16_t instead of in_port_t.
The second problem has been...