On Fri, 18 Jun 2004 18:00:33 +0200 Maurizio wrote: MR> I have implemented the table with array-users.conf and i managed the index MR> in the following way: MR> MR> char idxList[] ={"process1", "process2", "process3"}
I hope that's a typo. It should be a "char *". MR> /*First value of an index that is ASN_OCTET_STR is MR> the length of the string.*/ MR> index_oid[0] = strlen(idxList[i]); MR> for (j = 0; j < index_oid[0];j++) MR> index_oid[j+1] = *(idxList[i]+j); MR> MR> index.oids = (oid *) & index_oid; MR> index.len = index_oid[0]+1; Ok, that sets up an index. But when are you doing this? What do you do with index once you've built it? -- Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders