Comment 3 for bug 2067052

Revision history for this message
Rudolf (rudolf97) wrote :

Hello Sergio,

Thank you for your answer. I would also consider myself as being comfortable with source code. But to be honest, I am quite new to the net-snmp world and have very little experience, so maybe the blame is on me and I understand something wrong.

I setup a trap receiver similar to the snmptrapd (using netsnmp_transport_open_server and snmp_add):
For receiving traps the callback used is:
int process(int op, netsnmp_session* session, int reqid, netsnmp_pdu* rawPDU, void* magic);

When sending traps or informs using version 3 of the protocol, I can cleary see that something is processed in my pre_parse and post_parse functions containing a PDU with command 0 or 160.

Depending on the isAuthoritative value of the created session the PDU gets either passed to my process function or not.
But why am I receiving a GET PDU in the first place instead of a version 3 TRAP/INFORM ?
Is this correct and I am doing something wrong when it comes to receiving version 3 traps, or is this behavior wrong?

If I am wrong here, then sorry for wasting your time. Maybe someone could then tell me how to properly receive version 3 traps/informs.

Thanks in advance!