Zgate_st_filter_eth – Zilog EZ80F91GA User Manual

Page 67

Advertising
background image

UM024502-1012

ZGATE Logging Page

ZGATE Embedded Security Development Kit

User Manual

55

ZGATE_st_filter_eth

Function Prototype

INT8 ZGATE_st_filter_eth( ether * pEthFrameHdr );

Parameters

pEthFrameHdr

Pointer to the Ethernet frame header.

Return Value

ZGATE_FORWARD_PACKET

The frame should be processed.

ZGATE_DO_NOT_FORWARD_PACKET

The frame should be dropped.

Description

ZGATE_st_filter_eth

performs static filtering of Ethernet frames based on the source

Ethernet MAC address and Ethernet frame type, if these filters are enabled. This function
is the ZGATE entry point for filtering Ethernet frames. It should only ever be called from
within the Ethernet MAC driver when an Ethernet frame is received from the network. To
learn more, see the

RxFunc

routine in the

RZK\Conf\emac_conf.c

file.

For performance reasons, this function should not be called directly from the Ethernet
driver’s interrupt service routine. It should be called from the Ethernet driver’s RZK Inter-
rupt thread.

Note:

Advertising