NOT ABLE TO EXTRACT ROW->INDEXES

Dharm S <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAFyUrtZZTvCQJCRpRHCSpW0brJ+jAfAtFWXkg3Gq_CjeFjotbg@mail.gmail.com>
Hi All,

I have created mib module using mib2c.create-dataset.conf.

I have entered rows into the table using row =
netsnmp_create_table_data_row(
);
I try to extract the indexes at another location by parsing each row in a
for loop
for(row=table_set_myTable->table->first_row;row;row=row->next)

I had added indexes while creating rows using netsnmp_table_row_add_index()
function.

But in the for loop when i check row->indexes, it creates segmentation
fault indicating it to hold NULL value instead of any of the indexes.

if(table_set_myTable->table->first_row->indexes == NULL)
            flag =1;
which gave 1 as value confirming this.

What must have gone wrong? Is the extracting method wrong or adding index??

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.