#include <nt.h>#include <iostream>#include <thread>#include <unistd.h>#include <stdlib.h>#include <signal.h>#include <atomic>Go to the source code of this file.
Data Structures | |
| struct | Dyn3_tx_descriptor |
| class | PacketReaderThread |
| class | PacketTransmitterThread |
Functions | |
| void | printDescriptor (NtPacketDescriptorType_e descrType) |
| static void | StopApplication (int sig) |
| 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) |
Variables | |
| static std::atomic_int | appRunning {1} |
| const unsigned char | examplePacket [] |
Function Documentation
| void printDescriptor | ( | NtPacketDescriptorType_e | descrType | ) |
Definition at line 169 of file timestamp_inject_example.cpp.
Referenced by PacketReaderThread::processPackets().
|
static |
The function called when user is pressing CTRL-C
Definition at line 511 of file timestamp_inject_example.cpp.
Referenced by main(), and PacketTransmitterThread::transmitPackets().
| void printError | ( | int | status, |
| const char * | formatstr | ||
| ) |
- Examples:
- net/replayfilewithtimestampinject/replayfilewithtimestampinject_example.c, 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 519 of file timestamp_inject_example.cpp.
Referenced by applyNtpl().
| void applyNtpl | ( | uint64_t | rxPort | ) |
Definition at line 531 of file timestamp_inject_example.cpp.
Referenced by main().
| bool featuresAvailable | ( | uint64_t | txPort | ) |
Definition at line 556 of file timestamp_inject_example.cpp.
Referenced by main().
|
static |
Definition at line 596 of file timestamp_inject_example.cpp.
Referenced by argparse_init(), and main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 612 of file timestamp_inject_example.cpp.
Variable Documentation
|
static |
Definition at line 128 of file timestamp_inject_example.cpp.
Referenced by main(), PacketReaderThread::processPackets(), StopApplication(), PacketTransmitterThread::transmitPackets(), and PacketTransmitterThread::txPacket().
| const unsigned char examplePacket[] |
Definition at line 305 of file timestamp_inject_example.cpp.
Referenced by PacketTransmitterThread::txPacket().