On Mon, 02 Jul 2012 07:57:47 +0000
Bart Van Assche <bvanass...@acm.org> wrote:

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

I am plan to remove the one one use of libnl from net-snmp!
The reason is that libnl caching doesn't help net-snmp and the
various versions of the API are different between different versions
of libnl.

The best netlink API for net-snmp would be libmnl, but not
sure if adding another dependency would be a good thing. It would only
be good if the existing code could be removed. Maintaining two versions
of code is never good.


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