Profishark API  2.3.12.0
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

◆ ip

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.

◆ ipMask

uint8_t ipMask[16]

Mask for the Ip comparision

◆ isbcast

Test if a packet is broadcast

◆ iscrcValid

ProfisharkAPIState iscrcValid

Test if a packet has valid CRC

◆ isDropped

ProfisharkAPIState isDropped

Test if a packet was dropped by hardware

◆ isicmp

Test if a packet is ICMP

◆ isIPv4

Test if a packet is IPv4

◆ isIPv6

Test if a packet is IPv6

◆ ismcast

Test if a packet is multicast

◆ istcp

Test if a packet is TCP

◆ isucast

Test if a packet is unicast

◆ isudp

Test if a packet is UDP

◆ mode

Counter mode (packets or bytes)

◆ n

int n

Counter id

◆ port1

Counter enabled on port A

◆ port2

Counter enabled on port B

◆ size

int size

The size to compare packet size with

◆ sizeMode

Comparison operation between 'size' and packet size


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