innbind: does IPV6_V6ONLY depend on SO_REUSEADDR?

Florian Schlichting fschlich at CIS.FU-Berlin.DE
Tue Feb 1 11:36:21 UTC 2011


looking at innbind, I was wondering if it is safe to assume that when
SO_REUSEADDR is defined, IPV6_V6ONLY will *always* be defined as well?

Otherwise, a minor change might be useful:

--- a/backends/innbind.c
+++ b/backends/innbind.c
@@ -212,7 +212,7 @@ static void
 create_socket(struct binding *binding, const char *spec)
     int fd;
+#if defined(SO_REUSEADDR) || defined(IPV6_V6ONLY)
     int flag;

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5557 bytes
Desc: not available
URL: <>

More information about the inn-workers mailing list