Validate that incoming packet has arrived from the correct engine id and is using a correct
combination of privacy and authentication values.
Namespace:
SnmpSharpNet
Assembly:
SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.2.0 (0.5.2.0)
Syntax
| Visual Basic (Declaration) |
|---|
Public Function ValidateIncomingPacket ( _
packet As SnmpV3Packet _
) As Boolean |
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 |
See Also