On 5 March 2010 09:55, Ashish vashishtha <[email protected]> wrote:
> for adding the row to the table i am using netsnmp_table_row_add_index
> function.
>
> netsnmp_table_row_add_index(row,ASN_GAUGE,&Index,sizeof(Index))

No.
     netsnmp_table_row_add_index()  is used to define the indexing
for this row of the table.

   It does *not* itself add a new row to the table. That's handled by
netsnmp_table_data_add_row()


> Now i want to add one more index to the same row before adding it to the
> table.
>
> How I can achieve the same.

Call netsnmp_table_row_add_index()  twice, before adding the row.
See mibgroup/testhandler.c  which does precisely this.

Dave

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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

Reply via email to