> My list is ordered, but there seems no way for the iterator to
> use this information.
Note that with 5.1 and above, you can indicate this when registering
the table initially, and the iterator will cut short the searching
appropriately.
Try
netsnmp_iterator_info *iinfo =
SNMP_MALLOC_TYPEDEF(netsnmp_iterator_info);
+ iinfo->flags |= NETSNMP_ITERATOR_FLAG_SORTED;
It's still not the most efficient helper, but it should help.
There's certainly no need to re-implement this feature.
Dave
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users