transmit_segment_example.c

Reference Documentation

Platform
Napatech SmartNIC
Content Type
Reference Information
Capture Software Version
Link™ Capture Software 12.6
Napatech Software Suite: examples/net/transmit_segment/transmit_segment_example.c File Reference
transmit_segment_example.c File Reference
#include <nt.h>
#include <unistd.h>

Go to the source code of this file.

Functions

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

Macros

#define PACKETS   2500000
 
#define PACKET_SIZE   1024
 
#define SEGMENT_SIZE   (1024 * 1024)
 
#define PORT   0
 
#define MIN_PADDING_SIZE_WITH_DESCR   (64 + NT_DESCR_NT_LENGTH)
 
#define PADDING_THRESHOLD   (PACKET_SIZE + NT_DESCR_NT_LENGTH + MIN_PADDING_SIZE_WITH_DESCR)
 

Function Documentation

static void msleep ( int  ms)
static

Definition at line 146 of file transmit_segment_example.c.

Referenced by main().

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

Definition at line 157 of file transmit_segment_example.c.

Referenced by main().

int main ( void  )

Definition at line 163 of file transmit_segment_example.c.

Macro Definition Documentation

#define PACKETS   2500000

Definition at line 134 of file transmit_segment_example.c.

Referenced by main().

#define PACKET_SIZE   1024

Definition at line 135 of file transmit_segment_example.c.

Referenced by main().

#define SEGMENT_SIZE   (1024 * 1024)
Examples:
net/transmit_segment/transmit_segment_example.c.

Definition at line 136 of file transmit_segment_example.c.

Referenced by main().

#define PORT   0

Definition at line 137 of file transmit_segment_example.c.

Referenced by main().

#define MIN_PADDING_SIZE_WITH_DESCR   (64 + NT_DESCR_NT_LENGTH)
Examples:
net/transmit_segment/transmit_segment_example.c.

Definition at line 143 of file transmit_segment_example.c.

Referenced by main().

#define PADDING_THRESHOLD   (PACKET_SIZE + NT_DESCR_NT_LENGTH + MIN_PADDING_SIZE_WITH_DESCR)
Examples:
net/transmit_segment/transmit_segment_example.c.

Definition at line 144 of file transmit_segment_example.c.

Referenced by main().