So now that I got my single indexed (using a string) table working, I am
attempting to do a doubly indexed table using a unsigned and a string:
netsnmp_table_helper_add_indexes(table_info, ASN_UNSIGNED, /*
index: articlePage */
ASN_OCTET_STR, /* index: name
*/
0);
How do I setup the indexes in the "get_first_data_point" method? Is it
something like this:
unsigned this_page = 1;
char this_name[SPRINT_MAX_LEN] = "name1";
vptr = put_index_data;
snmp_set_var_value(vptr, (u_char *) &this_name ,
sizeof(this_name) );
vptr = vptr->next_variable;
snmp_set_var_value(vptr, (u_char *) &this_page ,
sizeof(this_page) );
*my_loop_context = (void *)this_name ;
*my_data_context = (void *)this_name ;
vptr = vptr->next_variable;
-------------------------------------------------------------------------
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