❦  2 juillet 2012 09:57 CEST, Bart Van Assche <[email protected]> :

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

Would it be OK to introduce a new dependency in NetSNMP? Should we go
for libnl3 (not available everywhere, but current stable version) or for
libnl1 (widely available, not maintained anymore but used by many
projects)?

I can do the conversion of actual modules.
-- 
Use free-form input when possible.
            - 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to