TCPIP_SNMP_NotifyPrepare Function

C

void TCPIP_SNMP_NotifyPrepare(
    IP_MULTI_ADDRESS* remoteHost, 
    char* community, 
    uint8_t communityLen, 
    SNMP_ID agentIDVar, 
    uint8_t notificationCode, 
    uint32_t timestamp
);

Description

This function prepares SNMP module to send SNMP trap notification to remote host. It sends ARP request to remote host to learn remote host MAC address.

Preconditions

TCPIP_SNMP_Initialize() is already called.

Parameters

ParametersDescription
remoteHostPointer to remote Host IP address.
communityCommunity string to use to notify.
communityLenCommunity string length.
agentIDVarSystem ID to use identify this agent.
notification CodeNotification Code to use.
timestampNotification timestamp in 100th of second.

Returns

None.

Remarks

This is first of series of functions to complete SNMP notification.