From ac22212e8d4e2af30b3a2a2c898ae4664ea796f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 11 Nov 2011 11:18:37 +0200 Subject: main/net-snmp: add some snmpd MIB implementation fixes * IP-MIB::ipNetToPhysicalPhysAddress is fixed to display data properly even after first time * swinst patch prevents a crash during snmpwalk in default install --- main/net-snmp/netsnmp-arp-netlink-fix.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 main/net-snmp/netsnmp-arp-netlink-fix.patch (limited to 'main/net-snmp/netsnmp-arp-netlink-fix.patch') diff --git a/main/net-snmp/netsnmp-arp-netlink-fix.patch b/main/net-snmp/netsnmp-arp-netlink-fix.patch new file mode 100644 index 0000000000..269f509da9 --- /dev/null +++ b/main/net-snmp/netsnmp-arp-netlink-fix.patch @@ -0,0 +1,19 @@ +--- net-snmp-5.7.1/agent/mibgroup/ip-mib/data_access/arp_netlink.c ++++ /home/fabled//net-snmp-5.7.1.patched/agent/mibgroup/ip-mib/data_access/arp_netlink.c +@@ -43,7 +43,7 @@ + if (cache_timeout != NULL) + *cache_timeout = 5; + if (cache_flags != NULL) +- *cache_flags |= NETSNMP_CACHE_RESET_TIMER_ON_USE; ++ *cache_flags |= NETSNMP_CACHE_RESET_TIMER_ON_USE | NETSNMP_CACHE_DONT_FREE_BEFORE_LOAD; + access->cache_expired = cache_expired; + + DEBUGMSGTL(("access:netlink:arp", "create arp cache\n")); +@@ -131,6 +131,7 @@ + unregister_readfd(fd); + close(fd); + access->arch_magic = NULL; ++ access->synchronized = 0; + } + return 0; + } -- cgit v1.2.3