ProcessGetNextVar Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
ProcessGetNextVar Function
C
BYTE ProcessGetNextVar(
    OID_INFO* rec, 
    PDU_INFO* pduDbPtr
);
Description

This routine reads into the MIB stored with the agent in MPFS2 format. It will search for the first lexicographic successor of the variable binding's name in the incoming GetNextRequest-PDU. If found, the corresponding variable binding's name and value fields in the Response pdu are set to the name and value of the located variable. If the lexicographic succesor is not found, the vlaue filed is set to "endofMibView" and name field is retained as in request.

Preconditions

ProcessVariables is called.

Parameters
Parameters 
Description 
rec 
Pointer to SNMP MIB object information for which next node to be found 
pduDbPtr 
Pointer to received pdu information database 
Return Values
Return Values 
Description 
Value 
Total number of bytes copied to response packet if succesful. 
FALSE 
If End of MIB is reached or processing is failure. 
Remarks

None.

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