transmit_on_timestamp_setclock_example.c

Reference Documentation

product_line_custom
IntelĀ® PAC
Napatech SmartNIC
category
Reference Information
Napatech Software Suite: examples/net/transmit_on_timestamp_setclock/transmit_on_timestamp_setclock_example.c File Reference
transmit_on_timestamp_setclock_example.c File Reference
#include <nt.h>
#include <unistd.h>

Go to the source code of this file.

Functions

static void printError (const char *prefix, int errorCode)
 
int main (void)
 

Macros

#define PACKETS   100L
 
#define PACKET_SIZE   296L
 
#define PACKET_GAP   500000L
 
#define REPLAYS   1000L
 
#define PORT   0
 
#define ADAPTER   0
 
#define REPLAY_TRANSMIT_TIME   (PACKET_GAP * PACKETS)
 
#define TOTAL_TRANSMIT_TIME   (REPLAY_TRANSMIT_TIME * REPLAYS)
 

Function Documentation

static void printError ( const char *  prefix,
int  errorCode 
)
static

Definition at line 153 of file transmit_on_timestamp_setclock_example.c.

Referenced by main().

int main ( void  )

Definition at line 159 of file transmit_on_timestamp_setclock_example.c.

Macro Definition Documentation

#define PACKETS   100L

Definition at line 138 of file transmit_on_timestamp_setclock_example.c.

Referenced by main().

#define PACKET_SIZE   296L

Definition at line 139 of file transmit_on_timestamp_setclock_example.c.

Referenced by main().

#define PACKET_GAP   500000L
Examples:
net/transmit_on_timestamp_setclock/transmit_on_timestamp_setclock_example.c.

Definition at line 140 of file transmit_on_timestamp_setclock_example.c.

Referenced by main().

#define REPLAYS   1000L
Examples:
net/transmit_on_timestamp_setclock/transmit_on_timestamp_setclock_example.c.

Definition at line 141 of file transmit_on_timestamp_setclock_example.c.

Referenced by main().

#define PORT   0

Definition at line 142 of file transmit_on_timestamp_setclock_example.c.

Referenced by main().

#define ADAPTER   0

Definition at line 143 of file transmit_on_timestamp_setclock_example.c.

Referenced by main().

#define REPLAY_TRANSMIT_TIME   (PACKET_GAP * PACKETS)
Examples:
net/transmit_on_timestamp_setclock/transmit_on_timestamp_setclock_example.c.

Definition at line 146 of file transmit_on_timestamp_setclock_example.c.

Referenced by main().

#define TOTAL_TRANSMIT_TIME   (REPLAY_TRANSMIT_TIME * REPLAYS)
Examples:
net/transmit_on_timestamp_setclock/transmit_on_timestamp_setclock_example.c.

Definition at line 149 of file transmit_on_timestamp_setclock_example.c.

Referenced by main().