beautypg.com

Zgate_add_eth_frame – Zilog EZ80F91GA User Manual

Page 91

background image

UM024502-1012

ZGATE Logging Page

ZGATE Embedded Security Development Kit

User Manual

79

ZGATE_add_eth_frame

Function Prototype

INT16 ZGATE_add_eth_frame( INT32 FrameType );

Parameters

FrameType

Ethernet frame type to be added to the Ethernet frame type static
filtering list. The value of FrameType must be between 0 and
65535.

Return Value

TRUE

FrameType was successfully added to the Ethernet frame type
static filtering list.

FALSE

FrameType is invalid, already exists in the Ethernet frame type
static filtering list, the list is full or the Ethernet frame type filter
is disabled.

Description

When the Ethernet Frame Type filter is operating in WHITELIST (forwarding) or
BLACKLIST (blocking) Mode, it extracts the Type field from inbound Ethernet frames
and compares the frame type to entries in the Ethernet Frame Type filtering list. If a match
is found, the frame 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 add an entry to the Ethernet Frame Type static filtering list. Entries
cannot be added to the list if the Ethernet Frame Type filter is disabled.