Go to the source code of this file.
Data Structures | |
| struct | pcap_timespec_s |
| struct | pcap_record_s |
Macros | |
| #define | PACKETS 100L |
| #define | PACKET_SIZE 296L |
| #define | PACKET_GAP 500000L |
| #define | REPLAYS 1000L |
| #define | TX_DELAY 1000000000 |
| #define | PORT 0 |
| #define | ADAPTER 0 |
| #define | REPLAY_TRANSMIT_TIME (PACKET_GAP * PACKETS) |
| #define | TOTAL_TRANSMIT_TIME (REPLAY_TRANSMIT_TIME * REPLAYS) |
Functions | |
| static void | printError (const char *prefix, int errorCode) |
| static uint64_t | convertToUnixNsTs (const struct NtConfigTimestampReadData_s *data) |
| int | main (void) |
Variables | |
| bool | pcapPackets = false |
Macro Definition Documentation
| #define PACKETS 100L |
Definition at line 146 of file transmit_on_timestamp_setclock_example.c.
Referenced by main().
| #define PACKET_SIZE 296L |
Definition at line 147 of file transmit_on_timestamp_setclock_example.c.
Referenced by main().
| #define PACKET_GAP 500000L |
Definition at line 148 of file transmit_on_timestamp_setclock_example.c.
Referenced by main().
| #define REPLAYS 1000L |
Definition at line 149 of file transmit_on_timestamp_setclock_example.c.
Referenced by main().
| #define TX_DELAY 1000000000 |
Definition at line 150 of file transmit_on_timestamp_setclock_example.c.
Referenced by main().
| #define PORT 0 |
Definition at line 151 of file transmit_on_timestamp_setclock_example.c.
Referenced by main().
| #define ADAPTER 0 |
Definition at line 152 of file transmit_on_timestamp_setclock_example.c.
Referenced by main().
| #define REPLAY_TRANSMIT_TIME (PACKET_GAP * PACKETS) |
Definition at line 159 of file transmit_on_timestamp_setclock_example.c.
Referenced by main().
| #define TOTAL_TRANSMIT_TIME (REPLAY_TRANSMIT_TIME * REPLAYS) |
Definition at line 162 of file transmit_on_timestamp_setclock_example.c.
Referenced by main().
Function Documentation
|
static |
Definition at line 180 of file transmit_on_timestamp_setclock_example.c.
Referenced by main().
|
static |
Definition at line 187 of file transmit_on_timestamp_setclock_example.c.
Referenced by main().
| int main | ( | void | ) |
Definition at line 202 of file transmit_on_timestamp_setclock_example.c.
Variable Documentation
| bool pcapPackets = false |
Definition at line 156 of file transmit_on_timestamp_setclock_example.c.
Referenced by main().