[AGENT++] Regarding trappdu generation
Jochen Katz
katz at agentpp.com
Wed Apr 4 22:48:42 CEST 2007
Hi,
> I compiled and executed the example code agentpp_notifytest_mib.cpp
> present in the atm_mib examples directory..
>
> But we are not able to receive the Varbind's (in this example it is 9)
> in the trap pdu.
the example has a bug in the generate() funtion, that sends the trap
with zero vbs.
Regards,
Jochen
--- agentpp_notifytest_mib.cpp (Revision 133)
+++ agentpp_notifytest_mib.cpp (Arbeitskopie)
@@ -355,7 +355,7 @@
return;
}
Mib::instance->
- notify(context, oidAgentppNotifyTestAllTypes, vbs, 0);
+ notify(context, oidAgentppNotifyTestAllTypes, vbs, sz);
}
More information about the AGENTPP
mailing list