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!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2067052

Title:
  snmpinform sends PDUs containing a GET request SNMP_MSG_GET

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/net-snmp/+bug/2067052/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to