Hello,
I have some troubles about the retries that are actually not sent.
I use the uxsnmp::get function with callbacks, which is basically doing :
pdu.set_type( sNMP_PDU_GET_ASYNC);
and then calls uxsnmp::snmp_engine().
The message is sent, no issue.
When comming back in snmp_engine, called by the retry code, it is coming with the callback variables initialized correctly, but the type of the pdu is not sNMP_PDU_GET_ASYNC anymore, but sNMP_PDU_GET.
There is a test stating that if the type is sNMP_PDU_GET, there should be no callback.
Of course in my case the test fails and snmp_engine returns with the SNMP_CLASS_INVALID_CALLBACK code.
So the retry messages are not sent.
If I comment the test, the retry messages are sent correctly.
Looks like the type is changed in snmp_engine by the methods map_action() for a reason I do not get.
Is anyone having the same trouble?
Did I miss someting when calling get() or in some SNMP initialization?
I use snmp++ 3.5.0.0
Note that with version 3.3.13, it was working
Thanks a lot,
Stéphane.