Profishark API  2.3.12.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ProfisharkApiCounterV2 Struct Reference

Counter V2 description. More...

#include <ProfisharkAPI.h>

Data Fields

int n
 
ProfisharkAPIState isIPv4
 
ProfisharkAPIState isIPv6
 
ProfisharkAPIState isbcast
 
ProfisharkAPIState ismcast
 
ProfisharkAPIState isucast
 
ProfisharkAPIState isicmp
 
ProfisharkAPIState isudp
 
ProfisharkAPIState istcp
 
ProfisharkAPIState iscrcValid
 
ProfisharkAPIState isDropped
 
int size
 
ProfisharkApiCounterV2SizeMode sizeMode
 
uint8_t ip [16]
 
uint8_t ipMask [16]
 
ProfisharkAPIState port1
 
ProfisharkAPIState port2
 
ProfisharkApiCounterV2Mode mode
 

Detailed Description

Counter V2 description.

For every ProfisharkAPIState member, ProfisharkAPIState_Enabled means a packet is counted if the condition is true, ProfisharkAPIState_Disabled means a packet is counted if the condition is false and ProfisharkAPIState_DontCare means it is counted no matter what.

Field Documentation

uint8_t ip[16]

Compare 'ip' with the packet IP address. LSB is ip[0]. For IPv4, use ip[0..3] and set ipMask accordingly.

uint8_t ipMask[16]

Mask for the Ip comparision

Test if a packet is broadcast

ProfisharkAPIState iscrcValid

Test if a packet has valid CRC

ProfisharkAPIState isDropped

Test if a packet was dropped by hardware

Test if a packet is ICMP

Test if a packet is IPv4

Test if a packet is IPv6

Test if a packet is multicast

Test if a packet is TCP

Test if a packet is unicast

Test if a packet is UDP

Counter mode (packets or bytes)

int n

Counter id

Counter enabled on port A

Counter enabled on port B

int size

The size to compare packet size with

Comparison operation between 'size' and packet size


The documentation for this struct was generated from the following file: