Wes> I believe the fix that I thought Dave? wrote actually cached the names Wes> and used previously cached numbers based on interface names.
Yup. Robert> I think the SIOCGIFINDEX method is probably cleaner Probably, though of course it won't necessarily be available across all architectures. One advantage of caching the interface name/index mapping is that this *would* be available across the board. Robert> (and it what the ipAddr table was using to determine ifIndexes, Roebrt> which was causing a numbering inconsistency). I'd suggest that however index values are determined, it should be done in *ONE* place - probably a utility routine specific to that purpose. Anywhere else that needs to determine an interface index value (or map from an index value to a name) should use this utility routine. Dave ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
