Created attachment 33342 [details] unified diff patch to add APR_FREEBIND I'd like apache httpd to be able to bind to addresses not owned by any interface, and this requires a call to setsockopt with the IP_FREEBIND option. Attached is a patch (unified diff) for APR which adds a new APR_FREEBIND option and an extra case in apr_socket_opt_set. For extra explanation, there is this: https://serverfault.com/questions/742206/how-can-apache-be-configured-to-listen-on-a-single-ipv6-address-which-does-not-b
Created attachment 33592 [details] Improved patch returning APR_ENOTIMPL if IP_FREEBIND not available I'm not sure if we need to touch network_io for win32 or os2 too... So far os2 would return APR_SUCCESS and do nothing - but it has the same behaviour for APR_INCOMPLETE_READ for example. Win32 would return APR_EINVAL, but it also does that for APR_INCOMPLETE_READ or others flags which it doesn't handle.
Committed as APR_SO_FREEBIND in r1733451 and later - thanks!
Thanks, all. I'll test it as soon as I can.