[Bug 2143] X11 forwarding for ipv4 is broken when ipv6 is disabled on the loopback interface

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Mon Sep 16 03:45:52 EST 2013


https://bugzilla.mindrot.org/show_bug.cgi?id=2143

Andrey Borzenkov <arvidjaar at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |arvidjaar at gmail.com

--- Comment #2 from Andrey Borzenkov <arvidjaar at gmail.com> ---
Created attachment 2335
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2335&action=edit
Suggested patch to fix X11 forwarding with IPv6 disabled

The problem is that getaddrinfo() without hints flags returns both IPv4
and IPv6 localhost addresses. There are two possible fixes:

1. add AI_ADDRCONFIG. This will work around this bug if IPv6 is
globally disabled, because no interface will have IPv6 address, but
still fails in corner case when some interface does have IPv6 but
localhost not.

2. Simply ignore this error. That is what generic forwarding does
anyway.

Attached patch implements #2. It tries to limit cases when we ignore
error to exactly IPv6 and address not available, but may be we can
simplify it and simply follow generic forwarding example.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list