Dynamic Packet Descriptor 2

Reference Documentation

product_line_custom
Intel® PAC
Napatech SmartNIC
category
Reference Information
Napatech Software Suite: Dynamic Packet Descriptor 2

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. This descriptor offers a 38-bit color field, which is useful when identifying billions of flows or alternatively holding the hash value.
Note: The wireLength field has been sacrificed so in case of slicing the original packet length is unknown.

Data Structures

struct  NtDyn2Descr_s
 NT Variable descriptor 2. More...
 

Typedefs

typedef struct NtDyn2Descr_s NtDyn2Descr_t
 NT Variable descriptor 2. More...
 

Data Structure Documentation

struct NtDyn2Descr_s

NT Variable descriptor 2.

Examples:
net/capfileconvert/capfileconvert_example.c.

Definition at line 57 of file pktdescr_dyn2.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
 
uint64_t offset2:10
 
uint64_t color:38
 

Field Documentation

uint64_t NtDyn2Descr_s::capLength

The length of the packet incl. descriptor.

Definition at line 58 of file pktdescr_dyn2.h.

uint64_t NtDyn2Descr_s::offset0

Programmable offset into the packet. Default is outer L3.

Definition at line 59 of file pktdescr_dyn2.h.

uint64_t NtDyn2Descr_s::offset1

Programmable offset into the packet. Default is outer L4.

Definition at line 60 of file pktdescr_dyn2.h.

uint64_t NtDyn2Descr_s::ipProtocol

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

Definition at line 61 of file pktdescr_dyn2.h.

uint64_t NtDyn2Descr_s::rxPort

The port that received the frame.

Definition at line 62 of file pktdescr_dyn2.h.

uint64_t NtDyn2Descr_s::descrFormat

The descriptor type.

Definition at line 63 of file pktdescr_dyn2.h.

uint64_t NtDyn2Descr_s::descrLength

The length of the descriptor in bytes.

Examples:
net/capfileconvert/capfileconvert_example.c.

Definition at line 64 of file pktdescr_dyn2.h.

Referenced by _Convert().

uint64_t NtDyn2Descr_s::tsColor

Timestamp color. Reserved for future use.

Definition at line 65 of file pktdescr_dyn2.h.

uint64_t NtDyn2Descr_s::ntDynDescr

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

Definition at line 66 of file pktdescr_dyn2.h.

uint64_t NtDyn2Descr_s::timestamp

The time of arrival of the packet.

Examples:
net/capfileconvert/capfileconvert_example.c.

Definition at line 67 of file pktdescr_dyn2.h.

Referenced by _Convert().

uint64_t NtDyn2Descr_s::offset2

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

Definition at line 68 of file pktdescr_dyn2.h.

uint64_t NtDyn2Descr_s::color

32 bit hash and 6 bit traditional color.

Definition at line 69 of file pktdescr_dyn2.h.

Typedef Documentation

typedef struct NtDyn2Descr_s NtDyn2Descr_t

NT Variable descriptor 2.