Validate that incoming packet has arrived from the correct engine id and is using a correct
combination of privacy and authentication values.
Namespace:
SnmpSharpNetAssembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax
| C# | Visual Basic | Visual C++ |
public bool ValidateIncomingPacket( SnmpV3Packet packet )
Public Function ValidateIncomingPacket ( _ packet As SnmpV3Packet _ ) As Boolean
public: bool ValidateIncomingPacket( SnmpV3Packet^ packet )
Parameters
- packet
- SnmpV3Packet
Received and parsed SNMP version 3 packet.
Return Value
True if packet is valid, otherwise false.
Exceptions
| Exception | Condition |
|---|---|
| SnmpSharpNet..::.SnmpException | Thrown on following errors with ErrorCode: * ErrorCode = 0: SecureAgentParameters was updated after request was made but before reply was received (this is not allowed) * SnmpException.InvalidAuthoritativeEngineId: engine id in the reply does not match request * SnmpException.InvalidSecurityName: security name mismatch between request and reply packets * SnmpException.ReportOnNoReports: report packet received when we had reportable set to false in the request * SnmpException.UnsupportedNoAuthPriv: noAuthPriv is not supported |
| SnmpPrivacyException | Thrown when configured privacy passwords in this class and in the packet class do not match |
| SnmpAuthenticationException | Thrown when configured authentication passwords in this class and in the packet class do not match |