beautypg.com

Zgate_tcp_port_filtering_type – Zilog EZ80F91GA User Manual

Page 78

background image

ZGATE API Reference

UM024502-1012

66

ZGATE Embedded Security Development Kit
User Manual

ZGATE_tcp_port_filtering_type

Function Prototype

INT16 ZGATE_tcp_port_filtering_type( void );

Parameters

None.

Return Value

ZGATE_FILTER_DISABLED

ZGATE does not examine the destination TCP port
number when deciding whether to forward or dis-
card received TCP packets.

ZGATE_BLACKLIST_FILTERING

ZGATE discards received TCP packets if the desti-
nation TCP port number field matches an entry in
the

tcp_port

filtering list.

ZGATE_WHITELIST_FILTERING

ZGATE forwards received TCP packets if the desti-
nation TCP port number field matches an entry in
the

tcp_port

filtering list.

Description

This function returns the filtering mode of the TCP destination port number filter.