Zgate_remove_udp_port – Zilog EZ80F91GA User Manual
Page 88

ZGATE API Reference
UM024502-1012
76
ZGATE Embedded Security Development Kit
User Manual
ZGATE_remove_udp_port
Function Prototype
INT16 ZGATE_remove_udp_port( INT32 value );
Parameters
PortNumber
UDP port number to be removed from the UDP port static filter-
ing list. The value of
PortNumber
must be between 0 and 65535.
Return Value
TRUE
PortNumber
was successfully removed from the UDP port static
filtering list.
FALSE
PortNumber
is invalid, does not exist in the UDP port static fil-
tering list, or the UDP Port filter is disabled.
Description
When the UDP Port filter is operating in WHITELIST (forwarding) or BLACKLIST
(blocking) Mode, it extracts the destination UDP port number from inbound UDP data-
grams and compares the target port number to entries in the UDP port list. If a match is
found, the datagram is forwarded to ZTP if the filter operates in WHITELIST Mode and
blocked from TCP if the filter operates in BLACKLIST Mode.
This API is used to remove an entry from the UP Port static filtering list. Entries cannot be
removed from the UDP Port list if the UDP Port filter is disabled.