Re: network interface/address API on FreeBSD

2015-03-02 Thread Niels Baggesen
Den 27-02-2015 kl. 22:22 skrev Gleb Smirnoff:
> Now time for net-snmp, which isn't piece of cake. And I'd like
> to get it done properly, and not to store a patch in FreeBSD port
> for ages, but to integrate the patch right in the main net-snmp repo.
> So, I'm asking for your help here. Waiting for a net-snmp developer
> to respond to this email, so that we can work on the problem together.
>
> P.S. This is doable, since native FreeBSD SNMP daemon implements
>   mibII without utilizing kvm(3). :)

A lot of this changed between 5.7.2 and 5.7.3 to use sysctl interfaces.

With the current 5.7.3 release, and configured with 
--enable-mfd-rewrites, I think the only parts that uses kvm interfaces 
are the old and deprecated IPV6-MIB implementations inmibII/ipv6.c, now 
superseeded by the INET-XXX-MIB versions, and the hrSWRunTable that uses 
kvm_getargv and kvm_getprocs.

/Niels

-- 
Niels Baggesen -- @home -- Århus -- Denmark -- ni...@baggesen.net
The purpose of computing is insight, not numbers  --  R W Hamming

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: net-snmp5.7.3 snmpd agent hangs

2015-03-02 Thread Niels Baggesen
Den 26-02-2015 kl. 07:39 skrev a1984:
> When I checked log then there were repeated calls infinitely times to
> build_oid_noalloc and it was continuously going on till i kill agent.
>
> trace: build_oid_noalloc(): mib.c, 3774:
> build_oid_noalloc: generated: iso.3.6.1.4.1.5380.1.12.1.3.1.2.0.0

enterprises.5380 is not our code. According to IANA it belons to a 
company called CDOT.

Could you attach a debugger to the agent when it is hung like this and 
give us a traceback?

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders