SNMPValidateCommunity Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
SNMPValidateCommunity Function
C
BYTE SNMPValidateCommunity(
    BYTE * community
);
Description

This function validates the community name for the mib access to NMS. The snmp community name received in the request pdu is validated for read and write community names. The agent gives an access to the mib variables only if the community matches with the predefined values. This routine also sets a gloabal flag to send trap if authentication failure occurs.

Preconditions

SNMPInit is already called.

Parameters
Parameters 
Description 
community 
Pointer to community string as sent by NMS. 
Returns

This routine returns the community validation result as READ_COMMUNITY or WRITE_COMMUNITY or INVALID_COMMUNITY

Remarks

This is a callback function called by module. User application must implement this function and verify that community matches with predefined value. This validation occurs for each NMS request.

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