Snmpv3CmprTrapSecNameAndSecLvlWithUSMDb Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
Snmpv3CmprTrapSecNameAndSecLvlWithUSMDb Function
C
BOOL Snmpv3CmprTrapSecNameAndSecLvlWithUSMDb(
    BYTE tragetIndex, 
    BYTE userTrapSecLen, 
    UINT8 * userTrapSecurityName, 
    STD_BASED_SNMPV3_SECURITY_LEVEL securityLevel
);
Description

There are two different data base tables defined with SNMPv3 stack, like 'snmpV3UserDataBase' and 'gSnmpv3TrapConfigData'. This routine is used to validte the trap user security level setting with SET request.

Preconditions

SET operation would be allowed if the USM security conditions and user security name in the request is matched to one of the user security name stored in the usm user database.

Parameters
Parameters 
Description 
userTrapSecLen 
user sec name length in the SET request 
userTrapSecurityName 
pointer to user sec name in the SET request 
securityLevel 
trap security level to be SET on the agent 
Return Values
Return Values 
Description 
TRUE 
if the trap target user sec level setting is successful 
FLASE 
If the SET failed due to non matching of the security parameters 
Remarks

None.

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.