]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 4509: EUI compile error on NetBSD
authorLeonardo Taccari <>
Fri, 6 May 2016 06:28:50 +0000 (18:28 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 6 May 2016 06:28:50 +0000 (18:28 +1200)
src/eui/Eui48.cc

index c1e87fe509ee1acb16e083ec9567691ff9b12013..ea7971df09cb64fe15a6a5d5e66337d966ac4d57 100644 (file)
@@ -375,7 +375,11 @@ Eui::Eui48::lookup(const Ip::Address &c)
 
     mib[4] = NET_RT_FLAGS;
 
+#if defined(RTF_LLDATA)
+    mib[5] = RTF_LLDATA;
+#else
     mib[5] = RTF_LLINFO;
+#endif
 
     if (sysctl(mib, 6, NULL, &needed, NULL, 0) < 0) {
         debugs(28, DBG_CRITICAL, "Can't estimate ARP table size!");