vlandemo_example.c

Reference Documentation

Platform
Napatech SmartNIC
Content Type
Reference Information
Capture Software Version
Link™ Capture Software 12.15
Napatech Software Suite: examples/net/vlandemo/vlandemo_example.c File Reference
vlandemo_example.c File Reference
#include <nt.h>
#include <arpa/inet.h>
#include <signal.h>
#include <stdatomic.h>
#include <stdlib.h>

Go to the source code of this file.

Macros

#define ENABLE_VLAN_TAGGING   1
 
#define DISCARD_BY_WIRELEN   1
 

Functions

static void StopApplication (int sig)
 
static int Is4GATxSupported (uint8_t portNo)
 
int main (void)
 

Variables

static atomic_int appRunning = 1
 

Macro Definition Documentation

#define ENABLE_VLAN_TAGGING   1

Definition at line 245 of file vlandemo_example.c.

#define DISCARD_BY_WIRELEN   1

Definition at line 247 of file vlandemo_example.c.

Function Documentation

static void StopApplication ( int  sig)
static

The function called when user is pressing CTRL-C

Definition at line 262 of file vlandemo_example.c.

Referenced by main().

static int Is4GATxSupported ( uint8_t  portNo)
static
Examples:
net/vlandemo/vlandemo_example.c.

Definition at line 270 of file vlandemo_example.c.

Referenced by main().

int main ( void  )

Definition at line 321 of file vlandemo_example.c.

Variable Documentation

atomic_int appRunning = 1
static

Definition at line 241 of file vlandemo_example.c.

Referenced by main(), and StopApplication().