pktdescr_ext9.h

Reference Documentation

product_line_custom
Napatech SmartNIC
category
Reference Information

Go to the documentation of this file.

1/* 2 * %NT_SOFTWARE_LICENSE% 3 */ 4 5/** 6 * @file 7 * This source file contains the Ext9 packet descriptor.\n 8 * It is <b>not</b> to be used directly but via the @ref PacketMacros. 9 */ 10 11#ifndef DOXYGEN_INTERNAL_ONLY 12 13#ifndef __PKT_DESCR_EXT9_H__ 14#define __PKT_DESCR_EXT9_H__ 15 16// Ensure that the following is packed. 17#pragma pack(push, 1) 18 19// Extended descriptor 9 RX 20#define _NT_DESCR_EXT9_RX_FIELDS \ 21 /* 32bit Word0. */ \ 22 uint32_t hash:24; /* 23:00 - Hash value */ \ 23 uint32_t hashType:5; /* 28:24 - Hash type */ \ 24 uint32_t innerL3FragmentType:2; /* 30:29 - inner IP frame fragment type */ \ 25 uint32_t hashValid:1; /* 31 - Hash valid */ \ 26 /* 32bit Word1. */ \ 27 uint32_t jumbo:1; /* 00 - Jumbo frame */ \ 28 uint32_t broadcastDest:1; /* 01 - Destination MAC address is broadcast */ \ 29 uint32_t tunnelType:4; /* 05:02 - Tunnel type */ \ 30 uint32_t l4FrameType:4; /* 09:06 - Layer4 frame type */ \ 31 uint32_t l3FrameType:3; /* 12:10 - Layer3 type */ \ 32 uint32_t l2FrameType:2; /* 14:13 - Layer2 type */ \ 33 uint32_t l4Size:4; /* 18:15 - Layer4 header length (in units of 32 bits) */ \ 34 uint32_t l3Size:7; /* 25:19 - Layer3 header length (in units of 32 bits) */ \ 35 uint32_t mplsCount:3; /* 28:26 - Number of MPLS shim labels present */ \ 36 uint32_t vlanCount:2; /* 30:29 - Number of VLANs present */ \ 37 uint32_t islPresent:1; /* 31 - ISL encapsulation present */ \ 38 /* 32bit Word2. */ \ 39 uint32_t l3UnmatchedFragFeed:8; /* 07:00 - feed where unmatched fragments are stored */ \ 40 uint32_t tunnelHdrSize:3; /* 10:08 - Tunnel header size (in units of 32 bits) */ \ 41 uint32_t Reserved1:1; /* 11 - Reserved */ \ 42 uint32_t l3UnmatchedFragFlag:1; /* 12 - L3 Unmatched fragment flag - requires IPF */ \ 43 uint32_t l3LastFragment:1; /* 13 - L3 Last Fragment flag */ \ 44 uint32_t Reserved2:3; /* 16:14 - Reserved */ \ 45 uint32_t decodeError:1; /* 17 - Decode error in Frame. Was "prot. small" */ \ 46 uint32_t frameLarge:1; /* 18 - Large frame */ \ 47 uint32_t frameSmall:1; /* 19 - Small frame */ \ 48 uint32_t ipv6FragmentHeader:1; /* 20 - IPv6 fragment header present */ \ 49 uint32_t ipv6RoutingHeader:1; /* 21 - IPv6 routing header present */ \ 50 uint32_t l4ProtocolNumber:8; /* 29:22 - Layer 4 protocol number */ \ 51 uint32_t l3Fragmented:1; /* 30 - L3 fragmented frame */ \ 52 uint32_t l3FirstFragment:1; /* 31 - L3 First fragment */ \ 53 /* 32bit Word3. */ \ 54 uint32_t color:6; /* 05:00 - Color */ \ 55 uint32_t innerDecodeError:1; /* 06 - Inner decode error */ \ 56 uint32_t l5Offset:9; /* 15:07 - Offset to layer 5 */ \ 57 uint32_t l4Offset:9; /* 24:16 - Offset to layer 4 */ \ 58 uint32_t l3Offset:7; /* 31:25 - Offset to layer 3 */ \ 59 /* 32bit Word4. */ \ 60 uint32_t dedupCrc:24; /* 23:00 - Deduplication CRC */ \ 61 uint32_t Reserved3:8; /* 31:24 - Reserved */ \ 62 /* 32bit Word5. */ \ 63 uint32_t innerL3Offset:9; /* 08:00 - Inner offset to layer 3 */ \ 64 uint32_t innerL4Offset:9; /* 17:09 - Inner offset to layer 4 */ \ 65 uint32_t innerL5Offset:9; /* 26:18 - Inner offset to layer 5 */ \ 66 uint32_t innerL4FrameType:3; /* 29:27 - Inner layer 4 frame type */ \ 67 uint32_t innerL3FrameType:2; /* 31:30 - Inner layer 3 frame type */ 68 69// Extended descriptor 9 TX 70#define _NT_DESCR_EXT9_TX_FIELDS \ 71 /* 32bit Word0. */ \ 72 uint32_t Unused0:32; /* 31:00 - Unused */ \ 73 /* 32bit Word1. */ \ 74 uint32_t Unused1:6; /* 05:00 - Unused */ \ 75 uint32_t l4FrameType:4; /* 09:06 - Layer4 frame type */ \ 76 uint32_t l3FrameType:3; /* 12:10 - Layer3 type */ \ 77 uint32_t l2FrameType:2; /* 14:13 - Layer2 type */ \ 78 uint32_t l4Size:4; /* 18:15 - Layer4 header length (in units of 32 bits) */ \ 79 uint32_t l3Size:7; /* 25:19 - Layer3 header length (in units of 32 bits) */ \ 80 uint32_t mplsCount:3; /* 28:26 - Number of MPLS shim labels present */ \ 81 uint32_t vlanCount:2; /* 30:29 - Number of VLANs present */ \ 82 uint32_t islPresent:1; /* 31 - ISL encapsulation present */ \ 83 /* 32bit Word2. */ \ 84 uint32_t Unused2:14; /* 13:00 - Unused */ \ 85 uint32_t txTsInject:1; /* 14 - Inject TX time stamp */ \ 86 uint32_t calcUDPTCPChecksum:1; /* 15 - Recalculate the UDP/TCP checksum */ \ 87 uint32_t calcIPChecksum:1; /* 16 - Recalculate the IP checksum */ \ 88 uint32_t Unused3:15; /* 31:17 - Unused */ \ 89 /* 32bit Word3. */ \ 90 uint32_t Unused4:7; /* 06:00 - Unused */ \ 91 uint32_t txTsInjectOffset:9; /* 15:07 - 15:07 - TX time stamp inject offset */ \ 92 uint32_t Unused5:16; /* 31:16 - Unused */ \ 93 /* 32bit Word4. */ \ 94 uint32_t Unused6; /* 31:00 - Unused */ \ 95 /* 32bit Word5. */ \ 96 uint32_t Unused7; /* 31:00 - Unused */ 97 98typedef struct NtExt9DescrRx_s { 99 _NT_DESCR_STD0_FIELDS 100 _NT_DESCR_EXT9_RX_FIELDS 101} NtExt9DescrRx_t; 102 103typedef struct NtExt9DescrTx_s { 104 _NT_DESCR_STD0_FIELDS 105 _NT_DESCR_EXT9_TX_FIELDS 106} NtExt9DescrTx_t; 107 108typedef union { 109 NtExt9DescrRx_t rx; 110 NtExt9DescrTx_t tx; 111} NtExt9Descr_t; 112 113// Disable 1-byte packing 114#pragma pack(pop) 115 116#define _NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_) ((NtExt9Descr_t*)(_hNetBuf_)->hHdr) 117 118// RX 119#define _NT_NET_GET_PKT_HASH_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.hash) 120#define _NT_NET_GET_PKT_HASH_TYPE_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.hashType) 121#define _NT_NET_GET_PKT_HASH_VALID_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.hashValid) 122#define _NT_NET_GET_PKT_JUMBO_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.jumbo) 123#define _NT_NET_GET_PKT_BROADCAST_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.broadcastDest) 124#define _NT_NET_GET_PKT_L4_PORT_TYPE_EXT9(_hNetBuf_) \ 125 ((_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.tunnelType < 3) ? \ 126 (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.tunnelType) : \ 127 (((_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.tunnelType) == 3 || \ 128 (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.tunnelType) == 4) ? 3 : 0)) 129#define _NT_NET_GET_PKT_L4_FRAME_TYPE_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.l4FrameType) 130#define _NT_NET_GET_PKT_L3_FRAME_TYPE_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.l3FrameType) 131#define _NT_NET_GET_PKT_L2_FRAME_TYPE_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.l2FrameType) 132#define _NT_NET_GET_PKT_L4_LENGTH_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.l4Size) 133#define _NT_NET_GET_PKT_L3_LENGTH_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.l3Size) 134#define _NT_NET_GET_PKT_MPLS_COUNT_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.mplsCount) 135#define _NT_NET_GET_PKT_VLAN_COUNT_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.vlanCount) 136#define _NT_NET_GET_PKT_ISL_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.islPresent) 137#define _NT_NET_GET_PKT_DECODE_ERROR_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.decodeError) 138#define _NT_NET_GET_PKT_FRAME_LARGE_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.frameLarge) 139#define _NT_NET_GET_PKT_FRAME_SMALL_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.frameSmall) 140#define _NT_NET_GET_PKT_IPV6_FR_HEADER_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.ipv6FragmentHeader) 141#define _NT_NET_GET_PKT_IPV6_RT_HEADER_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.ipv6RoutingHeader) 142#define _NT_NET_GET_PKT_L4_PROTOCOL_NUM_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.l4ProtocolNumber) 143#define _NT_NET_GET_PKT_L3_FRAGMENTED_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.l3Fragmented) 144#define _NT_NET_GET_PKT_L3_FIRST_FRAG_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.l3FirstFragment) 145#define _NT_NET_GET_PKT_COLOR_EXT9(_hNetBuf_) ((_hNetBuf_)->colorMap[_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.color]) 146#define _NT_NET_GET_PKT_L5_OFFSET_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.l5Offset) 147#define _NT_NET_GET_PKT_L4_OFFSET_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.l4Offset) 148#define _NT_NET_GET_PKT_L3_OFFSET_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.l3Offset) 149 150// Introduced in descriptor 8 151#define _NT_NET_GET_PKT_IPF_UNMATCHED_STREAMID_EXT9(_hNetBuf_) \ 152 ((_hNetBuf_)->streamInfo[(_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.l3UnmatchedFragFeed<<_FEED2STREAM_SHL_)+(_hNetBuf_)->adapterNo]) 153#define _NT_NET_GET_PKT_IPF_UNMATCHED_FLAG_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.l3UnmatchedFragFlag) 154#define _NT_NET_GET_PKT_IPF_LAST_FRAGMENT_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.l3LastFragment) 155 156// Introduced in descriptor 9 157#define _NT_NET_GET_PKT_INNER_L3_OFFSET_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.innerL3Offset) 158#define _NT_NET_GET_PKT_INNER_L4_OFFSET_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.innerL4Offset) 159#define _NT_NET_GET_PKT_INNER_L5_OFFSET_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.innerL5Offset) 160#define _NT_NET_GET_PKT_INNER_L3_FRAME_TYPE_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.innerL3FrameType) 161#define _NT_NET_GET_PKT_INNER_L4_FRAME_TYPE_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.innerL4FrameType) 162#define _NT_NET_GET_PKT_INNER_L3_FRAGMENT_TYPE_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.innerL3FragmentType) 163#define _NT_NET_GET_PKT_TUNNEL_TYPE_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.tunnelType) 164#define _NT_NET_GET_PKT_TUNNEL_HDR_LENGTH_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.tunnelHdrSize) 165#define _NT_NET_GET_PKT_INNER_DECODE_ERROR_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.innerDecodeError) 166#define _NT_NET_GET_PKT_DEDUPLICATION_CRC_EXT9(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->rx.dedupCrc) 167 168// TX 169#define _NT_NET_SET_PKT_INJECT_TIMESTAMP_EXT9(_hNetBuf_, _offset_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->tx.txTsInject=1; \ 170 _NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->tx.txTsInjectOffset=(_offset_);}while(0) 171#define _NT_NET_SET_PKT_ISL_EXT9(_hNetBuf_, _bval_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->tx.islPresent=(_bval_);}while(0) 172#define _NT_NET_SET_PKT_VLAN_COUNT_EXT9(_hNetBuf_, _count_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->tx.vlanCount=(_count_);}while(0) 173#define _NT_NET_SET_PKT_MPLS_COUNT_EXT9(_hNetBuf_, _count_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->tx.mplsCount=(_count_);}while(0) 174#define _NT_NET_SET_PKT_L2_FRAME_TYPE_EXT9(_hNetBuf_, _type_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->tx.l2FrameType=(_type_);}while(0) 175#define _NT_NET_SET_PKT_L3_FRAME_TYPE_EXT9(_hNetBuf_, _type_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->tx.l3FrameType=(_type_);}while(0) 176#define _NT_NET_SET_PKT_L4_FRAME_TYPE_EXT9(_hNetBuf_, _type_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->tx.l4FrameType=(_type_);}while(0) 177#define _NT_NET_SET_PKT_L3_LENGTH_EXT9(_hNetBuf_, _u32len_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->tx.l3Size=(_u32len_);}while(0) 178#define _NT_NET_SET_PKT_L4_LENGTH_EXT9(_hNetBuf_, _u32len_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->tx.l4Size=(_u32len_);}while(0) 179#define _NT_NET_SET_PKT_CALC_L3_CHECKSUM_EXT9(_hNetBuf_, _bval_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->tx.calcIPChecksum=(_bval_);}while(0) 180#define _NT_NET_SET_PKT_CALC_L4_CHECKSUM_EXT9(_hNetBuf_, _bval_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT9(_hNetBuf_)->tx.calcUDPTCPChecksum=(_bval_);}while(0) 181 182#if defined(_NTAPI_EXTDESCR_9_) 183#define NT_NET_GET_PKT_HASH(_hNetBuf_) _NT_NET_GET_PKT_HASH_EXT9(_hNetBuf_) 184#define NT_NET_GET_PKT_HASH_TYPE(_hNetBuf_) _NT_NET_GET_PKT_HASH_TYPE_EXT9(_hNetBuf_) 185#define NT_NET_GET_PKT_HASH_VALID(_hNetBuf_) _NT_NET_GET_PKT_HASH_VALID_EXT9(_hNetBuf_) 186#define NT_NET_GET_PKT_JUMBO(_hNetBuf_) _NT_NET_GET_PKT_JUMBO_EXT9(_hNetBuf_) 187#define NT_NET_GET_PKT_BROADCAST(_hNetBuf_) _NT_NET_GET_PKT_BROADCAST_EXT9(_hNetBuf_) 188#define NT_NET_GET_PKT_L4_PORT_TYPE(_hNetBuf_) _NT_NET_GET_PKT_L4_PORT_TYPE_EXT9(_hNetBuf_) 189#define NT_NET_GET_PKT_L4_FRAME_TYPE(_hNetBuf_) _NT_NET_GET_PKT_L4_FRAME_TYPE_EXT9(_hNetBuf_) 190#define NT_NET_GET_PKT_L3_FRAME_TYPE(_hNetBuf_) _NT_NET_GET_PKT_L3_FRAME_TYPE_EXT9(_hNetBuf_) 191#define NT_NET_GET_PKT_L2_FRAME_TYPE(_hNetBuf_) _NT_NET_GET_PKT_L2_FRAME_TYPE_EXT9(_hNetBuf_) 192#define NT_NET_GET_PKT_L4_LENGTH(_hNetBuf_) _NT_NET_GET_PKT_L4_LENGTH_EXT9(_hNetBuf_) 193#define NT_NET_GET_PKT_L3_LENGTH(_hNetBuf_) _NT_NET_GET_PKT_L3_LENGTH_EXT9(_hNetBuf_) 194#define NT_NET_GET_PKT_MPLS_COUNT(_hNetBuf_) _NT_NET_GET_PKT_MPLS_COUNT_EXT9(_hNetBuf_) 195#define NT_NET_GET_PKT_VLAN_COUNT(_hNetBuf_) _NT_NET_GET_PKT_VLAN_COUNT_EXT9(_hNetBuf_) 196#define NT_NET_GET_PKT_ISL(_hNetBuf_) _NT_NET_GET_PKT_ISL_EXT9(_hNetBuf_) 197#define NT_NET_GET_PKT_DECODE_ERROR(_hNetBuf_) _NT_NET_GET_PKT_DECODE_ERROR_EXT9(_hNetBuf_) 198#define NT_NET_GET_PKT_PROT_SMALL(_hNetBuf_) _NT_NET_GET_PKT_DECODE_ERROR_EXT9(_hNetBuf_) // Deprecated - use NT_NET_GET_PKT_DECODE_ERROR 199#define NT_NET_GET_PKT_FRAME_LARGE(_hNetBuf_) _NT_NET_GET_PKT_FRAME_LARGE_EXT9(_hNetBuf_) 200#define NT_NET_GET_PKT_FRAME_SMALL(_hNetBuf_) _NT_NET_GET_PKT_FRAME_SMALL_EXT9(_hNetBuf_) 201#define NT_NET_GET_PKT_IPV6_FR_HEADER(_hNetBuf_) _NT_NET_GET_PKT_IPV6_FR_HEADER_EXT9(_hNetBuf_) 202#define NT_NET_GET_PKT_IPV6_RT_HEADER(_hNetBuf_) _NT_NET_GET_PKT_IPV6_RT_HEADER_EXT9(_hNetBuf_) 203#define NT_NET_GET_PKT_L4_PROTOCOL_NUM(_hNetBuf_) _NT_NET_GET_PKT_L4_PROTOCOL_NUM_EXT9(_hNetBuf_) 204#define NT_NET_GET_PKT_L3_FRAGMENTED(_hNetBuf_) _NT_NET_GET_PKT_L3_FRAGMENTED_EXT9(_hNetBuf_) 205#define NT_NET_GET_PKT_L3_FIRST_FRAG(_hNetBuf_) _NT_NET_GET_PKT_L3_FIRST_FRAG_EXT9(_hNetBuf_) 206#define NT_NET_GET_PKT_COLOR(_hNetBuf_) _NT_NET_GET_PKT_COLOR_EXT9(_hNetBuf_) 207#define NT_NET_GET_PKT_L5_OFFSET(_hNetBuf_) _NT_NET_GET_PKT_L5_OFFSET_EXT9(_hNetBuf_) 208#define NT_NET_GET_PKT_L4_OFFSET(_hNetBuf_) _NT_NET_GET_PKT_L4_OFFSET_EXT9(_hNetBuf_) 209#define NT_NET_GET_PKT_L3_OFFSET(_hNetBuf_) _NT_NET_GET_PKT_L3_OFFSET_EXT9(_hNetBuf_) 210 211#define NT_NET_GET_PKT_IPF_UNMATCHED_STREAMID(_hNetBuf_) _NT_NET_GET_PKT_IPF_UNMATCHED_STREAMID_EXT9(_hNetBuf_) 212#define NT_NET_GET_PKT_IPF_UNMATCHED_FLAG(_hNetBuf_) _NT_NET_GET_PKT_IPF_UNMATCHED_FLAG_EXT9(_hNetBuf_) 213#define NT_NET_GET_PKT_IPF_LAST_FRAGMENT(_hNetBuf_) _NT_NET_GET_PKT_IPF_LAST_FRAGMENT_EXT9(_hNetBuf_) 214 215#define NT_NET_GET_PKT_INNER_L3_OFFSET(_hNetBuf_) _NT_NET_GET_PKT_INNER_L3_OFFSET_EXT9(_hNetBuf_) 216#define NT_NET_GET_PKT_INNER_L4_OFFSET(_hNetBuf_) _NT_NET_GET_PKT_INNER_L4_OFFSET_EXT9(_hNetBuf_) 217#define NT_NET_GET_PKT_INNER_L5_OFFSET(_hNetBuf_) _NT_NET_GET_PKT_INNER_L5_OFFSET_EXT9(_hNetBuf_) 218#define NT_NET_GET_PKT_INNER_L3_FRAME_TYPE(_hNetBuf_) _NT_NET_GET_PKT_INNER_L3_FRAME_TYPE_EXT9(_hNetBuf_) 219#define NT_NET_GET_PKT_INNER_L4_FRAME_TYPE(_hNetBuf_) _NT_NET_GET_PKT_INNER_L4_FRAME_TYPE_EXT9(_hNetBuf_) 220#define NT_NET_GET_PKT_INNER_L3_FRAGMENT_TYPE(_hNetBuf_) _NT_NET_GET_PKT_INNER_L3_FRAGMENT_TYPE_EXT9(_hNetBuf_) 221#define NT_NET_GET_PKT_TUNNEL_TYPE(_hNetBuf_) _NT_NET_GET_PKT_TUNNEL_TYPE_EXT9(_hNetBuf_) 222#define NT_NET_GET_PKT_TUNNEL_HDR_LENGTH(_hNetBuf_) _NT_NET_GET_PKT_TUNNEL_HDR_LENGTH_EXT9(_hNetBuf_) 223#define NT_NET_GET_PKT_INNER_DECODE_ERROR(_hNetBuf_) _NT_NET_GET_PKT_INNER_DECODE_ERROR_EXT9(_hNetBuf_) 224#define NT_NET_GET_PKT_DEDUPLICATION_CRC(_hNetBuf_) _NT_NET_GET_PKT_DEDUPLICATION_CRC_EXT9(_hNetBuf_) 225 226#define NT_NET_SET_PKT_INJECT_TIMESTAMP(_hNetBuf_, _offset_) _NT_NET_SET_PKT_INJECT_TIMESTAMP_EXT9(_hNetBuf_, _offset_) 227#define NT_NET_SET_PKT_ISL(_hNetBuf_, _bval_) _NT_NET_SET_PKT_ISL_EXT9(_hNetBuf_, _bval_) 228#define NT_NET_SET_PKT_VLAN_COUNT(_hNetBuf_, _count_) _NT_NET_SET_PKT_VLAN_COUNT_EXT9(_hNetBuf_, _count_) 229#define NT_NET_SET_PKT_MPLS_COUNT(_hNetBuf_, _count_) _NT_NET_SET_PKT_MPLS_COUNT_EXT9(_hNetBuf_, _count_) 230#define NT_NET_SET_PKT_L2_FRAME_TYPE(_hNetBuf_, _type_) _NT_NET_SET_PKT_L2_FRAME_TYPE_EXT9(_hNetBuf_, _type_) 231#define NT_NET_SET_PKT_L3_FRAME_TYPE(_hNetBuf_, _type_) _NT_NET_SET_PKT_L3_FRAME_TYPE_EXT9(_hNetBuf_, _type_) 232#define NT_NET_SET_PKT_L4_FRAME_TYPE(_hNetBuf_, _type_) _NT_NET_SET_PKT_L4_FRAME_TYPE_EXT9(_hNetBuf_, _type_) 233#define NT_NET_SET_PKT_L3_LENGTH(_hNetBuf_, _u32len_) _NT_NET_SET_PKT_L3_LENGTH_EXT9(_hNetBuf_, _u32len_) 234#define NT_NET_SET_PKT_L4_LENGTH(_hNetBuf_, _u32len_) _NT_NET_SET_PKT_L4_LENGTH_EXT9(_hNetBuf_, _u32len_) 235#define NT_NET_SET_PKT_CALC_L3_CHECKSUM(_hNetBuf_, _bval_) _NT_NET_SET_PKT_CALC_L3_CHECKSUM_EXT9(_hNetBuf_, _bval_) 236#define NT_NET_SET_PKT_CALC_L4_CHECKSUM(_hNetBuf_, _bval_) _NT_NET_SET_PKT_CALC_L4_CHECKSUM_EXT9(_hNetBuf_, _bval_) 237#if !defined(_NT_NTAPI_NO_COMPAT) 238#define NT_NET_SET_PKT_L3_OFFSET(_hNetBuf_, _offset_) 239#define NT_NET_SET_PKT_L4_OFFSET(_hNetBuf_, _offset_) 240#endif 241#endif 242 243#endif /* __PKT_DESCR_EXT9_H__ */ 244 245#endif // DOXYGEN_INTERNAL_ONLY