Hi all, I'm currently using Net-SNMP snmpd to export my Linux kernel's ARP tables. I'm doing real time lookups on IP to ARP mapping, and it looks like the snmpd caches the kernel's ARP table for a while resulting sometimes in "not found" IP requests.
Looking at agent/mibgroup/ip-mib/data_access/arp_linux.c it's doing snapshot dumps from the kernels tables, and apparently higher layers are doing the caching. Now, I'm asking which is better, and if there's any existing example code (so I can fix the arp_linux.c): 1) Dynamically listen Linux netlink events and add/delete/update entries on the snmpd's copy of ARP table? -or- 2) On request to specific IP-address (specific MIB entry with IP address part of the request OID), request the kernels for up-to-date information on that specific IP-address and dynamically create the result? Any ideas? Cheers, - Timo ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
