transmit_packet_example.c

Reference Documentation

product_line_custom
IntelĀ® PAC
Napatech SmartNIC
category
Reference Information
Napatech Software Suite: examples/net/transmit_packet/transmit_packet_example.c File Reference
transmit_packet_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 PORT   0
 

Function Documentation

static void msleep ( int  ms)
static
Examples:
net/transmit_packet/transmit_packet_example.c, and net/transmit_segment/transmit_segment_example.c.

Definition at line 118 of file transmit_packet_example.c.

Referenced by main().

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

Definition at line 129 of file transmit_packet_example.c.

Referenced by main().

int main ( void  )

Definition at line 135 of file transmit_packet_example.c.

Macro Definition Documentation

#define PACKETS   2500000

Definition at line 113 of file transmit_packet_example.c.

Referenced by main().

#define PACKET_SIZE   1024

Definition at line 114 of file transmit_packet_example.c.

Referenced by main().

#define PORT   0

Definition at line 115 of file transmit_packet_example.c.

Referenced by main().