Snmpv3TrapScopedpdu Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
Snmpv3TrapScopedpdu Function
C
UINT8 Snmpv3TrapScopedpdu(
    SNMP_ID var, 
    SNMP_VAL val, 
    SNMP_INDEX index, 
    UINT8 targetIndex
);
Description

This routine forms the trap scoped pdu header for the SNMPv3 trap PDU to be originated from this agent. Scoped pdu comprises of msg data : - [== For ASCII STR trap VAL(argument) contains the pointer address of the string variable.

Preconditions

TRAP event is triggered.

Parameters
Parameters 
Description 
var 
var id of the variable whose value to be sent in the trap pdu 
val 
value of the variable 
index 
index of the variable in the multiple variable bind scenario targetIndex -index of the 'gSnmpv3TrapConfigData' table's security user name for which the TRAP PDU message header to constructed. 
Return Values
Return Values 
Description 
TRUE 
The trap scoped pdu header generation is successful. FALSE -The trap scoped pdu header generation failed. 
Remarks

None.

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