2009/4/14 kusuma.bm <kusuma...@globaledgesoft.com>: > i would like which API style has been used to generate > snmpTargetAddrTable code (netsnmp-5.4.2.1) using mib2c compiler so that > i can use the same API style to generate code for snmpCommunityTable .
That's probably a bad idea. The snmpTargetAddrTable implementation is relatively old, and still uses the pre-net-snmp v4 API. You *can* generate code in this form using the 'old_api' mib2c template, but the resulting code is not particularly solid, and this is a relatively inefficient mechanism. Most new MIB implementations will use one of the various handler-based approaches. If you are interested in the snmpCommunityTable, you should probably take a look at the project 'patches' tracker, where there is an example of this MIB already waiting. I've not had the chance to look at it myself, so I've no idea how solid or functional it is. But it might save you a bit of time getting started. Dave ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users