On 07/01/12 11:02, Vincent Bernat wrote:

> 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).


Are you familiar with libnl (http://www.infradead.org/~tgr/libnl/) ?
libnl is distributed under the LGPL license so it should be safe to use
that library in any project, including the BSD-licensed Net-SNMP
project. Every Linux distribution I'm familiar with includes that library.

Bart.

------------------------------------------------------------------------------
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

Reply via email to