innbind: does IPV6_V6ONLY depend on SO_REUSEADDR?
Florian Schlichting
fschlich at CIS.FU-Berlin.DE
Tue Feb 1 11:36:21 UTC 2011
Hi,
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;
-#ifdef SO_REUSEADDR
+#if defined(SO_REUSEADDR) || defined(IPV6_V6ONLY)
int flag;
#endif
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5557 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/inn-workers/attachments/20110201/c9a3fbd0/attachment.bin>
More information about the inn-workers
mailing list