While working w/a user in the IRC channel today, we found a workaround for this
bug, which basically involved increasing a buffer so that it can hold all ip
addresses. Since we can't predict the number of interfaces (they had around
250, default buffer hold 20), I don't like the idea of just making the buffer
really large.

I think there is a logic bug somewhere, because running the agent with
-DmibII/ip reveals that the first loop in var_ipAddrEntry calls getMibstat the
correct number of times, but every subsequent call only looped 19. The code
looks like it tries to deal with having to re-use the buffer for large data
sets, so I'm thinking there is a subtle bug somewhere that limits later calls.
Fixing that bug would be cleaner than simply increasing the buffer.

The IRC user was on a 64 bit machine. Not sure about the original bug
submitter.

If any solaris folks out there could add some dummy virtual interfaces/IPs to
go over the buffer size limit of 20 could verify if the problem exists on 32
bit, that would be helpful.

Any developers on solaris that can try and debug this stuff (in
agent/mibgroup/kernel_solaris.c:getMibstat, called from var_ipAddrEntry) would
be greatly appreciated.

-- 
NOTE: messages sent directly to me, instead of the lists, will be deleted
      unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to