The following functions and variables are available to the stack application.
Enumerations
|
Name |
Description |
|
This is type GENERIC_TRAP_NOTIFICATION_TYPE. | |
|
This is type VENDOR_SPECIFIC_TRAP_NOTIFICATION_TYPE. | |
|
This is the list of SNMP action a remote NMS can perform. This inforamtion is passed to application via callback SNMPValidateCommunity(). Application should validate the action for given community string. | |
|
This is type COMMUNITY_TYPE. |
Functions
|
Name |
Description |
|
Prepare, validate remote node which will receive trap and send trap pdu. | |
|
Creates and Sends TRAP pdu. | |
|
This routine Set the mib variable with the requested value. | |
|
Used to Get/collect OID variable information. | |
|
Resolves given remoteHost IP address into MAC address. | |
|
Collects trap notification info and send ARP to remote host. | |
|
To search for next index node in case of a Sequence variable. | |
|
Validates community name for access control. |
Macros
|
Name |
Description |
|
This is the maximum length for community string. Application must ensure that this length is observed. SNMP module adds one byte extra after SNMP_COMMUNITY_MAX_LEN for adding '0' NULL character. | |
|
Change this to match your OID string length. | |
|
This is macro SNMP_START_OF_VAR. | |
|
This is macro SNMP_END_OF_VAR. | |
|
This is macro SNMP_INDEX_INVALID. | |
|
This is macro TRAP_TABLE_SIZE. | |
|
This is macro TRAP_COMMUNITY_MAX_LEN. | |
|
This is macro NOTIFY_COMMUNITY_LEN. |
Module
Structures
|
Name |
Description |
|
This is type TRAP_INFO. |
Types
|
Name |
Description |
|
This is the SNMP OID variable id. This id is assigned via MIB file. Only dynamic and AgentID variables can contian ID. MIB2BIB utility enforces this rules when BIB was generated. | |
|
This is type SNMP_INDEX. |
Unions
|
Name |
Description |
|
This is type SNMP_VAL. |
Variables
|
Name |
Description |
|
global flag to send Trap | |
|
#if defined(SNMP_STACK_USE_V2_TRAP) || defined(SNMP_V1_V2_TRAP_WITH_SNMPV3) //if gSetTrapSendFlag == FALSE then the last varbind variable for //multiple varbind variable pdu structure or if there is only varbind variable send. // if gSetTrapSendFlag == TRUE, then v2 trap pdu is expecting more varbind variable. BYTE gSetTrapSendFlag = FALSE; #endif | |
|
Global flag for Generic trap notification | |
|
Vendor specific trap code | |
|
Gloabal var to store SNMP ID of var for OID received in SNMP request. |