Zgate_get_received_stats – Zilog EZ80F91GA User Manual

Page 71

Advertising
background image

UM024502-1012

ZGATE Logging Page

ZGATE Embedded Security Development Kit

User Manual

59

ZGATE_get_received_stats

Function Prototype

void ZGATE_get_received_stats( char * pBuff );

Parameters

pBuff

A pointer to a buffer into which received packet statistics will be
placed. This buffer should be at least 60 bytes in length.

Return Value

None.

Description

This function generates a NULL-terminated ASCII string containing a count of the pack-
ets processed by each of the ZGATE static filtering layers. The string contains the number
of packets processed by the following four filters, and in the following sequence: Ethernet
filter, IP filter, UDP filter and TCP filter.

These counts are for the static filters only. These counts do not reflect the number of each
type of packet received by the device – only those processed by each filter. For example,
most TCP packets will be recognized by the SPI filter as part of an existing connection.
Because these packets belong to a connection that has already been validated, these packets
will not be passed through the TCP static filter, and do not show up in the TCP filter packet
count.

Note:

Advertising