transmit_on_timestamp_setclock_example.c

Reference Documentation

Platform
Intel® PAC
Napatech SmartNIC
Content Type
Reference Information
Capture Software Version
Link™ Capture Software 12.8
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 <assert.h>
#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)
 

Data Structures

struct  pcap_timespec_s
 
struct  pcap_record_s
 

Macros

#define PACKETS   100L
 
#define PACKET_SIZE   296L
 
#define PACKET_GAP   50000L
 
#define REPLAYS   1000L
 
#define TX_DELAY   1000000000
 
#define NS_PER_TICK   10
 
#define PORT   0
 
#define ADAPTER   0
 
#define REPLAY_TRANSMIT_TIME   (PACKET_GAP * PACKETS * NS_PER_TICK)
 
#define TOTAL_TRANSMIT_TIME   (REPLAY_TRANSMIT_TIME * REPLAYS)
 

Variables

bool pcapPackets = false
 

Function Documentation

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

Definition at line 174 of file transmit_on_timestamp_setclock_example.c.

Referenced by main().

int main ( void  )

Definition at line 180 of file transmit_on_timestamp_setclock_example.c.

Macro Definition Documentation

#define PACKETS   100L

Definition at line 139 of file transmit_on_timestamp_setclock_example.c.

Referenced by main().

#define PACKET_SIZE   296L

Definition at line 140 of file transmit_on_timestamp_setclock_example.c.

Referenced by main().

#define PACKET_GAP   50000L
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 REPLAYS   1000L
Examples:
net/transmit_on_timestamp_setclock/transmit_on_timestamp_setclock_example.c.

Definition at line 142 of file transmit_on_timestamp_setclock_example.c.

Referenced by main().

#define TX_DELAY   1000000000
Examples:
net/transmit_on_timestamp_setclock/transmit_on_timestamp_setclock_example.c.

Definition at line 143 of file transmit_on_timestamp_setclock_example.c.

Referenced by main().

#define NS_PER_TICK   10
Examples:
net/transmit_on_timestamp_setclock/transmit_on_timestamp_setclock_example.c.

Definition at line 144 of file transmit_on_timestamp_setclock_example.c.

Referenced by main().

#define PORT   0

Definition at line 145 of file transmit_on_timestamp_setclock_example.c.

Referenced by main().

#define ADAPTER   0

Definition at line 146 of file transmit_on_timestamp_setclock_example.c.

Referenced by main().

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

Definition at line 153 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 156 of file transmit_on_timestamp_setclock_example.c.

Referenced by main().

Variable Documentation

bool pcapPackets = false
Examples:
net/transmit_on_timestamp_setclock/transmit_on_timestamp_setclock_example.c.

Definition at line 150 of file transmit_on_timestamp_setclock_example.c.

Referenced by main().