flowmatch_example_receiver.h

Reference Documentation

product_line_custom
IntelĀ® PAC
Napatech SmartNIC
category
Reference Information
Napatech Software Suite: examples/flowmatch/flowmatch_example_receiver.h File Reference
flowmatch_example_receiver.h File Reference
#include <atomic>
#include <cstdint>

Go to the source code of this file.

Functions

void taskReceiverMiss (const char *streamName, uint32_t streamId, std::atomic< uint64_t > *ipv4counter, std::atomic< uint64_t > *ipv6counter)
 
void taskReceiverCounter (const char *streamName, uint32_t streamId, std::atomic< uint64_t > *counter)
 

Function Documentation

void taskReceiverMiss ( const char *  streamName,
uint32_t  streamId,
std::atomic< uint64_t > *  ipv4counter,
std::atomic< uint64_t > *  ipv6counter 
)

Handle MISSED packages, and learn new flows based on received packages. This function is the main function of a separate thread.

Definition at line 126 of file flowmatch_example_receiver.cpp.

Referenced by main().

void taskReceiverCounter ( const char *  streamName,
uint32_t  streamId,
std::atomic< uint64_t > *  counter 
)

Count packages received in specified stream. This function is the main function of a separate thread. Note: The transmit function in this example does not cause enough traffic for any packages to be received as unhandled. However, if the tool pktgen is running while this example is run, it can generate unhandled packages.

Definition at line 236 of file flowmatch_example_receiver.cpp.

Referenced by main().