tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: RTM_LLINFO removal breaks net-snmp package build



On Tue, Apr 12, 2016 at 6:22 AM, Dave Tyson <dtyson%anduin.org.uk@localhost> wrote:
> Just tried to compile net-snmp under a recent current amd64 snapshot and its
> failing to compile arp_sysctl.c as RTM_LLINFO is undeclared.

You need a tweak like the below patch. It's the same as the tweak
for RTF_LLINFO in ./work/net-snmp-5.7.3/agent/mibgroup/mibII/at.c.

Thanks,
  ozaki-r

diff -u work/net-snmp-5.7.3/agent/mibgroup/ip-mib/data_access/arp_sysctl.c.orig
work/net-snmp-5.7.3/agent/mibgroup/ip-mib/data_access/arp_sysctl.c
--- work/net-snmp-5.7.3/agent/mibgroup/ip-mib/data_access/arp_sysctl.c.orig
    2016-04-12 17:21:13.000000000 +0900
+++ work/net-snmp-5.7.3/agent/mibgroup/ip-mib/data_access/arp_sysctl.c
 2016-04-12 17:19:17.000000000 +0900
@@ -129,7 +129,11 @@
     mib[2] = 0;
     mib[3] = AF_INET;
     mib[4] = NET_RT_FLAGS;
+#ifdef RTF_LLINFO
     mib[5] = RTF_LLINFO;
+#else
+    mib[5] = 0;
+#endif

     err = 0;
     buf = newbuf = NULL;
@@ -236,7 +240,11 @@
     mib[2] = 0;
     mib[3] = AF_INET6;
     mib[4] = NET_RT_FLAGS;
+#ifdef RTF_LLINFO
     mib[5] = RTF_LLINFO;
+#else
+    mib[5] = 0;
+#endif

     err = 0;
     buf = newbuf = NULL;


Home | Main Index | Thread Index | Old Index