Re: name and name_loc
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 05/02/2008, Devvrat Tripathi <[email protected]> wrote: > I was going through the netsnmp_variable_list structure and i found two > elements called name and name_loc. I cannot understand what is the > difference between them. Which one of them is the oid of that variable. 'name' is a pointer to the OID array. This is the only one that you need to be concerned about. 'name_loc' is an internal buffer, used for storing "short" OIDs (which is the bulk of them in normal usage). This saves the overhead of dynamically allocating separate memory every time a varbind OID is set up. This is handled automatically by the snmp_set_var_objid() routine. >In general while defining any oid we do > static oid some_oid[]={1.3.6.} > This value is present in name or name_loc field? 'name' You shouldn't look at the 'name_loc' field at all. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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