Bugzilla – Attachment 2763 Details for
Bug 2512
Use IP_FREEBIND if available for sshd listening socket
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
openssh-6.6.1p1-freebind.patch (text/plain), 635 bytes, created by
Jakub Jelen
on 2015-12-09 01:04:36 AEDT
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Jakub Jelen
Created:
2015-12-09 01:04:36 AEDT
Size:
635 bytes
patch
obsolete
>diff --git a/sshd.c b/sshd.c >index c432dc8..30bb036 100644 >--- a/sshd.c >+++ b/sshd.c >@@ -1193,6 +1193,16 @@ server_listen(void) > &on, sizeof(on)) == -1) > error("setsockopt SO_REUSEADDR: %s", strerror(errno)); > >+#ifdef IP_FREEBIND >+ /* >+ * Allow to bind nonlocal address or the address that does not >+ * yet exists. (since Linux 2.4) >+ */ >+ if (setsockopt(listen_sock, IPPROTO_IP, IP_FREEBIND, >+ &on, sizeof(on)) == -1) >+ error("setsockopt IP_FREEBIND: %s", strerror(errno)); >+#endif >+ > /* Only communicate in IPv6 over AF_INET6 sockets. */ > if (ai->ai_family == AF_INET6) > sock_set_v6only(listen_sock);
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 2512
: 2763