snmpIoCommunityValidate( )

NAME

snmpIoCommunityValidate( ) - sample community validation routine

SYNOPSIS

int snmpIoCommunityValidate 
    ( 
    SNMP_PKT_T *  pPkt,         /* ptr to snmp pkt */ 
    SNMPADDR_T *  pRemoteAddr,  /* remote address  */ 
    SNMPADDR_T *  pLocalAddr    /* local address   */ 
    )

DESCRIPTION

This routine is used to set up the view-index field in the SNMP packet. This product is shipped with defaults such that the "priv"community is allowed to set variables, and the "pub" community is allowed to get variables.

The agent designer is required to write this function according to the design of the application.

RETURNS

0 if the community is acceptable, otherwise 1.

SEE ALSO

snmpIoLib