On 7 April 2011 14:06, Zimmer Hu <[email protected]> wrote: > I'm reading source code try to finger out > how > netsnmp_table_iterator_helper_handler works and why mfd works in another way > (inject_before)?
I'd probably suggest that you look at using *either* the MfD framework, *or* the other (more directly) handler-based approaches. I'm not convinced that it's sensible to try and get to grips with both of them at the same time. The whole ethos of the MfD framework is to handle as much as possible automatically, and provide a collection of tiny routines that are all that the MIB developer needs to work with. I've tried to work through the internals of the MfD processing on a number of occasions, and got hopelessly confused every time. I'm sure that Robert understands how everything fits together, but I personally find it much harder to follow. In once sense, that doesn't matter - the intention is that the MIB developer does not need to understand what's going on under the hood. But if you're trying to understand things (as opposed to simply get them working), then you might find the iterator or table_data templates provide a simpler starting point. But that's just my personal opinion, and I've never claimed to be objective about the MfD framework. 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
