> This global variable is defined in \snmplib\container.c (net-snmp 5.1.2) > line 10: static netsnmp_container *containers = NULL;
OK - Thanks. Robert is the expert on this feature, so no doubt he will correct me when I go wrong. > I am confused what this container list stores. As I understand it, the container mechanism is built around the idea of "types" of container (or "container factories"). So you might have one type of container that's built using simple linked lists, one that's built using binary trees, one that's built using hash buckets, and one that returns entries at random. The behaviour of each of these container types is constant, regardless of the data that's actually held by a given example of it. So when you construct a new data store, you'll specify which of the defined container types ("linked_list", "table_container", "nonexistent_hash" or "random") you want to use, and the library will return an appropriate container, with the relevant lookup routines, etc. The global variable 'containers' is used to hold the list of these "container factories" - so that an appropriate example can be returned when required. Is that reasonably accurate, Robert? Dave ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ 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