> I am trying to implement ifTable by generating code in Net-SNMP style.
It would be useful if you specified *which* Net-SNMP style you're using. There are at least half a dozen of them! > long *get_ifType(void *data_context, size_t *ret_len) That looks like the 'iterator_access' helper - yes? > Code is working fine, but I am not sure about returning error from > the wrapper function. [snip] > In the above example value will be returned in case of successful return > of backend API. What should I return in case of failure ? A NULL ? Correct! Dave ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.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