Re: my_reg_void pointer in netsnmp_handler_registration structure
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 20/09/2007, Vinh Nguyen <[email protected]> wrote: > I need to keep some external data on registering an snmp instance (or > table), that can be retrieved back whenever the instance handler is called. > Fromt the name, I assume that my_reg_void in > netsnmp_handler_registration structure can be used for this purpose, > could some one please confirm if I am right or wrong? That should work, yes. It a technique used in some of the MfD implementations. Though it's probably more common to use the 'my_void' field of the netsnmp_mib_handler structure, which works in a similar way. See assorted helper/*, ucd-snmp/proxy or utilities/override for examples. 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