Re: How to find out, whether a getnext from a walk is the first request?
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 26/09/2007, Torben Surmer <[email protected]> wrote: > when I register a table with the table handler function > netsnmp_register_table_data_set( ..., myTable_handler(), > ...) and in the table handler function I do something like for > (request=requests; request; request=request->next) {...} is there a chance > to find out, if this is the first request in a walk bulk? No. Two reasons: a) The dataset handler knows which rows exist, and hence the list of valid OIDs. It will automatically convert GETNEXT requests into the appropriate GET request. It's this GET request that is passed to your handler. b) Even without this mapping, it's impossible for the agent to distinguish between a single GETNEXT request, and the start of a walk. They'll look identical. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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