bugzilla-daemon at mindrot.org
2002-Sep-24 01:37 UTC
[Bug 401] ipv4 mapped address (ipv4 in ipv6) and ipv6 support fix
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 Comments From yoshfuji at linux-ipv6.org 2002-09-24 11:36 ------- To clarify: - one is ipv4 mapped issue - another is ipv6 sin6_scope_id issue. - with latter one, we do not able to accept ipv4 connection via ipv6 socket using "ipv4-mapped address" feature on some platforms. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2002-Sep-25 04:34 UTC
[Bug 401] ipv4 mapped address (ipv4 in ipv6) and ipv6 support fix
bugzilla.mindrot.org/show_bug.cgi?id=401 ------- Additional Comments From djm at mindrot.org 2002-09-25 14:33 ------- I am not sure I understand this patch completely - I can't see anything relating to scope-id. is the scope-id incompatibility because of different sized sockaddr_in6 structure lengths? How does the problem manifest in unpatched OpenSSH? ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2002-Sep-25 05:04 UTC
[Bug 401] ipv4 mapped address (ipv4 in ipv6) and ipv6 support fix
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.
bugzilla-daemon at mindrot.org
2002-Sep-25 05:21 UTC
[Bug 401] ipv4 mapped address (ipv4 in ipv6) and ipv6 support fix
bugzilla.mindrot.org/show_bug.cgi?id=401 ------- Additional Comments From djm at mindrot.org 2002-09-25 15:21 ------- OK - I understand now. We generally try to "#ifdef (platform)" in portable OpenSSH. Would you patch work if it were changed to do something like: if (addr.ss_family == AF_INET6) fromlen = MIN(fromlen, sizeof(struct sockaddr_in6)); ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.