flowmatch_example_helper.h

Reference Documentation

Platform
Intel® PAC
Napatech SmartNIC
Content Type
Reference Information
Capture Software Version
Link™ Capture Software 12.10
Napatech Software Suite: examples/flowmatch/flowmatch_example_helper.h File Reference
flowmatch_example_helper.h File Reference

Go to the source code of this file.

Macros

#define COLOR_IPV4   0x1
 
#define COLOR_IPV6   0x2
 
#define KEY_SET_ID   4
 
#define STREAM_ID_MISS   1
 
#define STREAM_ID_UNHA   2
 
#define KEY_ID_IPV4   1
 
#define KEY_ID_IPV6   2
 
#define ADAPTER_NO   0
 

Functions

bool applicationRunning (void)
 
void applicationStop (void)
 
void handleErrorStatus (int status, const char *message)
 
void setHostLoopback (uint8_t port, bool enable)
 

Macro Definition Documentation

#define COLOR_IPV4   0x1

Definition at line 47 of file flowmatch_example_helper.h.

Referenced by assignNtplFilters(), and taskReceiverMiss().

#define COLOR_IPV6   0x2

Definition at line 48 of file flowmatch_example_helper.h.

Referenced by assignNtplFilters(), and taskReceiverMiss().

#define KEY_SET_ID   4

Definition at line 50 of file flowmatch_example_helper.h.

Referenced by assignNtplFilters(), and taskReceiverMiss().

#define STREAM_ID_MISS   1
Examples:
flowmatch/flowmatch_example_main.cpp.

Definition at line 52 of file flowmatch_example_helper.h.

Referenced by assignNtplFilters(), and main().

#define STREAM_ID_UNHA   2
Examples:
flowmatch/flowmatch_example_main.cpp.

Definition at line 53 of file flowmatch_example_helper.h.

Referenced by assignNtplFilters(), and main().

#define KEY_ID_IPV6   2

Definition at line 56 of file flowmatch_example_helper.h.

Referenced by assignNtplFilters(), and taskReceiverMiss().

#define ADAPTER_NO   0

Function Documentation

bool applicationRunning ( void  )

Check if application is still running.

Returns
true until applicationStop() has been called.

Definition at line 60 of file flowmatch_example_helper.cpp.

Referenced by taskReceiverCounter(), and taskReceiverMiss().

void applicationStop ( void  )

Sets flag that causes applicationRunning() to return false.

Definition at line 65 of file flowmatch_example_helper.cpp.

Referenced by main().

void handleErrorStatus ( int  status,
const char *  message 
)

Check if status is an error code, and if it is print the error description and then quit the application.

Definition at line 70 of file flowmatch_example_helper.cpp.

Referenced by assignNtplFilters(), main(), anonymous_namespace{flowmatch_example_ntpl.cpp}::ntplCall(), openAndClearFlowStats(), printAndCloseFlowStats(), setHostLoopback(), taskReceiverCounter(), taskReceiverMiss(), and taskTransmitter().

void setHostLoopback ( uint8_t  port,
bool  enable 
)

Configure a port to enable or disable host-loopback. This function is used to allow the example code to be independent of a specific test setup.

Definition at line 80 of file flowmatch_example_helper.cpp.

Referenced by main().