onBadPacket (event)

Fired for erroneous and/or malformed messages.

Syntax

- (void)onBadPacket:(NSData*)packet :(NSString*)sourceAddress :(int)sourcePort :(int)errorCode :(NSString*)errorDescription :(int*)report;
func onBadPacket(_ packet: Data, _ sourceAddress: String, _ sourcePort: Int32, _ errorCode: Int32, _ errorDescription: String, _ report: inout Int32)

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.

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