Dynamic Packet Descriptor 1

Reference Documentation

Platform
Intel® PAC
Napatech SmartNIC
Content Type
Reference Information
Capture Software Version
Link™ Capture Software 12.10
Napatech Software Suite: Dynamic Packet Descriptor 1

Data Structures

struct  NtDyn1Descr_s
 NT Variable descriptor 1. More...
 

Typedefs

typedef struct NtDyn1Descr_s NtDyn1Descr_t
 NT Variable descriptor 1. More...
 

Detailed Description

This descriptor offers 3 dynamic offsets, IP protocol field and a 6-bit color field. The packet descriptor is suited for applications doing NetFlow and IDS.
Note: The wireLength field has been sacrificed so in case of slicing the original packet length is unknown.


Data Structure Documentation

struct NtDyn1Descr_s

NT Variable descriptor 1.

Examples:
net/capfileconvert/capfileconvert_example.c, and net/netflow/netflow_example.c.

Definition at line 55 of file pktdescr_dyn1.h.

Data Fields

uint64_t capLength:14
 
uint64_t offset0:10
 
uint64_t offset1:10
 
uint64_t ipProtocol:8
 
uint64_t rxPort:6
 
uint64_t descrFormat:8
 
uint64_t descrLength:6
 
uint64_t tsColor:1
 
uint64_t ntDynDescr:1
 
uint64_t timestamp
 
uint16_t offset2:10
 
uint16_t color:6
 

Field Documentation

uint64_t NtDyn1Descr_s::capLength

The length of the packet incl. descriptor.

Examples:
net/netflow/netflow_example.c.

Definition at line 56 of file pktdescr_dyn1.h.

Referenced by DumpL4(), and main().

uint64_t NtDyn1Descr_s::offset0

Programmable offset into the packet. Default is outer L3.

Examples:
net/netflow/netflow_example.c.

Definition at line 57 of file pktdescr_dyn1.h.

Referenced by DumpIPv4(), DumpIPv6(), DumpL4(), and main().

uint64_t NtDyn1Descr_s::offset1

Programmable offset into the packet. Default is outer L4.

Examples:
net/netflow/netflow_example.c.

Definition at line 58 of file pktdescr_dyn1.h.

Referenced by DumpL4(), and main().

uint64_t NtDyn1Descr_s::ipProtocol

Select-able IP protocol. Default is outer IP Protocol field.

Examples:
net/netflow/netflow_example.c.

Definition at line 59 of file pktdescr_dyn1.h.

Referenced by DumpL4(), and main().

uint64_t NtDyn1Descr_s::rxPort

The port that received the frame.

Examples:
net/netflow/netflow_example.c.

Definition at line 60 of file pktdescr_dyn1.h.

Referenced by main().

uint64_t NtDyn1Descr_s::descrFormat

The descriptor type.

Examples:
net/netflow/netflow_example.c.

Definition at line 61 of file pktdescr_dyn1.h.

Referenced by main().

uint64_t NtDyn1Descr_s::descrLength

The length of the descriptor in bytes.

Examples:
net/capfileconvert/capfileconvert_example.c, and net/netflow/netflow_example.c.

Definition at line 62 of file pktdescr_dyn1.h.

Referenced by _Convert(), DumpIPv4(), DumpIPv6(), DumpL4(), and main().

uint64_t NtDyn1Descr_s::tsColor

Timestamp color. Reserved for future use.

Examples:
net/netflow/netflow_example.c.

Definition at line 63 of file pktdescr_dyn1.h.

Referenced by main().

uint64_t NtDyn1Descr_s::ntDynDescr

Set to 1 to identify this descriptor as a dynamic descriptor.

Definition at line 64 of file pktdescr_dyn1.h.

uint64_t NtDyn1Descr_s::timestamp

The time of arrival of the packet.

Examples:
net/capfileconvert/capfileconvert_example.c, and net/netflow/netflow_example.c.

Definition at line 65 of file pktdescr_dyn1.h.

Referenced by _Convert(), DumpIPv4(), DumpIPv6(), and main().

uint16_t NtDyn1Descr_s::offset2

Programmable offset into the packet. Default is outer L4 payload.

Examples:
net/netflow/netflow_example.c.

Definition at line 66 of file pktdescr_dyn1.h.

Referenced by main().

uint16_t NtDyn1Descr_s::color

Programmable packet color.

Examples:
net/netflow/netflow_example.c.

Definition at line 67 of file pktdescr_dyn1.h.

Referenced by main().

Typedef Documentation

typedef struct NtDyn1Descr_s NtDyn1Descr_t

NT Variable descriptor 1.