Net-SNMP 5.0.6 on Linux.
I have a SMUX peer which raises several traps in quick
succession at startup. Some traps are lost unless I
insert a delay between each one.
I don't have the source for 5.0.6 but I have spotted the
problem in the source for 5.1.
smux_pdu_process() processes all the packets in a
message buffer except when SMUX_TRAP is processed,
in which case, it ignores any subsequent packets in the
buffer.
I think 'ptr=NULL;' should be removed from the
following code.
case SMUX\_TRAP:
snmp\_log\(LOG\_INFO, "Got trap from peer on fd
%d\n", fd);
ptr = smux_trap_process(ptr, &len);
/*
* watch out for close on top of this...should
return correct end
*/
/*
* debug this...
*/
ptr = NULL;
break;
Logged In: YES
user_id=88893
Originator: NO
Thanks for the bug report!
We've fixed the problem in the 5.3.x and 5.4.x
code branches and the main development tree,
so it should be fixed in future releases of the
Net-SNMP package.