search for: get_sock_port

Displaying 11 results from an estimated 11 matches for "get_sock_port".

2015 Feb 26
4
Call for testing: OpenSSH 6.8
...I noticed this error log spam on the tinderbox when looking at one of the > failures. It happens with Unix domain socket forwarding is requested: > > debug1: channel 1: new [forwarded-streamlocal at openssh.com] > get_socket_address: getnameinfo 1 failed: ai_family not supported > get_sock_port: getnameinfo NI_NUMERICSERV failed: ai_family not supported That's strange, because we do: if (addr.ss_family == AF_UNIX) { /* Get the Unix domain socket path. */ return xstrdup(((struct sockaddr_un *)&addr)->sun_path); } so AF_UNIX shou...
2011 Sep 08
1
Dynamic port remote listener - a BUG?
...* 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); } /* Allocate a channel number for the socket. */ c = channel_new("port listener", type, sock, sock, -1,...
2014 Feb 12
5
[Bug 2200] New: ssh -W causes "getsockname failed: Bad file descriptor" errors
...Reporter: cjwatson at debian.org Marco d'Itri reports in http://bugs.debian.org/738693 that "ssh -W" has started causing "getsockname failed: Bad file descriptor" errors; these are new in 6.5p1 and reported via error(). I think this was triggered by the new calls to get_sock_port from port_open_helper in https://anongit.mindrot.org/openssh.git/commit/?id=4def184; gdb shows that c->sock is -1 here. Full -vvv output in the Debian bug; relevant-looking excerpt: debug3: ssh_init_stdio_forwarding: server2.example.net:22 debug1: channel_connect_stdio_fwd server2.example.net:...
2003 Apr 04
5
[Bug 533] sshd failure on Tru64 (OSF/1) 5.1a
...host key: #2 type 2 DSA debug1: Bind to port 22 on ::. Server listening on :: port 22. debug1: Bind to port 22 on 0.0.0.0. Bind to port 22 on 0.0.0.0 failed: Address already in use. Generating 768 bit RSA key. RSA key generation complete. debug1: Server will not fork when running in debugging mode. get_sock_port: getnameinfo NI_NUMERICSERV failed debug1: Calling cleanup 0x12005c9c0(0x0) Port 22 is open and there is not another copy of sshd running. 3.5p1 works fine Os: Tru64 5.1a pk3 Platform: GS160, Alpha EV6.8 Generic install No options were passed to the configure process. Please let me know if I...
2001 Jun 07
0
sshd failing to allow connections.
HI Guys, On my Slackware-current firewall I cannot ssh into it. The tail of the syslog is :- Jun 1 10:56:15 firefly sshd[22176]: fatal: get_sock_port: getnameinfo NI_NUMERICSERV failed any ideas why I get this error? Although slack-current includes openssh I've actually built this one from source ( and openssl too ) in case it was a config issue with the slackware -current release (which is FYI actually the very lastest stuff - i.e. what wi...
2002 Sep 24
3
[Bug 401] ipv4 mapped address (ipv4 in ipv6) and ipv6 support fix
http://bugzilla.mindrot.org/show_bug.cgi?id=401 yoshfuji at linux-ipv6.org changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|misc. ipv4-mapped address |ipv4 mapped address (ipv4 in |support fix |ipv6) and ipv6 support fix ------- Additional
2009 Nov 23
0
[PATCH] Bluetooth support.
...= (void *)&addr; + char ba[28]; + + sprintf(ba, "Bluetooth:"); + ba2str(&from_rc->rc_bdaddr, ba + 10); + return xstrdup(ba); + } +#endif /* Work around Linux IPv6 weirdness */ if (addr.ss_family == AF_INET6) addrlen = sizeof(struct sockaddr_in6); @@ -375,6 +400,13 @@ get_sock_port(int sock, int local) } } +#ifdef HAVE_BLUETOOTH + if (from.ss_family == AF_BLUETOOTH) { + struct sockaddr_rc *from_rc = (void *)&from; + + return from_rc->rc_channel; + } +#endif /* Work around Linux IPv6 weirdness */ if (from.ss_family == AF_INET6) fromlen = sizeof(struct so...
2004 Aug 25
6
sshd 3.9p1 under Reliant Unix 5.45: getpeername: Operation not supported on transport endpoint
The following is special to sshd 3.9p1 under ReliantUnix 5.45. It does not occur under ReliantUnix 5.43 nor under Solaris 5.8: `pwd`/sshd-3.9 -e -D -d -d -d Now connecting from outside [...] debug1: inetd sockets after dupping: 3, 3 debug1: get_port() calls get_sock_port(3) debug1: getpeername failed: Operation not supported on transport endpoint lsof proves FD 3 is an established TCP connection. It does not occur when sshd is started with -r to prevent usage of the new re-exec mechanism. I'm pretty sure it's something weird with ReliantUnix 5.45 co...
2001 Feb 01
0
warnings on aix325
...thfile.c:494: warning: unsigned int format, long unsigned int arg (arg 2) canohost.c: In function `get_remote_hostname': canohost.c:39: warning: implicit declaration of function `getpeername' canohost.c:150: warning: implicit declaration of function `getsockopt' canohost.c: In function `get_sock_port': canohost.c:247: warning: implicit declaration of function `getsockname' channels.c: In function `channel_free': channels.c:318: warning: implicit declaration of function `shutdown' channels.c: In function `channel_post_x11_listener': channels.c:543: warning: implicit declarati...
2013 Aug 31
11
[Bug 2147] New: OpenSSH remote forwarding of dynamic ports doesn't work when you create more than one
...values passed in the original SSH_MSG_GLOBAL_REQUEST and everything works fine. I have attached a patch which can be applied to OpenSSH 6.2p2 which fixes this problem. I would appreciate it if you would consider including it in a future release. One minor ugliness here is that I had to use "get_sock_port()" instead of get_local_port(), as get_local_port() doesn't take a socket as an argument the way get_local_ipaddr() does and there's no equivalent function under another name. Cleaning this up would impact other files, though, and I wanted to keep the diff as clean as possible. -- Yo...
2015 Feb 19
34
Call for testing: OpenSSH 6.8
Hi, OpenSSH 6.8 is almost ready for release, so we would appreciate testing on as many platforms and systems as possible. This release contains some substantial new features and a number of bugfixes. Snapshot releases for portable OpenSSH are available from http://www.mindrot.org/openssh_snap/ The OpenBSD version is available in CVS HEAD: http://www.openbsd.org/anoncvs.html Portable OpenSSH is