|
Profishark API 2.6.1.0
|
Retrieve statistics from a Profishark device. More...
Data Structures | |
| struct | ProfisharkApiStatisticsV1Port |
| Statistics structure for a single port of a device supporting V1 model. More... | |
| struct | ProfisharkApiStatisticsV1 |
| Statistics structure for devices supporting V1 model. More... | |
| struct | ProfisharkApiStatisticsV2 |
| Statistics structure for devices supporting V2 model. More... | |
| struct | ProfisharkApiStatistics |
| Statistics structure for a Profishark device. More... | |
| struct | ProfisharkApiCounterV2 |
| Counter V2 description. More... | |
Macros | |
| #define | PROFISHARKAPI_STATISTICSV2_COUNTERS 16 |
| The maximum number of counters available in a device supporting V2 statistics model. | |
Typedefs | |
| 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. | |
Enumerations | |
| enum | ProfisharkApiStatisticsVersion { ProfisharkApiStatisticsVersion_1 = 1 , ProfisharkApiStatisticsVersion_2 = 2 } |
| Statistics model version. | |
| enum | ProfisharkApiCounterV2SizeMode { ProfisharkApiCounterV2SizeMode_SizeModeDontCare = -1 , ProfisharkApiCounterV2SizeMode_SizeModeGreaterThan , ProfisharkApiCounterV2SizeMode_SizeModeLessThan , ProfisharkApiCounterV2SizeMode_SizeModeEqual } |
| Counter V2 size comparison mode. More... | |
| enum | ProfisharkApiCounterV2Mode { ProfisharkApiCounterV2Mode_CounterModePackets , ProfisharkApiCounterV2Mode_CounterModeBytes } |
| Counter V2 mode. More... | |
Functions | |
| PROFISHARKAPI_API ProfisharkAPIRet | ProfisharkAPIGetStatistics (ProfisharkApiDeviceHandle handle, ProfisharkApiStatistics *statistics) |
| Get device statistics. | |
| PROFISHARKAPI_API ProfisharkAPIRet | ProfisharkAPISetCounterV2 (ProfisharkApiDeviceHandle handle, ProfisharkApiCounterV2 counter) |
| Set device counter configuration. | |
| PROFISHARKAPI_API ProfisharkAPIRet | ProfisharkAPIGetCounterV2 (ProfisharkApiDeviceHandle handle, int n, ProfisharkApiCounterV2 *counter) |
| Get device counter configuration. | |
| PROFISHARKAPI_API ProfisharkAPIRet | ProfisharkAPISetMarker (ProfisharkApiDeviceHandle handle, uint32_t seq) |
| Insert a marker packet in the network packets stream. | |
Retrieve statistics from a Profishark device.
| 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.
Counter V2 size comparison mode.
| PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIGetCounterV2 | ( | ProfisharkApiDeviceHandle | handle, |
| int | n, | ||
| ProfisharkApiCounterV2 * | counter | ||
| ) |
Get device counter configuration.
| 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 |
| ProfisharkAPIRet_Success | on success |
| ProfisharkAPIRet_NoDev | if the device does not exist |
| PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIGetStatistics | ( | ProfisharkApiDeviceHandle | handle, |
| ProfisharkApiStatistics * | statistics | ||
| ) |
Get device statistics.
| handle | a handle to the device | |
| [out] | statistics | a ProfisharkApiStatistics that will hold statistics |
| ProfisharkAPIRet_Success | on success |
| ProfisharkAPIRet_NoDev | if the device does not exist |
| PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPISetCounterV2 | ( | ProfisharkApiDeviceHandle | handle, |
| ProfisharkApiCounterV2 | counter | ||
| ) |
Set device counter configuration.
| handle | a handle to the device |
| counter | the ProfisharkApiCounterV2 structure containing the counter configuration |
| ProfisharkAPIRet_Success | on success |
| ProfisharkAPIRet_NoDev | if the device does not exist |
| PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPISetMarker | ( | ProfisharkApiDeviceHandle | handle, |
| uint32_t | seq | ||
| ) |
Insert a marker packet in the network packets stream.
| handle | a handle to the device |
| seq | sequence number of the marker to insert |
| ProfisharkAPIRet_Success | on success |
| ProfisharkAPIRet_NoDev | if the device does not exist |