Bugzilla – Attachment 1695 Details for
Bug 1648
Fix IPV6_V6ONLY for -L with -g
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix following the current openssh style.
openssh-cvs-ipv6-g-L.patch (text/plain), 935 bytes, created by
Jan Kratochvil
on 2009-09-13 23:58:45 AEST
(
hide
)
Description:
Fix following the current openssh style.
Filename:
MIME Type:
Creator:
Jan Kratochvil
Created:
2009-09-13 23:58:45 AEST
Size:
935 bytes
patch
obsolete
>--- channels.c 28 Aug 2009 01:02:37 -0000 1.285 >+++ channels.c 13 Sep 2009 13:51:00 -0000 >@@ -2467,7 +2467,7 @@ channel_setup_fwd_listener(int type, con > const char *host_to_connect, u_short port_to_connect, int gateway_ports) > { > Channel *c; >- int sock, r, success = 0, wildcard = 0, is_client; >+ int sock, r, success = 0, wildcard = 0, is_client, on = 1; > struct addrinfo hints, *ai, *aitop; > const char *host, *addr; > char ntop[NI_MAXHOST], strport[NI_MAXSERV]; >@@ -2577,6 +2577,16 @@ channel_setup_fwd_listener(int type, con > } > > channel_set_reuseaddr(sock); >+ >+#ifdef IPV6_V6ONLY >+ /* Only communicate in IPv6 over AF_INET6 sockets. */ >+ if (ai->ai_family == AF_INET6) { >+ if (setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, >+ &on, sizeof(on)) == -1) >+ error("setsockopt IPV6_V6ONLY: %s", >+ strerror(errno)); >+ } >+#endif > > debug("Local forwarding listening on %s port %s.", > ntop, strport);
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 1648
:
1695
|
1720