#include <nt.h>
#include <unistd.h>
#include <signal.h>
#include <argparse.h>
Go to the source code of this file.
Functions | |
static void | StopApplication (int sig) |
static uint64_t | convertToUnixNsTs (const struct NtConfigTimestampReadData_s *data) |
int | main (int argc, const char **argv) |
Data Structures | |
struct | pcap_timespec_s |
Macros | |
#define | ONEMBIT (1000000ULL) |
Variables | |
static const char * | usageText [] |
static int | opt_port = 0 |
static char * | opt_filename |
static int | opt_num_repetitions = 1 |
static int | opt_scale = 100 |
static int | appRunning = 1 |
struct argparse_option | arg_options [] |
Function Documentation
|
static |
The function called when user is pressing CTRL-C
Definition at line 89 of file replay4ga_loop_example.c.
Referenced by main().
|
static |
Definition at line 111 of file replay4ga_loop_example.c.
Referenced by main().
int main | ( | int | argc, |
const char ** | argv | ||
) |
Definition at line 127 of file replay4ga_loop_example.c.
Macro Definition Documentation
#define ONEMBIT (1000000ULL) |
Definition at line 49 of file replay4ga_loop_example.c.
Referenced by main().
Variable Documentation
|
static |
Print command line info
Definition at line 54 of file replay4ga_loop_example.c.
Referenced by main().
|
static |
Definition at line 61 of file replay4ga_loop_example.c.
Referenced by main().
|
static |
Definition at line 62 of file replay4ga_loop_example.c.
Referenced by main().
|
static |
Definition at line 63 of file replay4ga_loop_example.c.
Referenced by main().
|
static |
Definition at line 64 of file replay4ga_loop_example.c.
Referenced by main().
|
static |
Definition at line 66 of file replay4ga_loop_example.c.
Referenced by main(), and StopApplication().
struct argparse_option arg_options[] |
Table of valid options.
Definition at line 71 of file replay4ga_loop_example.c.