[Bug 401] ipv4 mapped address (ipv4 in ipv6) and ipv6 support fix

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Sep 25 15:04:33 EST 2002


http://bugzilla.mindrot.org/show_bug.cgi?id=401





------- Additional Comments From yoshfuji at linux-ipv6.org  2002-09-25 15:04 -------
>is the scope-id incompatibility because of different sized
>sockaddr_in6 structure lengths?

Yes, if you try to run sshd with ipv6 support with glibc-2.2 on linux-2.2,
sshd disconnects any connections.  This is because
 - kernel gives sshd sockaddr_in6 without sin6_scope_id (size is 24 bytes)
 - glibc-2.2 expects sockaddr_in6 is 28 bytes long and 
   getnameinfo() failed because length is different than one expected.


>How does the problem manifest in unpatched OpenSSH?
|# sshd -6 -d
|:
|debug1: Bind to port 22 on ::.
|Server listening on :: port 22.
|Generating 768 bit RSA key.
|RSA key generation complete.
|debug1: Server will not fork when running in debugging mode.

When I connect to this sshd, sshd disconnects immediately.

|% ssh -v 127.0.0.1 
:
|debug1: Connecting to 127.0.0.1 [127.0.0.1] port 22.
|debug1: Connection established.
:
|ssh_exchange_identification: Connection closed by remote host
|debug1: Calling cleanup 0x8064174(0x0)

sshd debug messages are:

|get_sock_port: getnameinfo NI_NUMERICSERV failed
|debug1: Calling cleanup 0x806be4c(0x0)



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the openssh-unix-dev mailing list