beautypg.com

Zgate_set_th_lw – Zilog EZ80F91GA User Manual

Page 84

background image

ZGATE API Reference

UM024502-1012

72

ZGATE Embedded Security Development Kit
User Manual

ZGATE_set_th_LW

Function Prototype

INT16 ZGATE_set_th_LW( INT32 LW_Thresh );

Parameters

LW_Thresh

The new threshold filtering low-water (lower) threshold. This
low-water threshold must be greater than 20 and must be at no
more than half the high-water threshold.

Return Value

TRUE

The threshold filtering low-water threshold was successfully
changed.

FALSE

The specified low-water threshold value is invalid.

Description

After ZGATE detects that a node on the local network is sending packets to ZTP at a rate
approaching the high-water threshold, subsequent packets from that source IP address will
be blocked until the node’s transmission rate falls below the low-water threshold. This
API is used to alter the low-water threshold.