Profishark API 2.6.1.0
ProfisharkAPI.h
Go to the documentation of this file.
1
5#pragma once
6
7#if defined(__unix__) || defined(_CVI_)
8#ifdef PROFISHARKAPI_EXPORTS
9#define PROFISHARKAPI_API_DEPRECATED __attribute__((visibility("default"), deprecated))
10#define PROFISHARKAPI_API __attribute__((visibility("default")))
11#else
12#define PROFISHARKAPI_API_DEPRECATED __attribute__((deprecated))
13#define PROFISHARKAPI_API
14#endif
15#elif defined(_WIN32) || defined(WIN32)
16#ifdef PROFISHARKAPI_EXPORTS
17#define PROFISHARKAPI_API_DEPRECATED __declspec(dllexport, deprecated)
18#define PROFISHARKAPI_API __declspec(dllexport)
19#else
20#define PROFISHARKAPI_API_DEPRECATED __declspec(dllimport, deprecated)
21#define PROFISHARKAPI_API __declspec(dllimport)
22#endif
23#elif defined(__APPLE__)
24#define PROFISHARKAPI_API_DEPRECATED __attribute__((visibility("default"), deprecated))
25#define PROFISHARKAPI_API __attribute__((visibility("default")))
26#else
27#error Your compiler is not supported
28#endif
29
30#define PROFISHARK_MAX_FILENAME_PATTERN_LENGTH 200
31#define PROFISHARK_PATTERN_EXPANSION 5
32#define PROFISHARK_MAX_FILENAME_LENGTH 4096
33#define PROFISHARK_MAX_CAPTURE_DIRECTORY_LENGTH (PROFISHARK_MAX_FILENAME_LENGTH - PROFISHARK_MAX_FILENAME_PATTERN_LENGTH - PROFISHARK_PATTERN_EXPANSION - 1)
34
35#include <stdint.h>
36
37#ifdef __cplusplus
38extern "C" {
39#else
40#if defined(__unix__)
41#include <stdbool.h>
42#include <stddef.h>
43#elif defined(_CVI_)
44#include <stdbool.h>
45#endif
46#endif
47
51typedef enum ProfisharkAPIRet
52{
73
78{
83
89{
112
118{
145
151{
152 uint8_t usb_mode;
154
160{
168
173{
178
183{
188
194{
199
205{
225 uint16_t SlicingLength;
229 uint8_t HWFirmwareId;
231
237{
249
255{
256 ProfisharkAPIDevicePortSpeed PortsSpeed[2];
258
264{
265 uint8_t v[4];
267
273{
274 uint32_t v;
276
282{
287
293{
297
303{
311
317{
321
327{
332
338{
339 bool valid;
343
351{
352 ProfisharkApiSFPPortsStatusEncoding_Unspecified = 0x00,
353 ProfisharkApiSFPPortsStatusEncoding_8B10B = 0x01,
354 ProfisharkApiSFPPortsStatusEncoding_4B5B = 0x02,
355 ProfisharkApiSFPPortsStatusEncoding_NRZ = 0x03,
356 ProfisharkApiSFPPortsStatusEncoding_Manchester = 0x04,
357 ProfisharkApiSFPPortsStatusEncoding_SONET_Scrambled = 0x05,
358 ProfisharkApiSFPPortsStatusEncoding_64B66B = 0x06,
360
368{
369 ProfisharkApiSFPPortsRateID_Unspecified = 0x00,
370 ProfisharkApiSFPPortsRateID_SFF_8079 = 0x01,
371 ProfisharkApiSFPPortsRateID_SFF_8431_RXOnly = 0x02,
372 ProfisharkApiSFPPortsRateID_SFF_8431_TXOnly = 0x04,
373 ProfisharkApiSFPPortsRateID_SFF_8431 = 0x06,
374 ProfisharkApiSFPPortsRateID_FC_PI_5_RXOnly = 0x08,
375 ProfisharkApiSFPPortsRateID_FC_PI_5 = 0x0a,
377
386{
387 ProfisharkApiSFPPortsIdentifier_Unknown,
388 ProfisharkApiSFPPortsIdentifier_GBIC,
389 ProfisharkApiSFPPortsIdentifier_SolderedToMB,
390 ProfisharkApiSFPPortsIdentifier_SFP_SFPPlus,
391 ProfisharkApiSFPPortsIdentifier_300pinXBI,
392 ProfisharkApiSFPPortsIdentifier_XENPAK,
393 ProfisharkApiSFPPortsIdentifier_XFP,
394 ProfisharkApiSFPPortsIdentifier_XFF,
395 ProfisharkApiSFPPortsIdentifier_XFP_E,
396 ProfisharkApiSFPPortsIdentifier_XPAK,
397 ProfisharkApiSFPPortsIdentifier_X2,
398 ProfisharkApiSFPPortsIdentifier_DWDM_SFP,
399 ProfisharkApiSFPPortsIdentifier_QSFP,
400 ProfisharkApiSFPPortsIdentifier_QSFPPlus,
401 ProfisharkApiSFPPortsIdentifier_CXP,
403
412{
413 ProfisharkApiSFPPortsConnector_Unknown,
414 ProfisharkApiSFPPortsConnector_SC,
415 ProfisharkApiSFPPortsConnector_FCStyle1Copper,
416 ProfisharkApiSFPPortsConnector_FCStyle2Copper,
417 ProfisharkApiSFPPortsConnector_BNC_TNC,
418 ProfisharkApiSFPPortsConnector_FCCoax,
419 ProfisharkApiSFPPortsConnector_FiberJack,
420 ProfisharkApiSFPPortsConnector_LC,
421 ProfisharkApiSFPPortsConnector_MT_RJ,
422 ProfisharkApiSFPPortsConnector_MU,
423 ProfisharkApiSFPPortsConnector_SG,
424 ProfisharkApiSFPPortsConnector_OpticalPigtail,
425 ProfisharkApiSFPPortsConnector_MPOParallelOptic,
426 ProfisharkApiSFPPortsConnector_HSSDC_II,
427 ProfisharkApiSFPPortsConnector_CopperPigtail,
428 ProfisharkApiSFPPortsConnector_RJ45,
430
436{
443
451{
452 ProfisharkApiSFPPortsSFF8472_Undefined,
453 ProfisharkApiSFPPortsSFF8472_Rev9_3,
454 ProfisharkApiSFPPortsSFF8472_Rev9_5,
455 ProfisharkApiSFPPortsSFF8472_Rev10_2,
456 ProfisharkApiSFPPortsSFF8472_Rev10_4,
457 ProfisharkApiSFPPortsSFF8472_Rev_11_0,
459
465{
466 ProfisharkApiSFPPortsDiagFlags_Alarm_Temperature = 0x1,
467 ProfisharkApiSFPPortsDiagFlags_Alarm_VCC = 0x2,
468 ProfisharkApiSFPPortsDiagFlags_Alarm_TXBias = 0x4,
469 ProfisharkApiSFPPortsDiagFlags_Alarm_TXPower = 0x8,
470 ProfisharkApiSFPPortsDiagFlags_Alarm_RXPower = 0x10,
471 ProfisharkApiSFPPortsDiagFlags_Warning_Temperature = 0x20,
472 ProfisharkApiSFPPortsDiagFlags_Warning_VCC = 0x40,
473 ProfisharkApiSFPPortsDiagFlags_Warning_TXBias = 0x80,
474 ProfisharkApiSFPPortsDiagFlags_Warning_TXPower = 0x100,
475 ProfisharkApiSFPPortsDiagFlags_Warning_RXPower = 0x200,
476 ProfisharkApiSFPPortsDiagFlags_Gpio_TXDisable = 0x400,
477 ProfisharkApiSFPPortsDiagFlags_Gpio_TXFault = 0x800,
478 ProfisharkApiSFPPortsDiagFlags_Gpio_RXLOS = 0x1000,
480
486{
490
496{
500
506{
510
516{
521
527{
528 ProfisharkApiSFPPortsSONETReachSpecifier_SR,
529 ProfisharkApiSFPPortsSONETReachSpecifier_SR_1,
530 ProfisharkApiSFPPortsSONETReachSpecifier_IR_1,
531 ProfisharkApiSFPPortsSONETReachSpecifier_IR_2,
532 ProfisharkApiSFPPortsSONETReachSpecifier_LR_1,
533 ProfisharkApiSFPPortsSONETReachSpecifier_LR_2,
534 ProfisharkApiSFPPortsSONETReachSpecifier_LR_3,
535 ProfisharkApiSFPPortsSONETReachSpecifier_Unknown,
537
543{
545 char VendorName[17];
547 char Model[17];
548 char Revision[5];
549 char DateCode[14];
550 char SerialNo[17];
641 float VCC;
642 float TxBias;
643 float TXPower;
644 float RXPower;
665 uint32_t DiagFlags;
669
675{
676 bool valid;
680
686{
687 ProfisharkApiPHYRegistersMasterSlave_Master,
688 ProfisharkApiPHYRegistersMasterSlave_Slave,
689 ProfisharkApiPHYRegistersMasterSlave_NA,
691
697{
699 ProfisharkAPIFlagState LPAutoNegCapable;
700 ProfisharkAPIFlagState LPNextPageCapable;
701 ProfisharkAPIFlagState NextPageRequest;
702 ProfisharkAPIFlagState Acknowledge;
703 ProfisharkAPIFlagState Advertise1000BASET_FDX;
704 ProfisharkAPIFlagState Advertise1000BASET_HDX;
705 ProfisharkAPIFlagState Advertise100BASETX_FDX;
706 ProfisharkAPIFlagState Advertise100BASETX_HDX;
707 ProfisharkAPIFlagState Advertise10BASET_FDX;
708 ProfisharkAPIFlagState Advertise10BASET_HDX;
709 ProfisharkAPIFlagState AdvertiseAsymmetricPause;
710 ProfisharkAPIFlagState AdvertiseSymmetricPause;
711 ProfisharkAPIFlagState ParallelDetectionFault;
712 ProfisharkAPIFlagState RemoteFault;
713 ProfisharkAPIFlagState MasterSlaveFault;
714 ProfisharkAPIFlagState LocalReceiver;
715 ProfisharkAPIFlagState RemoteReceiver;
716 uint8_t IdleErrorCount;
717 ProfisharkAPIFlagState _100BASETX_LockError;
718 ProfisharkAPIFlagState _100BASETX_ReceiveError;
719 ProfisharkAPIFlagState _100BASETX_TransmitError;
720 ProfisharkAPIFlagState _100BASETX_SSDError;
721 ProfisharkAPIFlagState _100BASETX_ESDError;
722 ProfisharkAPIFlagState _1000BASET_LockError;
723 ProfisharkAPIFlagState _1000BASET_ReceiveError;
724 ProfisharkAPIFlagState _1000BASET_TransmitError;
725 ProfisharkAPIFlagState _1000BASET_SSDError;
726 ProfisharkAPIFlagState _1000BASET_ESDError;
727 ProfisharkAPIFlagState _1000BASET_CarrierExtensionError;
728 ProfisharkAPIFlagState MDICrossoverError;
730
736{
737 bool valid;
741
747{
752
758{
759 ProfisharkApiStatisticsVersion_1 = 1,
760 ProfisharkApiStatisticsVersion_2 = 2,
762
768{
769 uint64_t LessThan64;
771 uint64_t MoreThan1518;
772 uint64_t Collision;
773 uint64_t CrcError;
774 uint64_t Jabber;
775 uint64_t Bytes;
776 uint64_t MaximumBytes;
777 uint64_t TotalValid;
778 uint64_t TotalInvalid;
781
787{
788 uint64_t Date;
790 uint64_t LinkUp;
791 uint64_t LinkDown;
793 uint64_t BogusBytes;
794 uint64_t TotalPackets;
796
801#define PROFISHARKAPI_STATISTICSV2_COUNTERS 16
802
807#define PROFISHARKAPI_MEMORYCAPTURE_BUFFER_LENGTH (16384*4*8)
808
814{
815 uint64_t Date;
818 uint64_t BogusBytes;
819 uint64_t TotalPackets;
821
827{
836 union
837 {
840 };
842
848{
854
855
861{
865
875{
876 int n;
888 int size;
890 uint8_t ip[16];
891 uint8_t ipMask[16];
896
901#pragma pack(push, 1)
903{
904 union {
905 struct {
906 bool isIPv4;
907 bool isIPv6;
908 bool isARP;
909 bool isTCP;
910 bool isUDP;
911 bool isICMP;
912 bool isIGMP;
913 bool isHTTPS;
914 bool isHTTP;
915 bool isFTP;
916 bool isDNS;
917 bool isSMTP;
918 bool isPOP3;
919 bool isDHCP;
920 bool isSSH;
921 bool isSIP;
922 bool isSMB;
929 bool isQUIC;
930 bool isVLAN;
933 };
934 bool type[26];
935 };
937#pragma pack(pop)
938
944{
946 uint8_t Data[32];
947 uint32_t Mask;
949
955{
965
971{
976
982{
984 uint32_t flags;
985 uint16_t mode;
986 uint8_t DestinationMAC[6];
987 uint8_t SourceMAC[6];
988 uint8_t DestinationIP[16];
989 uint8_t SourceIP[16];
991 uint16_t SourcePort;
992 unsigned int DestinationMACMask : 6;
993 unsigned int SourceMACMask : 6;
994 unsigned int DestinationIPMask : 16;
995 unsigned int SourceIPMask : 16;
996 unsigned int DestinationPortMask : 2;
997 unsigned int SourcePortMask : 2;
998 uint16_t VLANid;
999 uint16_t VLANidMask;
1001
1007{
1018 uint32_t sec;
1019 uint32_t nsec;
1021
1027{
1032
1038{
1043
1049{
1050 int hour;
1051 int minute;
1052 int second;
1053 int year;
1054 int month;
1055 int day;
1057
1063{
1072 double Deviation;
1077
1084{
1087
1093{
1097 wchar_t * FileName;
1104
1110{
1135
1141{
1144 uint64_t UsedCache;
1145 uint64_t BytesWritten;
1146 uint64_t BytesDropped;
1149 uint64_t FilesWritten;
1151
1156#define PROFISHARK_MAX_HW_NAME_LENGTH 32
1157
1162#define PROFISHARK_MAX_HW_COUNT 4
1163
1169{
1172
1178{
1179 int count;
1182
1188{
1192
1198{
1203
1209{
1210 float Voltage;
1211 float Current;
1212 bool ReturnPaths[4];
1214
1220{
1224
1230{
1231 float slope;
1232 float offset;
1234
1240{
1241 uint64_t CalibrationDate;
1246
1252{
1255
1261#define IS_PROFISHARK_API_SUCCESS(a) (a==ProfisharkAPIRet_Success)
1262
1270
1274#define PROFISHARK_API_INVALID_HANDLE ((void*)-1)
1275
1284
1293
1302
1307PROFISHARKAPI_API void ProfisharkApiSleepMs(int ms);
1308
1313PROFISHARKAPI_API uint64_t ProfisharkApiGetEpoch();
1314
1320
1329
1337
1339{
1340 struct ProfisharkApiDeviceNode * next;
1343
1345{
1346 struct ProfisharkApiDeviceNode * dev;
1347 int count;
1349
1350PROFISHARKAPI_API void ProfisharkApiDeviceListFree(ProfisharkApiDeviceList * list);
1351
1358
1368PROFISHARKAPI_API_DEPRECATED ProfisharkAPIRet ProfisharkAPIAddNewDeviceCallback(ProfisharkApiCallback callback, void * context);
1369
1379
1389PROFISHARKAPI_API_DEPRECATED ProfisharkAPIRet ProfisharkAPIAddDeviceGoneCallback(ProfisharkApiCallback callback, void * context);
1390
1400
1409#ifdef __cplusplus
1411#else
1413#endif
1414
1424
1433
1442
1451#ifdef __cplusplus
1453#else
1455#endif
1456
1465#ifdef __cplusplus
1467#else
1469#endif
1470
1481
1490#ifdef __cplusplus
1492#else
1494#endif
1495
1505
1514#ifdef __cplusplus
1516#else
1518#endif
1519
1528
1537
1546#ifdef __cplusplus
1548#else
1550#endif
1551
1560#ifdef __cplusplus
1562#else
1564#endif
1565
1574#ifdef __cplusplus
1576#else
1578#endif
1579
1589
1599#ifdef __cplusplus
1601#else
1603#endif
1604
1614
1623#ifdef __cplusplus
1625#else
1627#endif
1628
1637
1647
1656#ifdef __cplusplus
1658#else
1660#endif
1661
1670
1680
1689#ifdef __cplusplus
1691#else
1693#endif
1694
1703
1713
1722#ifdef __cplusplus
1724#else
1726#endif
1727
1738
1748
1757
1766
1775#ifdef __cplusplus
1777#else
1779#endif
1780
1790
1799
1810#ifdef __cplusplus
1811PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIMemoryCaptureGet(ProfisharkApiDeviceHandle handle, uint8_t * buffer, int & length);
1812#else
1813PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIMemoryCaptureGet(ProfisharkApiDeviceHandle handle, uint8_t * buffer, int * length);
1814#endif
1815
1826#ifdef __cplusplus
1827PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIMemoryCaptureGetHeader(ProfisharkApiDeviceHandle handle, uint8_t * buffer, int & length);
1828#else
1829PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIMemoryCaptureGetHeader(ProfisharkApiDeviceHandle handle, uint8_t * buffer, int * length);
1830#endif
1831
1841
1853PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIGPSOutputRead(ProfisharkApiDeviceHandle handle, char * data, int len, int * transferred);
1854
1864
1875
1885
1896
1902{
1906
1912{
1913 wchar_t filename[PROFISHARK_MAX_FILENAME_LENGTH];
1915
1921{
1922 ProfisharkAPIPort Port;
1927
1937#ifdef __cplusplus
1939#else
1941#endif
1942
1952#ifdef __cplusplus
1954#else
1956#endif
1957
1967#ifdef __cplusplus
1969#else
1971#endif
1972
1982#ifdef __cplusplus
1984#else
1986#endif
1987
1997#ifdef __cplusplus
1999#else
2001#endif
2002
2003
2013
2014
2024
2025#ifdef __cplusplus
2026}
2027#endif
ProfisharkAPIRet
Error constants.
Definition: ProfisharkAPI.h:52
@ ProfisharkAPIRet_Again
Definition: ProfisharkAPI.h:66
@ ProfisharkAPIRet_CannotCreateFile
Definition: ProfisharkAPI.h:59
@ ProfisharkAPIRet_NotStarted
Definition: ProfisharkAPI.h:69
@ ProfisharkAPIRet_Success
Definition: ProfisharkAPI.h:53
@ ProfisharkAPIRet_Failed
Definition: ProfisharkAPI.h:54
@ ProfisharkAPIRet_CannotOpenFile
Definition: ProfisharkAPI.h:67
@ ProfisharkAPIRet_CacheTooSmall
Definition: ProfisharkAPI.h:62
@ ProfisharkAPIRet_NotImplemented
Definition: ProfisharkAPI.h:64
@ ProfisharkAPIRet_InvalidFirmware
Definition: ProfisharkAPI.h:68
@ ProfisharkAPIRet_BadPattern
Definition: ProfisharkAPI.h:71
@ ProfisharkAPIRet_CannotAllocateCache
Definition: ProfisharkAPI.h:60
@ ProfisharkAPIRet_Exist
Definition: ProfisharkAPI.h:55
@ ProfisharkAPIRet_CaptureNotReady
Definition: ProfisharkAPI.h:61
@ ProfisharkAPIRet_Unsupported
Definition: ProfisharkAPI.h:58
@ ProfisharkAPIRet_TooSmall
Definition: ProfisharkAPI.h:63
@ ProfisharkAPIRet_NoMem
Definition: ProfisharkAPI.h:70
@ ProfisharkAPIRet_NotReady
Definition: ProfisharkAPI.h:65
@ ProfisharkAPIRet_NoDev
Definition: ProfisharkAPI.h:57
@ ProfisharkAPIRet_NotExist
Definition: ProfisharkAPI.h:56
ProfisharkAPIFlagState
State of a flag.
Definition: ProfisharkAPI.h:78
@ ProfisharkAPIFlagState_Unknown
Definition: ProfisharkAPI.h:81
@ ProfisharkAPIFlagState_No
Definition: ProfisharkAPI.h:79
@ ProfisharkAPIFlagState_Yes
Definition: ProfisharkAPI.h:80
ProfisharkAPIPort
Enabled/Disabled states.
Definition: ProfisharkAPI.h:183
@ ProfisharkAPIPort_Invalid
Definition: ProfisharkAPI.h:186
@ ProfisharkAPIPort_A
Definition: ProfisharkAPI.h:184
@ ProfisharkAPIPort_B
Definition: ProfisharkAPI.h:185
ProfisharkAPIState
Enabled/Disabled states.
Definition: ProfisharkAPI.h:173
@ ProfisharkAPIState_Enabled
Definition: ProfisharkAPI.h:175
@ ProfisharkAPIState_Disabled
Definition: ProfisharkAPI.h:174
@ ProfisharkAPIState_DontCare
Definition: ProfisharkAPI.h:176
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIRemoveDeviceCallback(ProfisharkApiDeviceHandle handle, ProfisharkApiDeviceCallbackType type, ProfisharkApiCallbackExt callback)
Remove a device callback function.
void(* ProfisharkApiCallbackExt)(ProfisharkApiDeviceHandle, ProfisharkApiCallbackValue *, void *)
Callback function.
Definition: ProfisharkAPI.h:1301
void * ProfisharkApiCallbackValue
Profishark callback value.
Definition: ProfisharkAPI.h:1283
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIRemoveGlobalCallback(ProfisharkApiGlobalCallbackType type, ProfisharkApiCallbackExt callback)
Remove a global callback function.
struct ProfisharkApiCallbackValue_DiskDump ProfisharkApiCallbackValue_DiskDump
A structure describing the event passed to a ProfisharkApiDeviceCallbackType_DiskDump callback.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIAddGlobalCallback(ProfisharkApiGlobalCallbackType type, ProfisharkApiCallbackExt callback, void *context)
Add a global callback function.
ProfisharkApiDeviceCallbackType
Device specific callback types.
Definition: ProfisharkAPI.h:1198
PROFISHARKAPI_API_DEPRECATED ProfisharkAPIRet ProfisharkAPIAddDeviceGoneCallback(ProfisharkApiCallback callback, void *context)
Add a new function to be called when a Profishark device is disconnected.
PROFISHARKAPI_API_DEPRECATED ProfisharkAPIRet ProfisharkAPIRemoveNewDeviceCallback(ProfisharkApiCallback callback)
Remove a function from the list of functions called when a new Profishark device is detected.
PROFISHARKAPI_API_DEPRECATED ProfisharkAPIRet ProfisharkAPIAddNewDeviceCallback(ProfisharkApiCallback callback, void *context)
Add a new function to be called when a new Profishark device is detected.
void(* ProfisharkApiCallback)(ProfisharkApiDeviceHandle, void *)
Callback function.
Definition: ProfisharkAPI.h:1292
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIAddDeviceCallback(ProfisharkApiDeviceHandle handle, ProfisharkApiDeviceCallbackType type, ProfisharkApiCallbackExt callback, void *context)
Add a device callback function.
ProfisharkApiGlobalCallbackType
Global callback types.
Definition: ProfisharkAPI.h:1188
struct ProfisharkApiCallbackValue_LinkStatus ProfisharkApiCallbackValue_LinkStatus
A structure describing the event passed to a ProfisharkApiDeviceCallbackType_LinkStatus callback.
PROFISHARKAPI_API_DEPRECATED ProfisharkAPIRet ProfisharkAPIRemoveDeviceGoneCallback(ProfisharkApiCallback callback)
Remove a function from the list of functions called when a new Profishark device is disconnected.
struct ProfisharkApiCallbackValue_DiskDumpNewFile ProfisharkApiCallbackValue_DiskDumpNewFile
A structure describing the event passed to a ProfisharkApiDeviceCallbackType_DiskDumpNewFile callback...
@ ProfisharkApiDeviceCallbackType_LinkStatus
Definition: ProfisharkAPI.h:1201
@ ProfisharkApiDeviceCallbackType_DiskDump
Definition: ProfisharkAPI.h:1199
@ ProfisharkApiDeviceCallbackType_DiskDumpNewFile
Definition: ProfisharkAPI.h:1200
@ ProfisharkApiGlobalCallbackType_NewDevice
Definition: ProfisharkAPI.h:1189
@ ProfisharkApiGlobalCallbackType_DeviceRemoved
Definition: ProfisharkAPI.h:1190
void * ProfisharkApiDeviceHandle
Profishark device handle.
Definition: ProfisharkAPI.h:1269
PROFISHARKAPI_API ProfisharkApiDeviceList * ProfisharkAPIGetDevicesList(void)
Get a list containing the currently connected Profishark devices.
struct ProfisharkAPIDiskDumpConfigEx ProfisharkAPIDiskDumpConfigEx
Direct capture configuration.
struct ProfisharkAPIDiskDumpStatus ProfisharkAPIDiskDumpStatus
Direct capture status.
struct ProfisharkAPIDiskDumpConfig ProfisharkAPIDiskDumpConfig
Direct capture configuration.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIDiskDumpStart(ProfisharkApiDeviceHandle handle)
Start direct capture.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIDiskDumpGetStatus(ProfisharkApiDeviceHandle handle, ProfisharkAPIDiskDumpStatus *status)
Get direct capture status.
PROFISHARKAPI_API_DEPRECATED ProfisharkAPIRet ProfisharkAPIDiskDumpSetConfig(ProfisharkApiDeviceHandle handle, ProfisharkAPIDiskDumpConfig config)
Set direct capture configuration.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIDiskDumpStop(ProfisharkApiDeviceHandle handle)
Stop direct capture.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIDiskDumpSetConfigEx(ProfisharkApiDeviceHandle handle, ProfisharkAPIDiskDumpConfigEx config)
Set direct capture configuration.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIGetDeviceFeatures(ProfisharkApiDeviceHandle handle, ProfisharkAPIDeviceFeatures *features)
Get device features.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIRestartDevice(ProfisharkApiDeviceHandle handle)
Restart the device.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIGetHwFirmwaresDesc(ProfisharkApiDeviceHandle handle, ProfisharkAPIDeviceHWFirmwaresDesc *desc)
Get the name corresponding to a HW firmware id.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPISetDeviceFeatures(ProfisharkApiDeviceHandle handle, ProfisharkAPIDeviceFeatures features)
Set device features.
struct ProfisharkAPIDeviceFeatures ProfisharkAPIDeviceFeatures
Profishark device features.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPISetDevicePortsSpeed(ProfisharkApiDeviceHandle handle, ProfisharkAPIDevicePortsSpeed speed)
Set network ports supported speeds.
struct ProfisharkAPIDevicePortsSpeed ProfisharkAPIDevicePortsSpeed
Profishark ports speed.
ProfisharkAPITimestampMoment
Defines when the timestamp information is added to the packet.
Definition: ProfisharkAPI.h:194
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIGetDevicePortsSpeed(ProfisharkApiDeviceHandle handle, ProfisharkAPIDevicePortsSpeed *speed)
Get network ports supported speeds.
struct ProfisharkAPIDevicePortSpeed ProfisharkAPIDevicePortSpeed
Profishark port speed.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPISaveDeviceFeatures(ProfisharkApiDeviceHandle handle)
Save device features and ports speed to EEPROM.
@ ProfisharkAPITimestampMoment_Ingress
Definition: ProfisharkAPI.h:196
@ ProfisharkAPITimestampMoment_Egress
Definition: ProfisharkAPI.h:197
@ ProfisharkAPITimestampMoment_Capture
Definition: ProfisharkAPI.h:195
ProfisharkApiPacketFilterMode
Modes defining the comportement of packet filter fields.
Definition: ProfisharkAPI.h:971
ProfisharkApiPacketFilterFlags
Flags that enable of disable filters fields.
Definition: ProfisharkAPI.h:955
struct ProfisharkApiPacketFilter ProfisharkApiPacketFilter
Packet filter configuration.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIGetPacketFilter(ProfisharkApiDeviceHandle handle, ProfisharkApiPacketFilter *filter)
Get packet filter configuration.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPISetPacketsTypeFilter(ProfisharkApiDeviceHandle handle, ProfisharkApiPacketsTypeFilter filter)
Set packets type filter configuration.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIGetPacketsTypeFilter(ProfisharkApiDeviceHandle handle, ProfisharkApiPacketsTypeFilter *filter)
Get packets type filter configuration.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPISetDpiFilter(ProfisharkApiDeviceHandle handle, ProfisharkApiDpiFilter filter)
Set DPI filter configuration.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPISaveDpiFilter(ProfisharkApiDeviceHandle handle)
Save DPI filter configuration.
struct ProfisharkApiPacketsTypeFilter ProfisharkApiPacketsTypeFilter
Packets type filter configuration.
struct ProfisharkApiDpiFilter ProfisharkApiDpiFilter
DPI filter configuration.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIGetDpiFilter(ProfisharkApiDeviceHandle handle, ProfisharkApiDpiFilter *filter)
Get DPI filter configuration.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPISavePacketsTypeFilter(ProfisharkApiDeviceHandle handle)
Save packets type filter configuration.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPISavePacketFilter(ProfisharkApiDeviceHandle handle)
Save packet filter configuration.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPISetPacketFilter(ProfisharkApiDeviceHandle handle, ProfisharkApiPacketFilter filter)
Set packet filter configuration.
@ ProfisharkApiPacketFilterMode_ipIsOr
Definition: ProfisharkAPI.h:973
@ ProfisharkApiPacketFilterMode_macIsOr
Definition: ProfisharkAPI.h:972
@ ProfisharkApiPacketFilterMode_portIsOr
Definition: ProfisharkAPI.h:974
@ ProfisharkApiPacketFilterFlags_isIPV6
Definition: ProfisharkAPI.h:956
@ ProfisharkApiPacketFilterFlags_dstPortEnabled
Definition: ProfisharkAPI.h:961
@ ProfisharkApiPacketFilterFlags_dstMacEnabled
Definition: ProfisharkAPI.h:957
@ ProfisharkApiPacketFilterFlags_srcMacEnabled
Definition: ProfisharkAPI.h:958
@ ProfisharkApiPacketFilterFlags_dstIpEnabled
Definition: ProfisharkAPI.h:959
@ ProfisharkApiPacketFilterFlags_srcPortEnabled
Definition: ProfisharkAPI.h:962
@ ProfisharkApiPacketFilterFlags_VLANidEnabled
Definition: ProfisharkAPI.h:963
@ ProfisharkApiPacketFilterFlags_srcIpEnabled
Definition: ProfisharkAPI.h:960
ProfisharkApiPortSpeed
Link speed.
Definition: ProfisharkAPI.h:303
ProfisharkApiPortMode
Port Mode.
Definition: ProfisharkAPI.h:293
struct ProfisharkApiHWVersion ProfisharkApiHWVersion
HW firmware version.
ProfisharkApiSFPPortsOptionsReceiverOutput
SFP module receiver output type.
Definition: ProfisharkAPI.h:506
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIGetDeviceMAC(ProfisharkApiDeviceHandle handle, uint8_t *mac)
Get device MAC address.
ProfisharkApiSFPPortsSFF8472
SFF8472 compliance.
Definition: ProfisharkAPI.h:451
#define PROFISHARK_MAX_HW_NAME_LENGTH
Maximum length of a HW firmware name.
Definition: ProfisharkAPI.h:1156
struct ProfisharkAPIDeviceExtraInfo ProfisharkAPIDeviceExtraInfo
Profishark device extra information.
ProfisharkApiSFPPortsDiagFlags
SFP module alarm, warning and gpios.
Definition: ProfisharkAPI.h:465
ProfisharkApiSFPPortsOptionsLaserPower
SFP module Laser power.
Definition: ProfisharkAPI.h:496
struct ProfisharkApiVersions ProfisharkApiVersions
firmwares and driver versions
ProfisharkApiSFPPortsIdentifier
SFP module identifier.
Definition: ProfisharkAPI.h:386
struct ProfisharkAPIDeviceHWFirmwareDesc ProfisharkAPIDeviceHWFirmwareDesc
Descriptions of a HW firmwares.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIGetVersions(ProfisharkApiDeviceHandle handle, ProfisharkApiVersions *versions)
Get device firmwares and driver versions.
struct ProfisharkApiRJ45PortStatus ProfisharkApiRJ45PortStatus
RJ45 port link status.
ProfisharkApiPHYRegistersMasterSlave
State of the master/slave resolution.
Definition: ProfisharkAPI.h:686
PROFISHARKAPI_API_DEPRECATED ProfisharkApiDeviceOptions ProfisharkAPIGetDeviceCapabilities(ProfisharkAPIDeviceType devType)
Get device capabilities.
ProfisharkApiSFPPortsRateID
SFP module rate ID.
Definition: ProfisharkAPI.h:368
struct ProfisharkApiSWVersion ProfisharkApiSWVersion
SW firmware or driver version.
ProfisharkApiPortDuplex
Link duplex.
Definition: ProfisharkAPI.h:317
ProfisharkApiSFPPortsImplementation
implementation state for various SFP module features
Definition: ProfisharkAPI.h:516
ProfisharkApiSFPPortsOptionsLaserType
SFP module Laser type.
Definition: ProfisharkAPI.h:486
struct ProfisharkApiPHYsRegisters ProfisharkApiPHYsRegisters
Describe all available PHYs registers.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIGetDeviceType(ProfisharkApiDeviceHandle handle, ProfisharkAPIDeviceType *type)
Get device type.
PROFISHARKAPI_API ProfisharkApiDeviceOptions ProfisharkAPIGetDeviceCapabilitiesEx(ProfisharkApiDeviceHandle handle)
Get device capabilities.
struct ProfisharkApiSFPPortStatus ProfisharkApiSFPPortStatus
Description of a SFP module.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIGetDeviceExtraInfo(ProfisharkApiDeviceHandle handle, ProfisharkAPIDeviceExtraInfo *info)
Get device extra information.
ProfisharkApiSFPPortsStatusEncoding
SFP module encoding.
Definition: ProfisharkAPI.h:351
struct ProfisharkApiPHYRegisters ProfisharkApiPHYRegisters
A PHY registers.
ProfisharkAPIDeviceType
Profishark devices models.
Definition: ProfisharkAPI.h:89
ProfisharkApiSFPPortsSONETReachSpecifier
SFP module SONET reach specifier.
Definition: ProfisharkAPI.h:527
#define PROFISHARK_MAX_HW_COUNT
Maximum number of HW firmwares.
Definition: ProfisharkAPI.h:1162
ProfisharkApiSFPPortsConnector
SFP module connector.
Definition: ProfisharkAPI.h:412
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIGetLinkStatus(ProfisharkApiDeviceHandle handle, ProfisharkApiLinkStatus *status)
Get device link status.
ProfisharkApiDeviceOptions
Profishark device capabilities.
Definition: ProfisharkAPI.h:118
struct ProfisharkApiSFPPortsStatus ProfisharkApiSFPPortsStatus
Describe all SFP ports.
struct ProfisharkApiRJ45PortsStatus ProfisharkApiRJ45PortsStatus
Describe all RJ45 ports.
struct ProfisharkAPIDeviceHWFirmwaresDesc ProfisharkAPIDeviceHWFirmwaresDesc
Descriptions of the supported HW firmwares.
struct ProfisharkApiLinkStatus ProfisharkApiLinkStatus
Device link status.
ProfisharkApiSFPPortsDiagMonitoringType
Diagnostic monitoring type.
Definition: ProfisharkAPI.h:436
@ ProfisharkApiPortSpeed_Unknown
Definition: ProfisharkAPI.h:308
@ ProfisharkApiPortSpeed_100Mbps
Definition: ProfisharkAPI.h:305
@ ProfisharkApiPortSpeed_1Gbps
Definition: ProfisharkAPI.h:306
@ ProfisharkApiPortSpeed_10Mbps
Definition: ProfisharkAPI.h:304
@ ProfisharkApiPortSpeed_Down
Definition: ProfisharkAPI.h:309
@ ProfisharkApiPortSpeed_10Gbps
Definition: ProfisharkAPI.h:307
@ ProfisharkApiPortMode_Inline
Definition: ProfisharkAPI.h:294
@ ProfisharkApiPortMode_Span
Definition: ProfisharkAPI.h:295
@ ProfisharkApiSFPPortsOptionsLinearReceiverOutput_Limiting
Definition: ProfisharkAPI.h:508
@ ProfisharkApiSFPPortsOptionsLinearReceiverOutput_Linear
Definition: ProfisharkAPI.h:507
@ ProfisharkApiSFPPortsOptionsLaserPower_Level1_Unspecified
Definition: ProfisharkAPI.h:498
@ ProfisharkApiSFPPortsOptionsLaserPower_Level2
Definition: ProfisharkAPI.h:497
@ ProfisharkApiPortDuplex_Full
Definition: ProfisharkAPI.h:318
@ ProfisharkApiPortDuplex_Half
Definition: ProfisharkAPI.h:319
@ ProfisharkApiSFPPortsImplementation_NotImplemented
Definition: ProfisharkAPI.h:518
@ ProfisharkApiSFPPortsImplementation_Implemented
Definition: ProfisharkAPI.h:517
@ ProfisharkApiSFPPortsImplementation_Implemented_Inverted
Definition: ProfisharkAPI.h:519
@ ProfisharkApiSFPPortsOptionsLaser_Cooled
Definition: ProfisharkAPI.h:487
@ ProfisharkApiSFPPortsOptionsLaser_Uncooled_Unspecified
Definition: ProfisharkAPI.h:488
@ ProfisharkAPIDeviceType_Profishark10G_GPS
Definition: ProfisharkAPI.h:102
@ ProfisharkAPIDeviceType_IOTA_1G
Definition: ProfisharkAPI.h:107
@ ProfisharkAPIDeviceType_None
Definition: ProfisharkAPI.h:90
@ ProfisharkAPIDeviceType_IOTA_10G
Definition: ProfisharkAPI.h:109
@ ProfisharkAPIDeviceType_Profishark1G_v6
Definition: ProfisharkAPI.h:104
@ ProfisharkAPIDeviceType_IOTA_1GPlus
Definition: ProfisharkAPI.h:108
@ ProfisharkAPIDeviceType_Profishark1GPlus_GPS_v2
Definition: ProfisharkAPI.h:106
@ ProfisharkAPIDeviceType_Profishark1G_v7
Definition: ProfisharkAPI.h:105
@ ProfisharkAPIDeviceType_C1GIGE_USB
Definition: ProfisharkAPI.h:94
@ ProfisharkAPIDeviceType_UnknownDevice
Definition: ProfisharkAPI.h:92
@ ProfisharkAPIDeviceType_Profishark10G
Definition: ProfisharkAPI.h:101
@ ProfisharkAPIDeviceType_BadDevice
Definition: ProfisharkAPI.h:91
@ ProfisharkAPIDeviceType_Profishark1GPlus_POE
Definition: ProfisharkAPI.h:98
@ ProfisharkAPIDeviceType_Profishark1G_v5
Definition: ProfisharkAPI.h:96
@ ProfisharkAPIDeviceType_IOTA_10GPlus
Definition: ProfisharkAPI.h:110
@ ProfisharkAPIDeviceType_Profishark1GPlus
Definition: ProfisharkAPI.h:95
@ ProfisharkAPIDeviceType_Profishark1G_v5_POE
Definition: ProfisharkAPI.h:97
@ ProfisharkAPIDeviceType_Profishark1GPlus_GPS_POE
Definition: ProfisharkAPI.h:100
@ ProfisharkAPIDeviceType_Profishark1G
Definition: ProfisharkAPI.h:93
@ ProfisharkAPIDeviceType_Profishark100
Definition: ProfisharkAPI.h:103
@ ProfisharkAPIDeviceType_Profishark1GPlus_GPS
Definition: ProfisharkAPI.h:99
@ ProfisharkApiDeviceOptions_PPS_Resolution_8ns
Definition: ProfisharkAPI.h:141
@ ProfisharkApiDeviceOptions_SpeedControl
Definition: ProfisharkAPI.h:129
@ ProfisharkApiDeviceOptions_PacketTypeFilter
Definition: ProfisharkAPI.h:139
@ ProfisharkApiDeviceOptions_CaptureNTPDisciplinedTimestamp
Definition: ProfisharkAPI.h:138
@ ProfisharkApiDeviceOptions_Basic
Definition: ProfisharkAPI.h:119
@ ProfisharkApiDeviceOptions_VLAN_Filter
Definition: ProfisharkAPI.h:143
@ ProfisharkApiDeviceOptions_10G_1G_Autoneg
Definition: ProfisharkAPI.h:142
@ ProfisharkApiDeviceOptions_Poe
Definition: ProfisharkAPI.h:124
@ ProfisharkApiDeviceOptions_DualPorts
Definition: ProfisharkAPI.h:120
@ ProfisharkApiDeviceOptions_Loopback
Definition: ProfisharkAPI.h:130
@ ProfisharkApiDeviceOptions_SpanMode
Definition: ProfisharkAPI.h:121
@ ProfisharkApiDeviceOptions_CaptureFullFrames
Definition: ProfisharkAPI.h:137
@ ProfisharkApiDeviceOptions_PcapNG
Definition: ProfisharkAPI.h:133
@ ProfisharkApiDeviceOptions_MultipleHW
Definition: ProfisharkAPI.h:136
@ ProfisharkApiDeviceOptions_SlicingLength
Definition: ProfisharkAPI.h:134
@ ProfisharkApiDeviceOptions_Phy88E3015
Definition: ProfisharkAPI.h:131
@ ProfisharkApiDeviceOptions_Update
Definition: ProfisharkAPI.h:123
@ ProfisharkApiDeviceOptions_PPS_Resolution_5ns
Definition: ProfisharkAPI.h:140
@ ProfisharkApiDeviceOptions_Gps
Definition: ProfisharkAPI.h:122
@ ProfisharkApiDeviceOptions_Filter
Definition: ProfisharkAPI.h:126
@ ProfisharkApiDeviceOptions_StatisticsV2
Definition: ProfisharkAPI.h:128
@ ProfisharkApiDeviceOptions_PhyVSC8502
Definition: ProfisharkAPI.h:135
@ ProfisharkApiDeviceOptions_StatisticsV1
Definition: ProfisharkAPI.h:127
@ ProfisharkApiDeviceOptions_Sfp
Definition: ProfisharkAPI.h:125
@ ProfisharkApiDeviceOptions_PhyVSC8641
Definition: ProfisharkAPI.h:132
@ ProfisharkApiSFPPortsDiagMonitoringType_IntCalibrated_AVPower
Definition: ProfisharkAPI.h:437
@ ProfisharkApiSFPPortsDiagMonitoringType_ExtCalibrated_OMA
Definition: ProfisharkAPI.h:440
@ ProfisharkApiSFPPortsDiagMonitoringType_ExtCalibrated_AVPower
Definition: ProfisharkAPI.h:439
@ ProfisharkApiSFPPortsDiagMonitoringType_IntCalibrated_OMA
Definition: ProfisharkAPI.h:438
@ ProfisharkApiSFPPortsDiagMonitoringType_None
Definition: ProfisharkAPI.h:441
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIUninitialize(void)
Cleanup internal library structures.
PROFISHARKAPI_API ProfisharkApiSWVersion ProfisharkAPIGetVersion(void)
Get API version.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIInitialize(void)
Initialize the Profishark library.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIMemoryCaptureStop(ProfisharkApiDeviceHandle handle)
Stop memory capture.
ProfisharkAPINetworkDataFormat
Output file format.
Definition: ProfisharkAPI.h:1084
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIMemoryCaptureGetHeader(ProfisharkApiDeviceHandle handle, uint8_t *buffer, int *length)
Get the file header corresponding to the requested format.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIMemoryCaptureStart(ProfisharkApiDeviceHandle handle, ProfisharkAPIMemoryCaptureConfig config)
Start memory capture.
struct ProfisharkAPIMemoryCaptureConfig ProfisharkAPIMemoryCaptureConfig
Memory capture configuration.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIMemoryCaptureGet(ProfisharkApiDeviceHandle handle, uint8_t *buffer, int *length)
Get network data.
@ ProfisharkAPINetworkDataFormat_PcapNG
Definition: ProfisharkAPI.h:1085
PROFISHARKAPI_API void ProfisharkApiSleepMs(int ms)
Sleeps for ms milliseconds.
PROFISHARKAPI_API uint64_t ProfisharkApiGetEpoch()
Get current Unix epoch (seconds since 01/01/1970).
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIPoeGetCalibrationData(ProfisharkApiDeviceHandle handle, ProfisharkApiPoeCalibrationData *result)
Read Power over Ethernet calibration data.
struct ProfisharkApiPoePairValues ProfisharkApiPoePairValues
Power over Ethernet pair measures.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIPoeGetMeasures(ProfisharkApiDeviceHandle handle, ProfisharkApiPoeValues *result)
Read Power over Ethernet values and calibration data.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIPoeSetCalibrationData(ProfisharkApiDeviceHandle handle, ProfisharkApiPoeCalibrationData *result)
Write Power over Ethernet calibration data.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIPoeGetRawMeasures(ProfisharkApiDeviceHandle handle, ProfisharkApiPoeValues *result)
Read Power over Ethernet uncalibrated values.
struct ProfisharkApiPoeCalibrationData ProfisharkApiPoeCalibrationData
Power over Ethernet calibration parameters.
struct ProfisharkApiPoeValues ProfisharkApiPoeValues
Power over Ethernet values and calibration parameters.
struct ProfisharkApiPoeChannelCalibrationData ProfisharkApiPoeChannelCalibrationData
Power over Ethernet calibration parameters.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIPoeResetCalibrationData(ProfisharkApiDeviceHandle handle)
Reset Power over Ethernet calibration data.
ProfisharkApiStatisticsVersion
Statistics model version.
Definition: ProfisharkAPI.h:758
ProfisharkApiCounterV2Mode
Counter V2 mode.
Definition: ProfisharkAPI.h:861
struct ProfisharkApiCounterV2 ProfisharkApiCounterV2
Counter V2 description.
#define PROFISHARKAPI_STATISTICSV2_COUNTERS
The maximum number of counters available in a device supporting V2 statistics model.
Definition: ProfisharkAPI.h:801
struct ProfisharkApiStatisticsV1Port ProfisharkApiStatisticsV1Port
Statistics structure for a single port of a device supporting V1 model.
struct ProfisharkApiStatistics ProfisharkApiStatistics
Statistics structure for a Profishark device.
struct ProfisharkApiStatisticsV1 ProfisharkApiStatisticsV1
Statistics structure for devices supporting V1 model.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPISetMarker(ProfisharkApiDeviceHandle handle, uint32_t seq)
Insert a marker packet in the network packets stream.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIGetCounterV2(ProfisharkApiDeviceHandle handle, int n, ProfisharkApiCounterV2 *counter)
Get device counter configuration.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIGetStatistics(ProfisharkApiDeviceHandle handle, ProfisharkApiStatistics *statistics)
Get device statistics.
struct ProfisharkApiStatisticsV2 ProfisharkApiStatisticsV2
Statistics structure for devices supporting V2 model.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPISetCounterV2(ProfisharkApiDeviceHandle handle, ProfisharkApiCounterV2 counter)
Set device counter configuration.
ProfisharkApiCounterV2SizeMode
Counter V2 size comparison mode.
Definition: ProfisharkAPI.h:848
@ ProfisharkApiCounterV2Mode_CounterModeBytes
Definition: ProfisharkAPI.h:863
@ ProfisharkApiCounterV2Mode_CounterModePackets
Definition: ProfisharkAPI.h:862
@ ProfisharkApiCounterV2SizeMode_SizeModeEqual
Definition: ProfisharkAPI.h:852
@ ProfisharkApiCounterV2SizeMode_SizeModeGreaterThan
Definition: ProfisharkAPI.h:850
@ ProfisharkApiCounterV2SizeMode_SizeModeLessThan
Definition: ProfisharkAPI.h:851
@ ProfisharkApiCounterV2SizeMode_SizeModeDontCare
Definition: ProfisharkAPI.h:849
struct ProfisharkAPITimingDataTime ProfisharkAPITimingDataTime
Represents a date and time.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIGetTimingStatus(ProfisharkApiDeviceHandle handle, ProfisharkAPITimingStatus *status)
Get timing board status.
ProfisharkAPITimingBoardState
State of device timing board.
Definition: ProfisharkAPI.h:1027
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPISetTimingTime(ProfisharkApiDeviceHandle handle, ProfisharkAPITimingTime time)
Set timestamp time information.
ProfisharkAPITimingFixState
State of the gps chip.
Definition: ProfisharkAPI.h:1038
struct ProfisharkAPITimingStatus ProfisharkAPITimingStatus
Status of the device timing board.
ProfisharkAPITimeSource
Time source for the timestamps.
Definition: ProfisharkAPI.h:160
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIGPSOutputFlush(ProfisharkApiDeviceHandle handle)
Flush GPS UART output interface.
struct ProfisharkAPITimingTime ProfisharkAPITimingTime
Timing configuration.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIGPSOutputRead(ProfisharkApiDeviceHandle handle, char *data, int len, int *transferred)
Fetch data from the GPS UART output interface.
@ ProfisharkAPITimingBoardState_Available
Definition: ProfisharkAPI.h:1028
@ ProfisharkAPITimingBoardState_Absent
Definition: ProfisharkAPI.h:1029
@ ProfisharkAPITimingBoardState_Locked
Definition: ProfisharkAPI.h:1030
@ ProfisharkAPITimingFixState_NoFix
Definition: ProfisharkAPI.h:1039
@ ProfisharkAPITimingFixState_2DFix
Definition: ProfisharkAPI.h:1040
@ ProfisharkAPITimingFixState_3DFix
Definition: ProfisharkAPI.h:1041
@ ProfisharkAPITimeSource_None
Definition: ProfisharkAPI.h:164
@ ProfisharkAPITimeSource_GPS
Definition: ProfisharkAPI.h:163
@ ProfisharkAPITimeSource_Manual
Definition: ProfisharkAPI.h:165
@ ProfisharkAPITimeSource_RTC
Definition: ProfisharkAPI.h:162
@ ProfisharkAPITimeSource_SNTP
Definition: ProfisharkAPI.h:166
@ ProfisharkAPITimeSource_System
Definition: ProfisharkAPI.h:161
Profishark device extra information.
Definition: ProfisharkAPI.h:151
uint8_t usb_mode
Definition: ProfisharkAPI.h:152
Profishark device features.
Definition: ProfisharkAPI.h:205
ProfisharkAPIState ForcePPSGeneration
Definition: ProfisharkAPI.h:216
ProfisharkAPIState DisablePortA
Definition: ProfisharkAPI.h:208
ProfisharkAPIState Slicing
Definition: ProfisharkAPI.h:210
ProfisharkAPIState DisablePortB
Definition: ProfisharkAPI.h:209
ProfisharkAPIState Autoneg1GPortA
Definition: ProfisharkAPI.h:226
ProfisharkAPITimestampMoment PortBTimestampMoment
Definition: ProfisharkAPI.h:222
uint16_t PPSCompensation
Definition: ProfisharkAPI.h:220
ProfisharkAPIState Loopback
Definition: ProfisharkAPI.h:212
ProfisharkAPIState SyncTimestamps
Definition: ProfisharkAPI.h:214
ProfisharkAPITimeSource TimeInitSource
Definition: ProfisharkAPI.h:217
ProfisharkAPIState EnableTimestamps
Definition: ProfisharkAPI.h:213
ProfisharkAPIState Autoneg1GPortB
Definition: ProfisharkAPI.h:227
ProfisharkAPIState KeepCRC32Field
Definition: ProfisharkAPI.h:207
ProfisharkAPIState PPSOutput
Definition: ProfisharkAPI.h:219
uint8_t HWFirmwareId
Definition: ProfisharkAPI.h:229
ProfisharkAPIState TransmitCrcErrors
Definition: ProfisharkAPI.h:206
uint16_t SlicingLength
Definition: ProfisharkAPI.h:225
ProfisharkAPITimestampMoment PortATimestampMoment
Definition: ProfisharkAPI.h:221
ProfisharkAPIState WaitForSync
Definition: ProfisharkAPI.h:218
ProfisharkAPIState StatisticsOnly
Definition: ProfisharkAPI.h:223
ProfisharkAPIState InlineMode
Definition: ProfisharkAPI.h:211
Descriptions of a HW firmwares.
Definition: ProfisharkAPI.h:1169
char name[PROFISHARK_MAX_HW_NAME_LENGTH]
Definition: ProfisharkAPI.h:1170
Descriptions of the supported HW firmwares.
Definition: ProfisharkAPI.h:1178
ProfisharkAPIDeviceHWFirmwareDesc Firmwares[PROFISHARK_MAX_HW_COUNT]
Definition: ProfisharkAPI.h:1180
int count
Definition: ProfisharkAPI.h:1179
Profishark port speed.
Definition: ProfisharkAPI.h:237
ProfisharkAPIState _1000_FullDuplex
Definition: ProfisharkAPI.h:239
ProfisharkAPIState AsymmetricPause
Definition: ProfisharkAPI.h:244
ProfisharkAPIState Autonegotiation
Definition: ProfisharkAPI.h:238
ProfisharkAPIState _100_FullDuplex
Definition: ProfisharkAPI.h:240
ProfisharkAPIState _10_FullDuplex
Definition: ProfisharkAPI.h:242
ProfisharkAPIState _10_HalfDuplex
Definition: ProfisharkAPI.h:243
ProfisharkAPIState _100_HalfDuplex
Definition: ProfisharkAPI.h:241
ProfisharkAPIState ForceMasterSlave
Definition: ProfisharkAPI.h:247
ProfisharkAPIState SymmetricPause
Definition: ProfisharkAPI.h:245
ProfisharkAPIState PreferMaster
Definition: ProfisharkAPI.h:246
Profishark ports speed.
Definition: ProfisharkAPI.h:255
Direct capture configuration.
Definition: ProfisharkAPI.h:1110
uint64_t MaximumCacheSize
Definition: ProfisharkAPI.h:1115
uint64_t MaximumFileSize
Definition: ProfisharkAPI.h:1114
uint32_t MaximumFileDuration
Definition: ProfisharkAPI.h:1117
ProfisharkAPIState StopIfCacheFull
Definition: ProfisharkAPI.h:1112
int FilesNumber
Definition: ProfisharkAPI.h:1116
wchar_t * FilenamePattern
Definition: ProfisharkAPI.h:1120
ProfisharkAPIState FullFrame
Definition: ProfisharkAPI.h:1118
wchar_t * CaptureDirectory
Definition: ProfisharkAPI.h:1119
ProfisharkAPIState Loop
Definition: ProfisharkAPI.h:1111
ProfisharkAPINetworkDataFormat FileFormat
Definition: ProfisharkAPI.h:1113
Direct capture configuration.
Definition: ProfisharkAPI.h:1093
uint64_t MaximumCacheSize
Definition: ProfisharkAPI.h:1099
uint64_t MaximumFileSize
Definition: ProfisharkAPI.h:1098
uint32_t MaximumFileDuration
Definition: ProfisharkAPI.h:1101
ProfisharkAPIState StopIfCacheFull
Definition: ProfisharkAPI.h:1095
int FilesNumber
Definition: ProfisharkAPI.h:1100
wchar_t * FileName
Definition: ProfisharkAPI.h:1097
ProfisharkAPIState FullFrame
Definition: ProfisharkAPI.h:1102
ProfisharkAPIState Loop
Definition: ProfisharkAPI.h:1094
ProfisharkAPINetworkDataFormat FileFormat
Definition: ProfisharkAPI.h:1096
Direct capture status.
Definition: ProfisharkAPI.h:1141
uint64_t MaximumCacheSize
Definition: ProfisharkAPI.h:1148
uint64_t BytesDropped
Definition: ProfisharkAPI.h:1146
uint64_t FilesWritten
Definition: ProfisharkAPI.h:1149
ProfisharkAPIRet ErrorStatus
Definition: ProfisharkAPI.h:1147
uint64_t UsedCache
Definition: ProfisharkAPI.h:1144
bool CaptureIsRunning
Definition: ProfisharkAPI.h:1142
bool HighCacheUsage
Definition: ProfisharkAPI.h:1143
uint64_t BytesWritten
Definition: ProfisharkAPI.h:1145
Memory capture configuration.
Definition: ProfisharkAPI.h:1252
ProfisharkAPINetworkDataFormat Format
Definition: ProfisharkAPI.h:1253
Represents a date and time.
Definition: ProfisharkAPI.h:1049
Status of the device timing board.
Definition: ProfisharkAPI.h:1063
int GLONASSSats
Definition: ProfisharkAPI.h:1068
ProfisharkAPIFlagState GPSPPS
Definition: ProfisharkAPI.h:1069
ProfisharkAPIFlagState TimestampSync
Definition: ProfisharkAPI.h:1071
int GPSSats
Definition: ProfisharkAPI.h:1067
ProfisharkAPITimeSource TimeSource
Definition: ProfisharkAPI.h:1074
int UsedSats
Definition: ProfisharkAPI.h:1066
int Precision
Definition: ProfisharkAPI.h:1073
ProfisharkAPITimingBoardState TimingBoardState
Definition: ProfisharkAPI.h:1064
struct ProfisharkAPITimingDataTime CurrentGPSTime
Definition: ProfisharkAPI.h:1075
ProfisharkAPITimingFixState Fix
Definition: ProfisharkAPI.h:1065
double Deviation
Definition: ProfisharkAPI.h:1072
ProfisharkAPIFlagState ExternalPPS
Definition: ProfisharkAPI.h:1070
Timing configuration.
Definition: ProfisharkAPI.h:1007
ProfisharkAPITimeSource source
Time Source.
Definition: ProfisharkAPI.h:1017
uint32_t sec
Definition: ProfisharkAPI.h:1018
uint32_t nsec
Definition: ProfisharkAPI.h:1019
A structure describing the event passed to a ProfisharkApiDeviceCallbackType_DiskDump callback.
Definition: ProfisharkAPI.h:1902
ProfisharkAPIRet ErrorStatus
Definition: ProfisharkAPI.h:1904
bool CaptureIsRunning
Definition: ProfisharkAPI.h:1903
A structure describing the event passed to a ProfisharkApiDeviceCallbackType_DiskDumpNewFile callback...
Definition: ProfisharkAPI.h:1912
wchar_t filename[PROFISHARK_MAX_FILENAME_LENGTH]
Definition: ProfisharkAPI.h:1913
Counter V2 description.
Definition: ProfisharkAPI.h:875
uint8_t ip[16]
Definition: ProfisharkAPI.h:890
ProfisharkAPIState isbcast
Definition: ProfisharkAPI.h:879
int size
Definition: ProfisharkAPI.h:888
ProfisharkAPIState isIPv6
Definition: ProfisharkAPI.h:878
ProfisharkApiCounterV2Mode mode
Definition: ProfisharkAPI.h:894
ProfisharkAPIState isudp
Definition: ProfisharkAPI.h:884
int n
Definition: ProfisharkAPI.h:876
ProfisharkAPIState isIPv4
Definition: ProfisharkAPI.h:877
ProfisharkAPIState port1
Definition: ProfisharkAPI.h:892
ProfisharkAPIState port2
Definition: ProfisharkAPI.h:893
ProfisharkAPIState iscrcValid
Definition: ProfisharkAPI.h:886
ProfisharkAPIState istcp
Definition: ProfisharkAPI.h:885
ProfisharkAPIState isucast
Definition: ProfisharkAPI.h:881
ProfisharkAPIState isicmp
Definition: ProfisharkAPI.h:883
ProfisharkAPIState isDropped
Definition: ProfisharkAPI.h:887
ProfisharkAPIState isvlan
Definition: ProfisharkAPI.h:882
ProfisharkAPIState ismcast
Definition: ProfisharkAPI.h:880
ProfisharkApiCounterV2SizeMode sizeMode
Definition: ProfisharkAPI.h:889
uint8_t ipMask[16]
Definition: ProfisharkAPI.h:891
Definition: ProfisharkAPI.h:1345
Definition: ProfisharkAPI.h:1339
DPI filter configuration.
Definition: ProfisharkAPI.h:944
uint8_t Data[32]
Definition: ProfisharkAPI.h:946
uint32_t Mask
Definition: ProfisharkAPI.h:947
ProfisharkAPIState Enabled
Definition: ProfisharkAPI.h:945
HW firmware version.
Definition: ProfisharkAPI.h:273
A PHY registers.
Definition: ProfisharkAPI.h:697
ProfisharkApiPHYRegistersMasterSlave MasterSlave
Definition: ProfisharkAPI.h:698
Describe all available PHYs registers.
Definition: ProfisharkAPI.h:736
bool valid
Definition: ProfisharkAPI.h:737
ProfisharkApiPHYRegisters phyRegisters[2]
Definition: ProfisharkAPI.h:739
int portsCount
Definition: ProfisharkAPI.h:738
Packet filter configuration.
Definition: ProfisharkAPI.h:982
unsigned int SourceIPMask
Definition: ProfisharkAPI.h:995
unsigned int SourceMACMask
Definition: ProfisharkAPI.h:993
uint16_t VLANidMask
Definition: ProfisharkAPI.h:999
unsigned int DestinationMACMask
Definition: ProfisharkAPI.h:992
uint16_t VLANid
Definition: ProfisharkAPI.h:998
uint16_t DestinationPort
Definition: ProfisharkAPI.h:990
uint8_t SourceIP[16]
Definition: ProfisharkAPI.h:989
uint8_t SourceMAC[6]
Definition: ProfisharkAPI.h:987
uint32_t flags
Definition: ProfisharkAPI.h:984
uint8_t DestinationMAC[6]
Definition: ProfisharkAPI.h:986
uint16_t SourcePort
Definition: ProfisharkAPI.h:991
unsigned int DestinationIPMask
Definition: ProfisharkAPI.h:994
unsigned int SourcePortMask
Definition: ProfisharkAPI.h:997
unsigned int DestinationPortMask
Definition: ProfisharkAPI.h:996
ProfisharkAPIState FilterEnabled
Definition: ProfisharkAPI.h:983
uint8_t DestinationIP[16]
Definition: ProfisharkAPI.h:988
uint16_t mode
Definition: ProfisharkAPI.h:985
Packets type filter configuration.
Definition: ProfisharkAPI.h:903
bool isSSH
Definition: ProfisharkAPI.h:920
bool isVLAN
Definition: ProfisharkAPI.h:930
bool isDHCP
Definition: ProfisharkAPI.h:919
bool isQUIC
Definition: ProfisharkAPI.h:929
bool isICMP
Definition: ProfisharkAPI.h:911
bool isSIP
Definition: ProfisharkAPI.h:921
bool isSMTP
Definition: ProfisharkAPI.h:917
bool isDNS
Definition: ProfisharkAPI.h:916
bool isTCPFlags_RST
Definition: ProfisharkAPI.h:925
bool isIGMP
Definition: ProfisharkAPI.h:912
bool isTCP
Definition: ProfisharkAPI.h:909
bool isL4Other
Definition: ProfisharkAPI.h:932
bool isTCPFlags_ACK
Definition: ProfisharkAPI.h:927
bool isTCPFlags_FIN
Definition: ProfisharkAPI.h:923
bool isFTP
Definition: ProfisharkAPI.h:915
bool isPOP3
Definition: ProfisharkAPI.h:918
bool isIPv4
Definition: ProfisharkAPI.h:906
bool isTCPFlags_SYN
Definition: ProfisharkAPI.h:924
bool isZeroWindow
Definition: ProfisharkAPI.h:928
bool isTCPFlags_PSH
Definition: ProfisharkAPI.h:926
bool isIPv6
Definition: ProfisharkAPI.h:907
bool isHTTPS
Definition: ProfisharkAPI.h:913
bool isUDP
Definition: ProfisharkAPI.h:910
bool isHTTP
Definition: ProfisharkAPI.h:914
bool isSMB
Definition: ProfisharkAPI.h:922
bool isL2Other
Definition: ProfisharkAPI.h:931
bool isARP
Definition: ProfisharkAPI.h:908
Power over Ethernet calibration parameters.
Definition: ProfisharkAPI.h:1240
Power over Ethernet calibration parameters.
Definition: ProfisharkAPI.h:1230
Power over Ethernet pair measures.
Definition: ProfisharkAPI.h:1209
bool ReturnPaths[4]
Definition: ProfisharkAPI.h:1212
float Voltage
Definition: ProfisharkAPI.h:1210
float Current
Definition: ProfisharkAPI.h:1211
Power over Ethernet values and calibration parameters.
Definition: ProfisharkAPI.h:1220
ProfisharkApiPoePairValues Pairs[4]
Definition: ProfisharkAPI.h:1221
float SupplyVoltage
Definition: ProfisharkAPI.h:1222
RJ45 port link status.
Definition: ProfisharkAPI.h:327
ProfisharkApiPortSpeed speed
Definition: ProfisharkAPI.h:329
ProfisharkApiPortDuplex duplex
Definition: ProfisharkAPI.h:330
ProfisharkApiPortMode mode
Definition: ProfisharkAPI.h:328
Describe all RJ45 ports.
Definition: ProfisharkAPI.h:338
bool valid
Definition: ProfisharkAPI.h:339
ProfisharkApiRJ45PortStatus portsStatus[2]
Definition: ProfisharkAPI.h:341
int portsCount
Definition: ProfisharkAPI.h:340
Description of a SFP module.
Definition: ProfisharkAPI.h:543
ProfisharkApiSFPPortsImplementation TXFaultImplementation
Definition: ProfisharkAPI.h:573
float HighAlarmTxBias
Definition: ProfisharkAPI.h:657
ProfisharkApiSFPPortsImplementation Ethernet10G_BaseSR
Definition: ProfisharkAPI.h:586
ProfisharkApiSFPPortsImplementation Ethernet1G_BaseLX
Definition: ProfisharkAPI.h:608
ProfisharkApiSFPPortsImplementation Ethernet1G_BaseSX
Definition: ProfisharkAPI.h:609
char SerialNo[17]
Definition: ProfisharkAPI.h:550
ProfisharkApiSFPPortsOptionsLaserType LaserType
Definition: ProfisharkAPI.h:568
ProfisharkApiSFPPortsImplementation SONET_OC12_SingleMode_Intermediate
Definition: ProfisharkAPI.h:596
ProfisharkApiSFPPortsImplementation Infiniband_1X_CopperActive
Definition: ProfisharkAPI.h:589
ProfisharkApiSFPPortsImplementation SONET_OC48_Long
Definition: ProfisharkAPI.h:592
int Length50um2
Definition: ProfisharkAPI.h:566
ProfisharkApiSFPPortsImplementation SoftTXDisableControlImplementation
Definition: ProfisharkAPI.h:576
ProfisharkApiSFPPortsImplementation FibreSpeed_800
Definition: ProfisharkAPI.h:635
ProfisharkApiSFPPortsImplementation FibreTechnology_LL
Definition: ProfisharkAPI.h:618
ProfisharkApiSFPPortsImplementation SONET_OC48_Short
Definition: ProfisharkAPI.h:594
ProfisharkApiSFPPortsImplementation FibreLength_V
Definition: ProfisharkAPI.h:619
ProfisharkApiSFPPortsSONETReachSpecifier SONETReachSpecifier
Definition: ProfisharkAPI.h:601
ProfisharkApiSFPPortsImplementation SONET_OC3_SingleMode_Intermediate
Definition: ProfisharkAPI.h:599
ProfisharkApiSFPPortsOptionsLaserPower LaserPower
Definition: ProfisharkAPI.h:569
int Length50um
Definition: ProfisharkAPI.h:563
ProfisharkApiSFPPortsRateID RateID
Definition: ProfisharkAPI.h:555
ProfisharkApiSFPPortsImplementation FibreTechnology_SA
Definition: ProfisharkAPI.h:612
int Length625um
Definition: ProfisharkAPI.h:564
ProfisharkApiSFPPortsImplementation SONET_OC3_SingleMode_Long
Definition: ProfisharkAPI.h:598
float HighWarningTemperature
Definition: ProfisharkAPI.h:660
ProfisharkApiSFPPortsImplementation FibreTechnology_EL_InterEnclosure
Definition: ProfisharkAPI.h:614
int Length9um
Definition: ProfisharkAPI.h:562
ProfisharkApiSFPPortsImplementation FibreSpeed_400
Definition: ProfisharkAPI.h:636
ProfisharkApiSFPPortsImplementation SFPPlus_Active
Definition: ProfisharkAPI.h:624
char VendorName[17]
Definition: ProfisharkAPI.h:545
ProfisharkApiSFPPortsImplementation FibreMedia_TV
Definition: ProfisharkAPI.h:629
int LengthCopper
Definition: ProfisharkAPI.h:565
float HighWarningTXPower
Definition: ProfisharkAPI.h:663
ProfisharkApiSFPPortsImplementation FibreMedia_MI
Definition: ProfisharkAPI.h:628
float HighWarningTxBias
Definition: ProfisharkAPI.h:662
char Model[17]
Definition: ProfisharkAPI.h:547
ProfisharkApiSFPPortsImplementation SoftRXLOSControlImplementation
Definition: ProfisharkAPI.h:578
float RXPower
Definition: ProfisharkAPI.h:644
ProfisharkApiSFPPortsConnector connector
Definition: ProfisharkAPI.h:558
int ExtIdentifier
Definition: ProfisharkAPI.h:557
ProfisharkApiSFPPortsImplementation FibreTechnology_SN
Definition: ProfisharkAPI.h:616
ProfisharkApiSFPPortsImplementation RateSelectImplementation
Definition: ProfisharkAPI.h:571
int NominalRate
Definition: ProfisharkAPI.h:551
float LowAlarmTxBias
Definition: ProfisharkAPI.h:647
int MinimumBitrate
Definition: ProfisharkAPI.h:553
ProfisharkApiSFPPortsImplementation FibreSpeed_100
Definition: ProfisharkAPI.h:638
ProfisharkApiSFPPortsImplementation Infiniband_1X_SX
Definition: ProfisharkAPI.h:587
ProfisharkApiSFPPortsImplementation SONET_OC48_Intermediate
Definition: ProfisharkAPI.h:593
ProfisharkApiSFPPortsImplementation SONET_OC3_Short
Definition: ProfisharkAPI.h:600
ProfisharkApiSFPPortsStatusEncoding Encoding
Definition: ProfisharkAPI.h:554
float LowAlarmVCC
Definition: ProfisharkAPI.h:646
float HighWarningRXPower
Definition: ProfisharkAPI.h:664
uint32_t DiagFlags
Definition: ProfisharkAPI.h:665
ProfisharkApiSFPPortsImplementation FibreSpeed_1600
Definition: ProfisharkAPI.h:633
float LowAlarmTXPower
Definition: ProfisharkAPI.h:648
int VendorOUI
Definition: ProfisharkAPI.h:546
float TxBias
Definition: ProfisharkAPI.h:642
ProfisharkApiSFPPortsImplementation LOSImplementation
Definition: ProfisharkAPI.h:574
float HighWarningVCC
Definition: ProfisharkAPI.h:661
float TXPower
Definition: ProfisharkAPI.h:643
ProfisharkApiSFPPortsImplementation Infiniband_1X_CopperPassive
Definition: ProfisharkAPI.h:590
ProfisharkApiSFPPortsImplementation ApplicationSelectImplementation
Definition: ProfisharkAPI.h:580
float HighAlarmRXPower
Definition: ProfisharkAPI.h:659
char Revision[5]
Definition: ProfisharkAPI.h:548
float LowWarningRXPower
Definition: ProfisharkAPI.h:654
float LowWarningVCC
Definition: ProfisharkAPI.h:651
float HighAlarmVCC
Definition: ProfisharkAPI.h:656
ProfisharkApiSFPPortsImplementation ESCON_MMF
Definition: ProfisharkAPI.h:610
float LowWarningTXPower
Definition: ProfisharkAPI.h:653
bool modulePresent
Definition: ProfisharkAPI.h:544
ProfisharkApiSFPPortsImplementation Ethernet1G_BaseLX_LX10
Definition: ProfisharkAPI.h:605
ProfisharkApiSFPPortsImplementation SONET_OC192_Short
Definition: ProfisharkAPI.h:591
char DateCode[14]
Definition: ProfisharkAPI.h:549
ProfisharkApiSFPPortsImplementation Ethernet10G_BaseER
Definition: ProfisharkAPI.h:583
ProfisharkApiSFPPortsImplementation FibreLength_S
Definition: ProfisharkAPI.h:620
ProfisharkApiSFPPortsImplementation Ethernet1G_BasePX
Definition: ProfisharkAPI.h:602
float HighAlarmTXPower
Definition: ProfisharkAPI.h:658
ProfisharkApiSFPPortsSFF8472 SFF8472Rev
Definition: ProfisharkAPI.h:561
ProfisharkApiSFPPortsImplementation SoftRateSelectImplementation
Definition: ProfisharkAPI.h:581
ProfisharkApiSFPPortsImplementation ESCON_SMF
Definition: ProfisharkAPI.h:611
ProfisharkApiSFPPortsIdentifier identifier
Definition: ProfisharkAPI.h:556
int WaveLength
Definition: ProfisharkAPI.h:559
ProfisharkApiSFPPortsImplementation FibreSpeed_1200
Definition: ProfisharkAPI.h:634
ProfisharkApiSFPPortsImplementation Ethernet10G_BaseLR
Definition: ProfisharkAPI.h:585
ProfisharkApiSFPPortsImplementation SONET_OC12_SingleMode_Long
Definition: ProfisharkAPI.h:595
float LowWarningTemperature
Definition: ProfisharkAPI.h:650
ProfisharkApiSFPPortsImplementation FibreLength_L
Definition: ProfisharkAPI.h:622
float LowWarningTxBias
Definition: ProfisharkAPI.h:652
ProfisharkApiSFPPortsImplementation SONET_OC12_Short
Definition: ProfisharkAPI.h:597
ProfisharkApiSFPPortsImplementation TXDisableImplementation
Definition: ProfisharkAPI.h:572
ProfisharkApiSFPPortsImplementation FibreTechnology_LC
Definition: ProfisharkAPI.h:613
ProfisharkApiSFPPortsImplementation SoftTXFaultControlImplementation
Definition: ProfisharkAPI.h:577
ProfisharkApiSFPPortsImplementation FibreSpeed_200
Definition: ProfisharkAPI.h:637
ProfisharkApiSFPPortsImplementation FibreMedia_SM
Definition: ProfisharkAPI.h:632
int MaximumBitrate
Definition: ProfisharkAPI.h:552
ProfisharkApiSFPPortsImplementation Ethernet1G_BaseBX10
Definition: ProfisharkAPI.h:603
float LowAlarmRXPower
Definition: ProfisharkAPI.h:649
ProfisharkApiSFPPortsImplementation FibreMedia_TW
Definition: ProfisharkAPI.h:626
ProfisharkApiSFPPortsDiagMonitoringType MonitoringType
Definition: ProfisharkAPI.h:560
ProfisharkApiSFPPortsOptionsReceiverOutput ReceiverOutput
Definition: ProfisharkAPI.h:570
ProfisharkApiSFPPortsImplementation SFPPlus_Passive
Definition: ProfisharkAPI.h:625
ProfisharkApiSFPPortsImplementation Ethernet1G_BaseFX
Definition: ProfisharkAPI.h:604
ProfisharkApiSFPPortsImplementation Infiniband_1X_LX
Definition: ProfisharkAPI.h:588
ProfisharkApiSFPPortsImplementation Ethernet1G_BaseT
Definition: ProfisharkAPI.h:606
ProfisharkApiSFPPortsImplementation FibreLength_M
Definition: ProfisharkAPI.h:623
ProfisharkApiSFPPortsImplementation FibreTechnology_EL_IntraEnclosure
Definition: ProfisharkAPI.h:615
ProfisharkApiSFPPortsImplementation FibreMedia_M6
Definition: ProfisharkAPI.h:630
ProfisharkApiSFPPortsImplementation Ethernet1G_BaseCX
Definition: ProfisharkAPI.h:607
ProfisharkApiSFPPortsImplementation FibreMedia_TP
Definition: ProfisharkAPI.h:627
ProfisharkApiSFPPortsImplementation SoftRateSelectControlImplementation
Definition: ProfisharkAPI.h:579
ProfisharkApiSFPPortsImplementation AlarmWarningImplementation
Definition: ProfisharkAPI.h:575
ProfisharkApiSFPPortsImplementation FibreTechnology_SL
Definition: ProfisharkAPI.h:617
float HighAlarmTemperature
Definition: ProfisharkAPI.h:655
float VCC
Definition: ProfisharkAPI.h:641
ProfisharkApiPortMode mode
Definition: ProfisharkAPI.h:667
float Temperature
Definition: ProfisharkAPI.h:640
float LowAlarmTemperature
Definition: ProfisharkAPI.h:645
ProfisharkApiSFPPortsImplementation Ethernet10G_BaseLRM
Definition: ProfisharkAPI.h:584
ProfisharkApiSFPPortsImplementation FibreMedia_M5
Definition: ProfisharkAPI.h:631
ProfisharkApiSFPPortsImplementation FibreLength_I
Definition: ProfisharkAPI.h:621
Describe all SFP ports.
Definition: ProfisharkAPI.h:675
bool valid
Definition: ProfisharkAPI.h:676
int portsCount
Definition: ProfisharkAPI.h:677
SW firmware or driver version.
Definition: ProfisharkAPI.h:264
uint8_t v[4]
Definition: ProfisharkAPI.h:265
Statistics structure for a Profishark device.
Definition: ProfisharkAPI.h:827
ProfisharkApiStatisticsVersion version
Definition: ProfisharkAPI.h:828
ProfisharkApiStatisticsV1 StatisticsV1
Definition: ProfisharkAPI.h:838
ProfisharkApiStatisticsV2 StatisticsV2
Definition: ProfisharkAPI.h:839
Statistics structure for devices supporting V1 model.
Definition: ProfisharkAPI.h:787
uint64_t BogusBytes
Definition: ProfisharkAPI.h:793
uint64_t TotalPackets
Definition: ProfisharkAPI.h:794
uint64_t SoftwareDropped
Definition: ProfisharkAPI.h:789
uint64_t Date
Definition: ProfisharkAPI.h:788
uint64_t LinkDown
Definition: ProfisharkAPI.h:791
uint64_t LinkUp
Definition: ProfisharkAPI.h:790
ProfisharkApiStatisticsV1Port PortsStatistics[2]
Definition: ProfisharkAPI.h:792
Statistics structure for a single port of a device supporting V1 model.
Definition: ProfisharkAPI.h:768
uint64_t LessThan64
Definition: ProfisharkAPI.h:769
uint64_t Bytes
Definition: ProfisharkAPI.h:775
uint64_t TotalValid
Definition: ProfisharkAPI.h:777
uint64_t MoreThan1518
Definition: ProfisharkAPI.h:771
uint64_t CrcError
Definition: ProfisharkAPI.h:773
uint64_t Betwen64And1518
Definition: ProfisharkAPI.h:770
uint64_t HardwareDropped
Definition: ProfisharkAPI.h:779
uint64_t MaximumBytes
Definition: ProfisharkAPI.h:776
uint64_t TotalInvalid
Definition: ProfisharkAPI.h:778
uint64_t Jabber
Definition: ProfisharkAPI.h:774
uint64_t Collision
Definition: ProfisharkAPI.h:772
Statistics structure for devices supporting V2 model.
Definition: ProfisharkAPI.h:814
uint64_t BogusBytes
Definition: ProfisharkAPI.h:818
uint64_t Counters[PROFISHARKAPI_STATISTICSV2_COUNTERS]
Definition: ProfisharkAPI.h:817
uint64_t TotalPackets
Definition: ProfisharkAPI.h:819
uint64_t SoftwareDropped
Definition: ProfisharkAPI.h:816
uint64_t Date
Definition: ProfisharkAPI.h:815
firmwares and driver versions
Definition: ProfisharkAPI.h:282
ProfisharkApiHWVersion hwFirmware
Definition: ProfisharkAPI.h:285
ProfisharkApiSWVersion swFirmware
Definition: ProfisharkAPI.h:283
ProfisharkApiSWVersion driver
Definition: ProfisharkAPI.h:284