Template:FAQ:Coding 24
From Net-SNMP Wiki
That doesn't matter - the routines described in 'snmp_trap_api(3)'
can still be used, and the subagent will Do The Right Thing.
One of the original design aims of the AgentX support was that this should be transparent to a MIB module implementer. The agent-module interface should be independent of the protocol used to receive the original request. So the exact same MIB module code could be used within a traditional SNMP-only agent, or an AgentX subagent, with no changes needed. In fact, the main agent supplied as part of the package can indeed be run as an SNMP agent or an AgentX subagent, simply based on command line flags (or similar configuration options).