netflow_example.c

Reference Documentation

Platform
Intel® PAC
Napatech SmartNIC
Content Type
Reference Information
Capture Software Version
Link™ Capture Software 12.10
Napatech Software Suite: examples/net/netflow/netflow_example.c File Reference
netflow_example.c File Reference
#include <nt.h>
#include <netinet/in.h>
#include <inttypes.h>

Go to the source code of this file.

Data Structures

struct  IPv6Header_s
 
struct  IPv4Header_s
 
struct  UDPHeader_s
 
struct  TCPHeader_s
 

Macros

#define IP_DONT_FRAGMENT   0x4000
 
#define IP_MORE_FRAGMENTS   0x2000
 
#define ARRAY_SIZE(a)   (sizeof((a))/sizeof(*(a)))
 

Functions

static void DumpL4 (NtDyn1Descr_t *pDyn1)
 
static void DumpIPv4 (NtDyn1Descr_t *pDyn1)
 
static void DumpIPv6 (NtDyn1Descr_t *pDyn1)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

#define IP_DONT_FRAGMENT   0x4000

Definition at line 159 of file netflow_example.c.

#define IP_MORE_FRAGMENTS   0x2000

Definition at line 160 of file netflow_example.c.

#define ARRAY_SIZE (   a)    (sizeof((a))/sizeof(*(a)))
Examples:
net/netflow/netflow_example.c.

Definition at line 198 of file netflow_example.c.

Referenced by main().

Function Documentation

static void DumpL4 ( NtDyn1Descr_t pDyn1)
static
Examples:
net/netflow/netflow_example.c.

Definition at line 200 of file netflow_example.c.

Referenced by DumpIPv4(), and DumpIPv6().

static void DumpIPv4 ( NtDyn1Descr_t pDyn1)
static
Examples:
net/netflow/netflow_example.c.

Definition at line 218 of file netflow_example.c.

Referenced by main().

static void DumpIPv6 ( NtDyn1Descr_t pDyn1)
static
Examples:
net/netflow/netflow_example.c.

Definition at line 231 of file netflow_example.c.

Referenced by main().

int main ( int  argc,
char *  argv[] 
)

Definition at line 248 of file netflow_example.c.