Hi Dave,
Thank you very much for the detailed explanation. Making the change as you 
suggested DOES solve the problem. Thank you again for your help!
Xuan

> Date: Fri, 9 Apr 2010 13:46:05 +0100
> Subject: Re: Help on Index out of range error ‏
> From: d.t.shi...@liverpool.ac.uk
> To: b...@live.com
> CC: net-snmp-users@lists.sourceforge.net
> 
> 2010/4/7 X Z <b...@live.com>:
> > Here are the original c & h files.
> 
> The problem lies with the registration of the table.
> In particular, how you specified the list of indexes.
> 
> You had:
> 
>     netsnmp_table_helper_add_indexes(table_info, ASN_UNSIGNED, 1);
> 
> which should have been
> 
>     netsnmp_table_helper_add_indexes(table_info, ASN_UNSIGNED, 0);
> 
> This call takes a variable number of index types, and so looks for '0'
> as the final parameter, to mark the end of this list.   By using '1' instead,
> you're confusing the table helper as to what the list of indexes should be.
> 
> That doesn't matter for GETNEXT requests, since these can work
> with incomplete OIDs anyway, and the module code sets up the
> OID of the result.
>    But for GET (and SET) requests, the table helper checks the OID
> against the expected index structure, and rejects anything that's
> incomplete.
> 
> Fixing the index registration call solves this problem.
> 
> Dave
                                          
_________________________________________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
------------------------------------------------------------------------------
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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to