BadPacket Event

Fired for erroneous and/or malformed messages.

Syntax

class SNMPTrapMgrBadPacketEventParams {
public:
  const QByteArray &Packet();
  const QString &SourceAddress();
  int SourcePort();
  int ErrorCode();
  const QString &ErrorDescription();
  bool Report();
  void SetReport(bool bReport);
  int EventRetVal();
  void SetEventRetVal(int iRetVal);
};
// To handle, connect one or more slots to this signal. void BadPacket(SNMPTrapMgrBadPacketEventParams *e);
// Or, subclass SNMPTrapMgr and override this emitter function. virtual int FireBadPacket(SNMPTrapMgrBadPacketEventParams *e) {...}

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.

Please refer to the GetUserPassword event for more information concerning SNMPv3 authentication.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks SNMP 2020 Qt Edition - Version 20.0 [Build 8202]