#include "nt.h"
#include <atomic>
#include <iostream>
#include <thread>
#include <unistd.h>
#include <signal.h>
Go to the source code of this file.
Functions | |
void | printDescriptor (NtPacketDescriptorType_e descrType) |
static void | sighandler (int) |
void | printError (int status, const char *formatstr) |
void | applyNtpl (uint64_t rxPort) |
bool | featuresAvailable (uint64_t txPort) |
static void | usage (const char *argv0) |
int | main (int argc, char **argv) |
Data Structures | |
struct | Dyn3_tx_descriptor |
class | PacketReaderThread |
class | PacketTransmitterThread |
Variables | |
std::atomic< bool > | running {true} |
const unsigned char | examplePacket [] |
Function Documentation
void printDescriptor | ( | NtPacketDescriptorType_e | descrType | ) |
Definition at line 163 of file timestamp_inject_example.cpp.
Referenced by PacketReaderThread::processPackets().
|
static |
Definition at line 496 of file timestamp_inject_example.cpp.
Referenced by main().
void printError | ( | int | status, |
const char * | formatstr | ||
) |
- Examples:
- net/timestamp_inject/timestamp_inject_example.cpp, net/transmit_on_timestamp/transmit_on_timestamp_example.c, net/transmit_on_timestamp_setclock/transmit_on_timestamp_setclock_example.c, net/transmit_packet/transmit_packet_example.c, net/transmit_pcap/transmit_pcap_example.c, and net/transmit_segment/transmit_segment_example.c.
Definition at line 502 of file timestamp_inject_example.cpp.
Referenced by applyNtpl().
void applyNtpl | ( | uint64_t | rxPort | ) |
Definition at line 514 of file timestamp_inject_example.cpp.
Referenced by main().
bool featuresAvailable | ( | uint64_t | txPort | ) |
Definition at line 539 of file timestamp_inject_example.cpp.
Referenced by main().
|
static |
Definition at line 579 of file timestamp_inject_example.cpp.
Referenced by argparse_init(), and main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 595 of file timestamp_inject_example.cpp.
Variable Documentation
std::atomic<bool> running {true} |
Definition at line 122 of file timestamp_inject_example.cpp.
Referenced by main(), PacketReaderThread::processPackets(), sighandler(), PacketTransmitterThread::transmitPackets(), and PacketTransmitterThread::txPacket().
const unsigned char examplePacket[] |
Definition at line 299 of file timestamp_inject_example.cpp.
Referenced by PacketTransmitterThread::txPacket().