On 24/01/07, Yaniv S. <[EMAIL PROTECTED]> wrote: > I'm Intrested to add an Implementation of get-range method to an snmp > client for academic reasons (resarch and such). > Get Range was defined in Internet Draft but wasn't approved as RFC. > My question is whether I'm able to implement it as a different module > on your code?
It wouldn't be as simple as a MIB module - adding a new PDU type would need to be done at a fairly low level. You'd almost certainly have to tweak things in the library (snmplib/*.c) as well as the agent framework (agent/*.c). Your best best is probably to look for various mentions of GETBIULK, and add suitable GETRANGE handling there. As far as the individual MIB modules are concerned - the simplest approach is probably to write a 'getrange_to_getnext' helper (again, following the approach used for GetBulk), and hide this new PDU from the individual MIB modules. Good Luck! Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
