Retrieve statistics from a Profishark device.
More...
|
|
#define | PROFISHARKAPI_STATISTICSV2_COUNTERS 16 |
| | The maximum number of counters available in a device supporting V2 statistics model.
|
|
|
typedef enum ProfisharkApiStatisticsVersion | ProfisharkApiStatisticsVersion |
| | Statistics model version.
|
|
typedef struct ProfisharkApiStatisticsV1Port | ProfisharkApiStatisticsV1Port |
| | Statistics structure for a single port of a device supporting V1 model.
|
|
typedef struct ProfisharkApiStatisticsV1 | ProfisharkApiStatisticsV1 |
| | Statistics structure for devices supporting V1 model.
|
|
typedef struct ProfisharkApiStatisticsV2 | ProfisharkApiStatisticsV2 |
| | Statistics structure for devices supporting V2 model.
|
|
typedef struct ProfisharkApiStatistics | ProfisharkApiStatistics |
| | Statistics structure for a Profishark device.
|
|
typedef enum ProfisharkApiCounterV2SizeMode | ProfisharkApiCounterV2SizeMode |
| | Counter V2 size comparison mode.
|
|
typedef enum ProfisharkApiCounterV2Mode | ProfisharkApiCounterV2Mode |
| | Counter V2 mode.
|
| typedef struct ProfisharkApiCounterV2 | ProfisharkApiCounterV2 |
| | Counter V2 description.
|
Retrieve statistics from a Profishark device.
◆ ProfisharkApiCounterV2
| typedef struct ProfisharkApiCounterV2 ProfisharkApiCounterV2 |
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.
◆ ProfisharkApiCounterV2Mode
Counter V2 mode.
| Enumerator |
|---|
| ProfisharkApiCounterV2Mode_CounterModePackets | Counter is counting packets
|
| ProfisharkApiCounterV2Mode_CounterModeBytes | Counter is counting bytes
|
◆ ProfisharkApiCounterV2SizeMode
Counter V2 size comparison mode.
| Enumerator |
|---|
| ProfisharkApiCounterV2SizeMode_SizeModeDontCare | Counter does not care about packet size
|
| ProfisharkApiCounterV2SizeMode_SizeModeGreaterThan | Counter counts packet if packet size > 'size'
|
| ProfisharkApiCounterV2SizeMode_SizeModeLessThan | Counter counts packet if packet size < 'size'
|
| ProfisharkApiCounterV2SizeMode_SizeModeEqual | Counter counts packet if packet size = 'size'
|
◆ ProfisharkAPIGetCounterV2()
Get device counter configuration.
- Parameters
-
| handle | a handle to the device |
| n | the id of the counter to retrieve |
| [out] | counter | the ProfisharkApiCounterV2 structure that will contain the counter configuration |
- Return values
-
| ProfisharkAPIRet_Success | on success |
| ProfisharkAPIRet_NoDev | if the device does not exist |
◆ ProfisharkAPIGetStatistics()
Get device statistics.
- Parameters
-
- Return values
-
| ProfisharkAPIRet_Success | on success |
| ProfisharkAPIRet_NoDev | if the device does not exist |
◆ ProfisharkAPISetCounterV2()
Set device counter configuration.
- Parameters
-
- Return values
-
| ProfisharkAPIRet_Success | on success |
| ProfisharkAPIRet_NoDev | if the device does not exist |
◆ ProfisharkAPISetMarker()
Insert a marker packet in the network packets stream.
- Parameters
-
| handle | a handle to the device |
| seq | sequence number of the marker to insert |
- Return values
-
| ProfisharkAPIRet_Success | on success |
| ProfisharkAPIRet_NoDev | if the device does not exist |