Dave,

Thanks for the reply. 

> It would be useful if you specified *which* Net-SNMP style you're using.
> There are at least half a dozen of them!

I am using mib2c of Net-SNMP version 5.1.2. In my code I am setting
ret_len to zero and returning NULL.

Sridhar

On Wed, 29 Dec 2004 20:26:00 +0000, "Dave Shield"
<[EMAIL PROTECTED]> said:
> > 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


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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

Reply via email to