Bugzilla – Attachment 97 Details for
Bug 164
X-forwarding when connecting to an IPv6-enabled host doesn't work.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Try to set IPV6_V6ONLY if available. Open ::1 and 127.0.0.1 if x11_use_localhost is set.
openssh-x11-with-ipv6.patch (text/plain), 764 bytes, created by
YOSHIFUJI Hideaki
on 2002-05-18 09:44:56 AEST
(
hide
)
Description:
Try to set IPV6_V6ONLY if available. Open ::1 and 127.0.0.1 if x11_use_localhost is set.
Filename:
MIME Type:
Creator:
YOSHIFUJI Hideaki
Created:
2002-05-18 09:44:56 AEST
Size:
764 bytes
patch
obsolete
>--- openssh-3.2.2p1/channels.c Tue Apr 23 20:09:46 2002 >+++ openssh-3.2.2p1-fix/channels.c Sat May 18 08:31:36 2002 >@@ -2374,6 +2374,13 @@ > continue; > } > } >+#ifdef IPV6_V6ONLY >+ if (ai->ai_family == AF_INET6) { >+ int on = 1; >+ if (setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on)) < 0) >+ debug("x11_create_display_inet: setsockopt(IPV6_V6ONLY) failed."); >+ } >+#endif > if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { > debug("bind port %d: %.100s", port, strerror(errno)); > close(sock); >@@ -2392,7 +2399,12 @@ > if (num_socks == NUM_SOCKS) > break; > #else >- break; >+ if (x11_use_localhost) { >+ if (num_socks == NUM_SOCKS) >+ break; >+ } else { >+ break; >+ } > #endif > } > freeaddrinfo(aitop);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 164
:
41
|
42
|
43
| 97 |
160