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

index cb533ac1d2990bf3997e3e51ad0e05cdb2d0d1a6..b894a127429df2e99684d2d2c4afdb25e313cdd2 100644 (file)
@@ -371,7 +371,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!");