Dear coders,

I used mib2c.mfd.conf generated dot3adAggPortTable template. After implemented the glue logic, everything works great on a snmpwalk. But there is a problem to set dot3adAggPortActorAdminState. According to IEEE8023-LAG mib, dot3adAggPortActorAdminState is a 8 bits string. However, mib2c generated it as a u_long ASN_OCTET_STR. Therefore, all the internal error checking's expect it as 4-byte long while actually it is 1-byte long, so netsnmp_check_vb_type_and_size() inside _dot3adAggPortTable_check_column() returns error, as a result dot3adAggPortActorAdminState_check_value() and other set functions not even get called. This explains why I got the following snmpset result:

$ snmpset 10.1 dot3adAggPortActorAdminState.23 b 4
Error in packet.
Reason: wrongLength (The set value has an illegal length from what the agent expects)
Failed object: IEEE8023-LAG-MIB::dot3adAggPortActorAdminState.23

I worked around it by changing error checking's in dot3adAggPortTable_interface.c, but I would like to see this gets fixed in mib2c generation.
Thanks.
--
Emi ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to