Bugzilla – Attachment 1382 Details for
Bug 1392
Systems with IPV6_V6ONLY = 0 have unexpected behavior
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
turn on IPV6_V6ONLY in sshd before binding for systems that support it
sshd.c.patch (text/plain), 770 bytes, created by
Gordon Stratton
on 2007-11-17 20:47:15 AEDT
(
hide
)
Description:
turn on IPV6_V6ONLY in sshd before binding for systems that support it
Filename:
MIME Type:
Creator:
Gordon Stratton
Created:
2007-11-17 20:47:15 AEDT
Size:
770 bytes
patch
obsolete
>--- sshd.c 2007-06-05 01:22:32.000000000 -0700 >+++ sshd.c.new 2007-11-17 00:07:08.000000000 -0800 >@@ -971,12 +971,27 @@ > } > /* > * Set socket options. >+ */ >+ >+ /* > * Allow local port reuse in TIME_WAIT. > */ > if (setsockopt(listen_sock, SOL_SOCKET, SO_REUSEADDR, > &on, sizeof(on)) == -1) > error("setsockopt SO_REUSEADDR: %s", strerror(errno)); > >+#ifdef IPV6_V6ONLY >+ if (ai->ai_family == AF_INET6) { >+ /* >+ * Only communicate in IPv6 over AF_INET6 sockets. >+ */ >+ if (setsockopt(listen_sock, IPPROTO_IPV6, IPV6_V6ONLY, >+ &on, sizeof(on)) == -1) >+ error("setsockopt IPV6_V6ONLY: %s", >+ strerror(errno)); >+ } >+#endif >+ > debug("Bind to port %s on %s.", strport, ntop); > > /* Bind the socket to the desired port. */
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 1392
: 1382