|
Profishark API
2.3.13.0
|
Counter V2 description. More...
#include <ProfisharkAPI.h>
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.
| 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
| ProfisharkAPIState isbcast |
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
| ProfisharkAPIState isicmp |
Test if a packet is ICMP
| ProfisharkAPIState isIPv4 |
Test if a packet is IPv4
| ProfisharkAPIState isIPv6 |
Test if a packet is IPv6
| ProfisharkAPIState ismcast |
Test if a packet is multicast
| ProfisharkAPIState istcp |
Test if a packet is TCP
| ProfisharkAPIState isucast |
Test if a packet is unicast
| ProfisharkAPIState isudp |
Test if a packet is UDP
Counter mode (packets or bytes)
| int n |
Counter id
| ProfisharkAPIState port1 |
Counter enabled on port A
| ProfisharkAPIState port2 |
Counter enabled on port B
| int size |
The size to compare packet size with
| ProfisharkApiCounterV2SizeMode sizeMode |
Comparison operation between 'size' and packet size