It seems that the udpTable is not getting populated on the sf compile farm
nightly builds. I did some debugging, and have some fixes. However, the fixes
are completely contrary to the current code comments, so someone needs to look
into it further to see if the fixes will break other systems. Tested on :
SunOS sparc-solaris1 5.9 Generic_112233-03 sun4u sparc SUNW,Ultra-60
1) while looping over entries, we find this:
- - snip - -
/*
* Not interested in 'idle' entries, apparently....
*/
if (entry.udpEntryInfo.ue_state != MIB2_UDP_idle) {
- - snip - -
On the test system, all idle state entries have an address and port of 0.
Reversing this test to '==' gets me lots of ports (including the one the agent
is running on).
2) regarding order, we find
- - snip - -
#if defined (WIN32) || defined (cygwin) || defined (solaris2)
iinfo->flags |= NETSNMP_ITERATOR_FLAG_SORTED;
#endif /* WIN32 || cygwin || solaris2 */
- - snip - -
and later
- - snip - -
/*
* Build up a linked list copy of the getMibstat results
* Note that since getMibstat returns rows in sorted order,
* we need to retain this order while building the list
* so new entries are added onto the end of the list.
*/
- - snip - -
However, the entries on the test system were *not* sorted, and the current
code resulted in a truncated table. Removing the SORTED flag fixed the
problem, and all entries were reported.
Change #2 is completely safe, only resulting in some possible inefficiency on
systems that actually are sorted.
Change #1, however, is another matter entirely. It might be the case that some
kernel version needs to be tested to determine correct state(s) to include or
exclude.
These fixes have been checked in so that the nightly builds work. I strongly
suggest those with access to other versions of solaris test these changes.
--
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 the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders