]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Improve display on fd debug output
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 24 Jul 2008 11:54:57 +0000 (23:54 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 24 Jul 2008 11:54:57 +0000 (23:54 +1200)
include/IPAddress.h
src/fd.cc

index 0b7b79072402651fc4b536fc16cd2d069e60629f..def0919381d4204a523f133333531f8c0a4da382 100644 (file)
 #define s6_addr32 __u6_addr.__u6_addr32
 #endif
 
+// OpenBSD also hide v6only socket option we need for comm layer. :-(
+#if !defined(IPV6_V6ONLY) && defined(_SQUID_OPENBSD_)
+#define IPV6_V6ONLY            27 // from OpenBSD 4.3 headers. (NP: does not match other OS values for same)
+#endif
+
 /// Length of buffer that needs to be allocated to old a null-terminated IP-string
 // Yuck. But there are still structures that need it to be an 'integer constant'.
 #define MAX_IPSTRLEN  75
index bc5e1226fa0956850104b17a45aad4887c1139f3..9e190f42e2bdce0276cccee66c2c3d844055d280 100644 (file)
--- a/src/fd.cc
+++ b/src/fd.cc
@@ -269,7 +269,7 @@ fdDumpOpen(void)
         debugs(51, 1, "Open FD "<< std::left<< std::setw(10) << 
                (F->bytes_read && F->bytes_written ? "READ/WRITE" :
                 F->bytes_read ? "READING" : F->bytes_written ? "WRITING" : 
-                null_string)  <<
+                "UNSTARTED")  <<
                " "<< std::right << std::setw(4) << i  << " " << F->desc);
     }
 }