From: SourceForge.net <no...@so...> - 2011-08-08 18:15:35
|
Patches item #3386961, was opened at 2011-08-05 12:07 Message generated for change (Settings changed) made by hardaker You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312694&aid=3386961&group_id=12694 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Closed >Resolution: Accepted Priority: 5 Private: No Submitted By: Mark Rusk () >Assigned to: (bvassche) Summary: snmpget fails for registered scalar groups over agentx Initial Comment: When retrieving scalar mib items registered with netsnmp_register_scalar_group() with an AGENTX GET request, the subagent is logging: agentx_build_varbind: unknown type 199 (0xc7) and no value is returned. In previous releases of net-snmp , the processing of MODE_GET requests in agent/helpers/scalar_group.c:netsnmp_scalar_group_helper_handler() would fall through to the next case for MODE_SET_* before returning. If NETSNMP_NO_WRITE_SUPPORT is enabled, the MODE_GET requests fall through to the MODE_GETNEXT where type is set to ASN_PRIV_RETRY (which the agentx code doesn't recognize. The patch moves the #endif from the end of the MODE_SET_* case block, to the end of the "case MODE_SET_*", allowing the MODE_GET to do the right stuff when NETSNMP_NO_WRITE_SUPPORT is enabled ---------------------------------------------------------------------- Comment By: (bvassche) Date: 2011-08-08 11:11 Message: Thanks for the patch - it has been applied on the 5.7 branch and the master branch as commit d1a186a1e3be51daca6bd417d015770e19add925. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312694&aid=3386961&group_id=12694 |