aboutsummaryrefslogtreecommitdiffstats
path: root/main/net-snmp/netsnmp-arp-netlink-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/net-snmp/netsnmp-arp-netlink-fix.patch')
-rw-r--r--main/net-snmp/netsnmp-arp-netlink-fix.patch19
1 files changed, 19 insertions, 0 deletions
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;
+ }