trouble using index's with length > 127

"Joan Landry" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <A9FCB77F97940A418A61FD9BB71E4170013A582C@dexbe012-6.exch012.intermedia.net>
net-snmp is reporting an error when I try to create a row where the
index length is >127
 
the error I get is:
illegal data attempted to be added to table serviceTable (no index)
 
when the following cmd is executed
    netsnmp_tdata_row_add_index(row, ASN_OCTET_STR,  serviceName, len);
where 
    char            serviceName[256];
    when len = 128 (127 and under works fine)

I registered this table using:
     netsnmp_table_helper_add_indexes(table_info,  ASN_OCTET_STR, 0);

I believe an octet string should of 255 should be allowed.
 
The mib table index is defined as:
               INDEX   {  serviceName  }
where 
    serviceName OBJECT-TYPE
               SYNTAX         DisplayString


Any info on why this fails would be greatly appreciated.
Thanks

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com

_______________________________________________
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.