Hi! NetSNMP contains several use of a netlink socket to gather information from the kernel for Linux: agent/mibgroup/etherlike-mib/data_access/dot3stats_linux.c agent/mibgroup/if-mib/data_access/interface_linux.c agent/mibgroup/ip-mib/data_access/arp_netlink.c agent/mibgroup/ip-mib/data_access/defaultrouter_linux.c agent/mibgroup/ip-mib/data_access/ipaddress_linux.c
Moreover, dot3stats_linux.c contains functions extract from "libnetlink" (a "library" included with iproute package). I am about to add a third use of netlink (to get linkup/linkdown traps without using DISMAN-EVENT). We should factor this code in some way. How should this be done? Can the code be moved inside snmplib/? -- Program defensively. - The Elements of Programming Style (Kernighan & Plauger) ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders