On 8 April 2011 06:33, Zimmer Hu <[email protected]> wrote:
>> I'm using wireshark 1.2.11 to monitor SNMP traffic, I observed when I
>> snmpwalk through MyTable, there are a lot of GETNEXT request sent out, but
>> in my handler, branch GETNEXT doesn't get executed....

> Ok, I have found in netsnmp_table_iterator_helper_handler(), it changes all
> GETNEXT requests to GET. ( Line 778 in table_iterator.c for netsnmp-5.4.3).

This approach is common to a number of the table helpers.

If the helper framework knows (or can find out) the list of valid rows,
then it can automatically determine which row is needed to answer a
given GETNEXT request.   The request can then be converted into an
equivalent GET request, which is much easier for the MIB-specific handler
to process.

Dave

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to