IsValidCommunity Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
IsValidCommunity Function
C
static BOOL IsValidCommunity(
    char* community, 
    BYTE* len
);
Description

This routine populates and validates the community datatype, community name and length from the received snmp request pdu. Community name is used for accessing public and private memebrs of the mib.

Preconditions

ProcessHeader() is called.

Parameters
Parameters 
Description 
community 
Pointer to memory where community string will be stored. 
len 
Pointer to memory where comunity length gets stored. 
Return Values
Return Values 
Description 
TRUE 
If valid community received. 
FALSE 
If community is not valid. 
Remarks

None.

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