]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2421: ipv6 on OpenBSD
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 22 Jul 2008 09:57:19 +0000 (21:57 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 22 Jul 2008 09:57:19 +0000 (21:57 +1200)
OpenBSD 4.3 shares the old FreeBSD behavior of limiting the 'non-standard'
(according to them) in6_addr.s6_* fields to only Kernel-visible.
It is in fact non-RFC usage, becoming standard via common use.

include/IPAddress.h

index 5f86819fe224bfedf1ff00ecfba8b131f056f376..0b7b79072402651fc4b536fc16cd2d069e60629f 100644 (file)
@@ -69,8 +69,9 @@
  *   This OS has at least one version that defines these as private
  *   kernel macros commented as being 'non-standard'.
  *   We need to use them, much nicer than the OS-provided __u*_*[]
+ * UPDATE: OpenBSD 4.3 has the same.
  */
-#if USE_IPV6 && defined(_SQUID_FREEBSD_)
+#if USE_IPV6 && ( defined(_SQUID_FREEBSD_) || defined(_SQUID_OPENBSD_) )
 #define s6_addr8  __u6_addr.__u6_addr8
 #define s6_addr16 __u6_addr.__u6_addr16
 #define s6_addr32 __u6_addr.__u6_addr32