diff options
author | Timo Teräs <timo.teras@iki.fi> | 2011-11-11 11:18:37 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2011-11-11 11:18:37 +0200 |
commit | ac22212e8d4e2af30b3a2a2c898ae4664ea796f6 (patch) | |
tree | 3a57548a2367592fa3bcddcf8d64320e004488be /main/net-snmp/netsnmp-arp-netlink-fix.patch | |
parent | 0389c0810effbe38de6d05d68e3ab6bb08a8aaef (diff) | |
download | aports-ac22212e8d4e2af30b3a2a2c898ae4664ea796f6.tar.bz2 aports-ac22212e8d4e2af30b3a2a2c898ae4664ea796f6.tar.xz |
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
Diffstat (limited to 'main/net-snmp/netsnmp-arp-netlink-fix.patch')
-rw-r--r-- | main/net-snmp/netsnmp-arp-netlink-fix.patch | 19 |
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; + } |