From 3e493af8bb1651231d55f3c34111502ebb59da58 Mon Sep 17 00:00:00 2001 From: Leonardo Taccari <> Date: Fri, 6 May 2016 18:28:50 +1200 Subject: [PATCH] Bug 4509: EUI compile error on NetBSD --- src/eui/Eui48.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/eui/Eui48.cc b/src/eui/Eui48.cc index c1e87fe509..ea7971df09 100644 --- a/src/eui/Eui48.cc +++ b/src/eui/Eui48.cc @@ -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!"); -- 2.47.2