problem with walk on table_set

alteest <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi all,

I have next problem:

In my application i use 'netsnmp_table_data_set' to register data into 
snmp table.

So, during creation table_data_set i use:

netsnmp_table_set_add_default_row(table, column, 
mib_to_asn_type(oidType), 0, NULL, 0);

During registration data into table:

netsnmp_set_row_column(row, column, mib_to_asn_type(valType), (char *) 
regVal, regValLen);

And if columns are {1, 2, 3, 4, ...} everythong works fine, but in my 
application columns are, for example {1, 7, 35, 800, ...}. And if i do 
snmpwalk in tableentry i receive data only from column number 1, but if 
i do walk on tableentry.35, i receive data for attribute (column) number 
7.

Pls, don't ask why i use {1, 7, 35, ...} it's require for this app.

May be anybody have idea how to solve this problem?

Currently i see only one way. Here is mycreation of handler_registration

_reginfo = netsnmp_create_handler_registration(tableName, NULL, (oid*) 
regOid, oidLen, HANDLER_CAN_RONLY);

And i see only way to realize callback (instead of NULL). But may be 
exist other way to solve this problem?

--
alteest.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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.