BadPacket Event
Fired for erroneous and/or malformed messages.
Syntax
snmptcpmgr.on('BadPacket', [callback])
Callback
The 'callback' is called when the 'BadPacket' event is emited.
function(e){ }
The argument 'e' has the following properties:
e.packet (buffer) e.sourceAddress e.sourcePort e.errorCode e.errorDescription e.report
Remarks
The full message is provided in the Packet parameter.
The BadPacket event is also fired when authentication fails for received packets due to a bad password or other reasons.
If the Report parameter is set to True, an unauthenticated error report will be sent to the client, otherwise the packet will be silently ignored.