blob: 269f509da913ec9bc658500c4dcd182dccf52adc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;
}
|