ASF Bugzilla – Attachment 33342 Details for
Bug 58725
[patch] add IP_FREEBIND functionality to allow apache httpd to bind to addresses not owned by any interface
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
unified diff patch to add APR_FREEBIND
freebind.patch (text/plain), 1007 bytes, created by
Ashley GC
on 2015-12-12 20:08:49 UTC
(
hide
)
Description:
unified diff patch to add APR_FREEBIND
Filename:
MIME Type:
Creator:
Ashley GC
Created:
2015-12-12 20:08:49 UTC
Size:
1007 bytes
patch
obsolete
>--- ../apr-1.5.2/include/apr_network_io.h 2013-12-06 18:10:34.000000000 +0100 >+++ include/apr_network_io.h 2015-12-12 18:19:08.436069814 +0100 >@@ -101,6 +101,9 @@ > */ > #define APR_SO_BROADCAST 65536 /**< Allow broadcast > */ >+#define APR_FREEBIND 131072 /**< Allow binding to addresses not owned >+ * by any interface >+ */ > > /** @} */ > >--- ../apr-1.5.2/network_io/unix/sockopt.c 2012-11-07 17:10:09.000000000 +0100 >+++ network_io/unix/sockopt.c 2015-12-12 18:22:12.166067049 +0100 >@@ -330,6 +330,13 @@ > return APR_ENOTIMPL; > #endif > break; >+ case APR_FREEBIND: >+ if (setsockopt(sock->socketdes, SOL_IP, IP_FREEBIND, >+ (void *)&one, sizeof(int)) == -1) { >+ return errno; >+ } >+ apr_set_option(sock, APR_FREEBIND, on); >+ break; > default: > return APR_EINVAL; > }
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 58725
: 33342 |
33592