One extra question related to this one, when I registered
the index with:
netsnmp_table_helper_add_indexes(table_info,
ASN_OCTET_STR, /* index: ExampleDataName */
0);
It will always append the length of string before the oid
when it is being output.
How can you use 'IMPLIED" index without the len before it ?
thanks,
Daniel
Dave Shield wrote:
>On 19/09/06, Toth, Gregory S <[EMAIL PROTECTED]> wrote:
>
>
>>bookTable_get_first_data_point(....)
>>{
>> char this_index[SPRINT_MAX_LEN] = "title1";
>>
>>
>
>which is a local variable, and so the memory will be discarded when
>the routine exits.
>
>
>
>> *my_loop_context = (void *)this_index;
>> *my_data_context = (void *)this_index;
>>
>>
>
>These context pointers need to refer to memory that will persist from
>one call to another. You can't use a local variable.
>
>These two pointers wouldn't typically refer to the index anyway.
>How are the contents of the table stored internally? How would you
>most naturally move from one row to the next (ignoring how the MIB
>table is indexed), and how would you refer to a row in the table
>elsewhere in your application?
> That's the way you need to think about these two pointers.
>
>Dave
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>opinions on IT & business topics through brief surveys -- and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>Net-snmp-coders mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
>
>
>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders