C
static SNMP_ACTION ProcessHeader( PDU_INFO* pduDbPtr, char* community, BYTE* len );
Description
Collects PDU_INFO (SNMP pdu information database),community name, community length and length of data payload. This function validates the received udp packet for these different variables of snmp pdu. The sequence in which these elements are received is important. The validation is done for the agent processing capabilities and the max UDP packet length as UDP packets can not be fragmented.
Preconditions
UDPIsGetReady(SNMPAgentSocket) is called in SNMPTask(), it check if there is any packet on SNMP Agent socket, should return TRUE.
Parameters
Parameters |
Description |
pduDbPtr |
Pointer to received pdu information database |
community |
Pointer to var storing, community string in rxed pdu |
len |
Pointer to var storing, community string length rxed in pdu |
Return Values
Return Values |
Description |
Snmp request pdu type. |
Remarks
The received pdu will be processed only if this routine returns the pdu type else the pdu is discarded as not Snmp pdu.