TCPIP_SNMP_IsValidLength Function

C

bool TCPIP_SNMP_IsValidLength(
    SNMP_ID var, 
    uint8_t len, 
    uint8_t index
);

Description

This function is used to validate the dynamic variable data length to the variable data type. It is called before the SET request is processed. This is a callback function called by module. User application must implement this function.

Preconditions

TCPIP_SNMP_ProcessSetVar() is called.

Parameters

ParametersDescription
varVariable id whose value is to be set.
lenLength value that is to be validated.

Returns

  • True - If given var can be set to given len.

  • False - If the given var cannot be set to the given len.

Remarks

This function will be called for only dynamic variables that are defined as ASCII_STRING and OCTET_STRING.