On 25/08/06, Passera Pablo-APP015 <[EMAIL PROTECTED]> wrote:
> We are trying to generate the code for the COMMUNITY-MIB using
> mib2c MFD. There is an index there that has the following ASN
> specification
> INDEX { IMPLIED snmpCommunityIndex }
> Looking at the code mib2c generates we found....
> var_snmpCommunityIndex.type = ASN_OCTET_STR;
>
> The var_snmpCommunityIndex.type is ASN_OCTET_STR instead of
> ASN_PRIV_IMPLIED_OBJECT_ID.
Yes - you should correct this assignment.
> the existent code in the
> snmpNotifyFilterTable.c is the following:
> var_snmpNotifyFilterSubtree.type = ASN_PRIV_IMPLIED_OBJECT_ID;
>
> Where the var_snmpNotifyFilterSubtree.type has the correct type.
> We know that the notify filter table implementation was generated using
> the mib2c, but we are not able to generate the same code.
Note that the output of mib2c is intended as a *template* - not
necessarily a 100% correct framework, but something to get you
started. I don't know exactly the history of this particular module,
but I suspect that the IMPLIED handling was tweaked manually
afterwards.
> Is there any mib2c configuration that we are missing?
No - I don't think so.
A quick scan of the mib2c code seems to indicate that it ignores
IMPLIED completely.
Robert will doubtless correct me if I'm wrong here.
Dave
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders