C
BOOL SNMPIsValidSetLen( SNMP_ID var, BYTE len, BYTE index );
Description
This routine is used to validate the dyanmic variable data length to the variable data type. It is used when SET request is processed. This is a callback function called by module. User application must implement this function.
Preconditions
ProcessSetVar() is called.
Parameters
Parameters |
Description |
var |
Variable id whose value is to be set |
len |
Length value that is to be validated. |
index |
instance of a OID |
Return Values
Return Values |
Description |
TRUE |
if given var can be set to given len |
FALSE |
if otherwise. |
Remarks
This function will be called for only dynamic variables that are defined as ASCII_STRING and OCTET_STRING (i.e. data length greater than 4 bytes)