pktdescr_ext8.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 Ext8 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_EXT8_H__ 14#define __PKT_DESCR_EXT8_H__ 15 16// Ensure that the following is packed. 17#pragma pack(push, 1) 18 19// Extended descriptor 8 RX 20#define _NT_DESCR_EXT8_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 Reserved0:2; /* 30:29 - Reserved */ \ 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 l4PortType:4; /* 05:02 - Layer4 port 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 Reserved1:4; /* 11:08 - Reserved */ \ 41 uint32_t l3UnmatchedFragFlag:1; /* 12 - L3 Unmatched fragment flag - requires IPF */ \ 42 uint32_t l3LastFragment:1; /* 13 - L3 Last Fragment flag */ \ 43 uint32_t Reserved2:3; /* 16:14 - Reserved */ \ 44 uint32_t decodeError:1; /* 17 - Decode error in Frame. Was "prot. small" */ \ 45 uint32_t frameLarge:1; /* 18 - Large frame */ \ 46 uint32_t frameSmall:1; /* 19 - Small frame */ \ 47 uint32_t ipv6FragmentHeader:1; /* 20 - IPv6 fragment header present */ \ 48 uint32_t ipv6RoutingHeader:1; /* 21 - IPv6 routing header present */ \ 49 uint32_t l4ProtocolNumber:8; /* 29:22 - Layer 4 protocol number */ \ 50 uint32_t l3Fragmented:1; /* 30 - L3 fragmented frame */ \ 51 uint32_t l3FirstFragment:1; /* 31 - L3 First fragment */ \ 52 /* 32bit Word3. */ \ 53 uint32_t color:6; /* 05:00 - Color */ \ 54 uint32_t Reserved3:1; /* 06 - Reserved */ \ 55 uint32_t l5Offset:9; /* 15:07 - Offset to layer 5 */ \ 56 uint32_t l4Offset:9; /* 24:16 - Offset to layer 4 */ \ 57 uint32_t l3Offset:7; /* 31:25 - Offset to layer 3 */ 58 59/* Extended descriptor 8 TX */ 60#define _NT_DESCR_EXT8_TX_FIELDS \ 61 /* 32bit Word0. */ \ 62 uint32_t Unused0:32; /* 31:00 - Unused */ \ 63 /* 32bit Word1. */ \ 64 uint32_t Unused1:6; /* 05:00 - Unused */ \ 65 uint32_t l4FrameType:4; /* 09:06 - Layer4 frame type */ \ 66 uint32_t l3FrameType:3; /* 12:10 - Layer3 type */ \ 67 uint32_t l2FrameType:2; /* 14:13 - Layer2 type */ \ 68 uint32_t l4Size:4; /* 18:15 - Layer4 header length (in units of 32 bits) */ \ 69 uint32_t l3Size:7; /* 25:19 - Layer3 header length (in units of 32 bits) */ \ 70 uint32_t mplsCount:3; /* 28:26 - Number of MPLS shim labels present */ \ 71 uint32_t vlanCount:2; /* 30:29 - Number of VLANs present */ \ 72 uint32_t islPresent:1; /* 31 - ISL encapsulation present */ \ 73 /* 32bit Word2. */ \ 74 uint32_t Unused2:14; /* 13:00 - Unused */ \ 75 uint32_t txTsInject:1; /* 14 - Inject TX time stamp */ \ 76 uint32_t calcUDPTCPChecksum:1; /* 15 - Recalculate the UDP/TCP checksum */ \ 77 uint32_t calcIPChecksum:1; /* 16 - Recalculate the IP checksum */ \ 78 uint32_t Unused3:15; /* 31:17 - Unused */ \ 79 /* 32bit Word3. */ \ 80 uint32_t Unused4:7; /* 06:00 - Unused */ \ 81 uint32_t txTsInjectOffset:9; /* 15:07 - 15:07 - TX time stamp inject offset */ \ 82 uint32_t Unused5:16; /* 31:16 - Unused */ 83 84typedef struct NtExt8DescrRx_s { 85 _NT_DESCR_STD0_FIELDS 86 _NT_DESCR_EXT8_RX_FIELDS 87} NtExt8DescrRx_t; 88 89typedef struct NtExt8DescrTx_s { 90 _NT_DESCR_STD0_FIELDS 91 _NT_DESCR_EXT8_TX_FIELDS 92} NtExt8DescrTx_t; 93 94typedef union { 95 NtExt8DescrRx_t rx; 96 NtExt8DescrTx_t tx; 97} NtExt8Descr_t; 98 99// Disable 1-byte packing 100#pragma pack(pop) 101 102#define _NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_) ((NtExt8Descr_t*)(_hNetBuf_)->hHdr) 103 104// RX 105#define _NT_NET_GET_PKT_HASH_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.hash) 106#define _NT_NET_GET_PKT_HASH_TYPE_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.hashType) 107#define _NT_NET_GET_PKT_HASH_VALID_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.hashValid) 108#define _NT_NET_GET_PKT_JUMBO_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.jumbo) 109#define _NT_NET_GET_PKT_BROADCAST_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.broadcastDest) 110#define _NT_NET_GET_PKT_L4_PORT_TYPE_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.l4PortType) 111#define _NT_NET_GET_PKT_L4_FRAME_TYPE_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.l4FrameType) 112#define _NT_NET_GET_PKT_L3_FRAME_TYPE_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.l3FrameType) 113#define _NT_NET_GET_PKT_L2_FRAME_TYPE_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.l2FrameType) 114#define _NT_NET_GET_PKT_L4_LENGTH_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.l4Size) 115#define _NT_NET_GET_PKT_L3_LENGTH_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.l3Size) 116#define _NT_NET_GET_PKT_MPLS_COUNT_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.mplsCount) 117#define _NT_NET_GET_PKT_VLAN_COUNT_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.vlanCount) 118#define _NT_NET_GET_PKT_ISL_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.islPresent) 119#define _NT_NET_GET_PKT_DECODE_ERROR_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.decodeError) 120#define _NT_NET_GET_PKT_FRAME_LARGE_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.frameLarge) 121#define _NT_NET_GET_PKT_FRAME_SMALL_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.frameSmall) 122#define _NT_NET_GET_PKT_IPV6_FR_HEADER_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.ipv6FragmentHeader) 123#define _NT_NET_GET_PKT_IPV6_RT_HEADER_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.ipv6RoutingHeader) 124#define _NT_NET_GET_PKT_L4_PROTOCOL_NUM_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.l4ProtocolNumber) 125#define _NT_NET_GET_PKT_L3_FRAGMENTED_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.l3Fragmented) 126#define _NT_NET_GET_PKT_L3_FIRST_FRAG_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.l3FirstFragment) 127#define _NT_NET_GET_PKT_COLOR_EXT8(_hNetBuf_) ((_hNetBuf_)->colorMap[_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.color]) 128#define _NT_NET_GET_PKT_L5_OFFSET_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.l5Offset) 129#define _NT_NET_GET_PKT_L4_OFFSET_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.l4Offset) 130#define _NT_NET_GET_PKT_L3_OFFSET_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.l3Offset) 131 132// Introduced in descriptor 8 133#define _NT_NET_GET_PKT_IPF_UNMATCHED_STREAMID_EXT8(_hNetBuf_) \ 134 ((_hNetBuf_)->streamInfo[(_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.l3UnmatchedFragFeed<<_FEED2STREAM_SHL_)+(_hNetBuf_)->adapterNo]) 135#define _NT_NET_GET_PKT_IPF_UNMATCHED_FLAG_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.l3UnmatchedFragFlag) 136#define _NT_NET_GET_PKT_IPF_LAST_FRAGMENT_EXT8(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->rx.l3LastFragment) 137 138// Introduced in descriptor 9 139#define _NT_NET_GET_PKT_INNER_L3_OFFSET_EXT8(_hNetBuf_) (_NT_NET_ASSERT(~0)) 140#define _NT_NET_GET_PKT_INNER_L4_OFFSET_EXT8(_hNetBuf_) (_NT_NET_ASSERT(~0)) 141#define _NT_NET_GET_PKT_INNER_L5_OFFSET_EXT8(_hNetBuf_) (_NT_NET_ASSERT(~0)) 142#define _NT_NET_GET_PKT_INNER_L3_FRAME_TYPE_EXT8(_hNetBuf_) (_NT_NET_ASSERT(~0)) 143#define _NT_NET_GET_PKT_INNER_L4_FRAME_TYPE_EXT8(_hNetBuf_) (_NT_NET_ASSERT(~0)) 144#define _NT_NET_GET_PKT_INNER_L3_FRAGMENT_TYPE_EXT8(_hNetBuf_) (_NT_NET_ASSERT(~0)) 145#define _NT_NET_GET_PKT_TUNNEL_TYPE_EXT8(_hNetBuf_) (_NT_NET_ASSERT(~0)) 146#define _NT_NET_GET_PKT_TUNNEL_HDR_LENGTH_EXT8(_hNetBuf_) (_NT_NET_ASSERT(~0)) 147#define _NT_NET_GET_PKT_INNER_DECODE_ERROR_EXT8(_hNetBuf_) (_NT_NET_ASSERT(~0)) 148#define _NT_NET_GET_PKT_DEDUPLICATION_CRC_EXT8(_hNetBuf_) (_NT_NET_ASSERT(~0)) 149 150// TX 151#define _NT_NET_SET_PKT_INJECT_TIMESTAMP_EXT8(_hNetBuf_, _offset_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->tx.txTsInject=1; \ 152 _NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->tx.txTsInjectOffset=(_offset_);}while(0) 153#define _NT_NET_SET_PKT_ISL_EXT8(_hNetBuf_, _bval_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->tx.islPresent=(_bval_);}while(0) 154#define _NT_NET_SET_PKT_VLAN_COUNT_EXT8(_hNetBuf_, _count_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->tx.vlanCount=(_count_);}while(0) 155#define _NT_NET_SET_PKT_MPLS_COUNT_EXT8(_hNetBuf_, _count_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->tx.mplsCount=(_count_);}while(0) 156#define _NT_NET_SET_PKT_L2_FRAME_TYPE_EXT8(_hNetBuf_, _type_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->tx.l2FrameType=(_type_);}while(0) 157#define _NT_NET_SET_PKT_L3_FRAME_TYPE_EXT8(_hNetBuf_, _type_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->tx.l3FrameType=(_type_);}while(0) 158#define _NT_NET_SET_PKT_L4_FRAME_TYPE_EXT8(_hNetBuf_, _type_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->tx.l4FrameType=(_type_);}while(0) 159#define _NT_NET_SET_PKT_L3_LENGTH_EXT8(_hNetBuf_, _u32len_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->tx.l3Size=(_u32len_);}while(0) 160#define _NT_NET_SET_PKT_L4_LENGTH_EXT8(_hNetBuf_, _u32len_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->tx.l4Size=(_u32len_);}while(0) 161#define _NT_NET_SET_PKT_CALC_L3_CHECKSUM_EXT8(_hNetBuf_, _bval_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->tx.calcIPChecksum=(_bval_);}while(0) 162#define _NT_NET_SET_PKT_CALC_L4_CHECKSUM_EXT8(_hNetBuf_, _bval_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT8(_hNetBuf_)->tx.calcUDPTCPChecksum=(_bval_);}while(0) 163 164#if defined(_NTAPI_EXTDESCR_8_) 165#define NT_NET_GET_PKT_HASH(_hNetBuf_) _NT_NET_GET_PKT_HASH_EXT8(_hNetBuf_) 166#define NT_NET_GET_PKT_HASH_TYPE(_hNetBuf_) _NT_NET_GET_PKT_HASH_TYPE_EXT8(_hNetBuf_) 167#define NT_NET_GET_PKT_HASH_VALID(_hNetBuf_) _NT_NET_GET_PKT_HASH_VALID_EXT8(_hNetBuf_) 168#define NT_NET_GET_PKT_JUMBO(_hNetBuf_) _NT_NET_GET_PKT_JUMBO_EXT8(_hNetBuf_) 169#define NT_NET_GET_PKT_BROADCAST(_hNetBuf_) _NT_NET_GET_PKT_BROADCAST_EXT8(_hNetBuf_) 170#define NT_NET_GET_PKT_L4_PORT_TYPE(_hNetBuf_) _NT_NET_GET_PKT_L4_PORT_TYPE_EXT8(_hNetBuf_) 171#define NT_NET_GET_PKT_L4_FRAME_TYPE(_hNetBuf_) _NT_NET_GET_PKT_L4_FRAME_TYPE_EXT8(_hNetBuf_) 172#define NT_NET_GET_PKT_L3_FRAME_TYPE(_hNetBuf_) _NT_NET_GET_PKT_L3_FRAME_TYPE_EXT8(_hNetBuf_) 173#define NT_NET_GET_PKT_L2_FRAME_TYPE(_hNetBuf_) _NT_NET_GET_PKT_L2_FRAME_TYPE_EXT8(_hNetBuf_) 174#define NT_NET_GET_PKT_L4_LENGTH(_hNetBuf_) _NT_NET_GET_PKT_L4_LENGTH_EXT8(_hNetBuf_) 175#define NT_NET_GET_PKT_L3_LENGTH(_hNetBuf_) _NT_NET_GET_PKT_L3_LENGTH_EXT8(_hNetBuf_) 176#define NT_NET_GET_PKT_MPLS_COUNT(_hNetBuf_) _NT_NET_GET_PKT_MPLS_COUNT_EXT8(_hNetBuf_) 177#define NT_NET_GET_PKT_VLAN_COUNT(_hNetBuf_) _NT_NET_GET_PKT_VLAN_COUNT_EXT8(_hNetBuf_) 178#define NT_NET_GET_PKT_ISL(_hNetBuf_) _NT_NET_GET_PKT_ISL_EXT8(_hNetBuf_) 179#define NT_NET_GET_PKT_DECODE_ERROR(_hNetBuf_) _NT_NET_GET_PKT_DECODE_ERROR_EXT8(_hNetBuf_) 180#define NT_NET_GET_PKT_PROT_SMALL(_hNetBuf_) _NT_NET_GET_PKT_DECODE_ERROR_EXT8(_hNetBuf_) // Deprecated - use NT_NET_GET_PKT_DECODE_ERROR 181#define NT_NET_GET_PKT_FRAME_LARGE(_hNetBuf_) _NT_NET_GET_PKT_FRAME_LARGE_EXT8(_hNetBuf_) 182#define NT_NET_GET_PKT_FRAME_SMALL(_hNetBuf_) _NT_NET_GET_PKT_FRAME_SMALL_EXT8(_hNetBuf_) 183#define NT_NET_GET_PKT_IPV6_FR_HEADER(_hNetBuf_) _NT_NET_GET_PKT_IPV6_FR_HEADER_EXT8(_hNetBuf_) 184#define NT_NET_GET_PKT_IPV6_RT_HEADER(_hNetBuf_) _NT_NET_GET_PKT_IPV6_RT_HEADER_EXT8(_hNetBuf_) 185#define NT_NET_GET_PKT_L4_PROTOCOL_NUM(_hNetBuf_) _NT_NET_GET_PKT_L4_PROTOCOL_NUM_EXT8(_hNetBuf_) 186#define NT_NET_GET_PKT_L3_FRAGMENTED(_hNetBuf_) _NT_NET_GET_PKT_L3_FRAGMENTED_EXT8(_hNetBuf_) 187#define NT_NET_GET_PKT_L3_FIRST_FRAG(_hNetBuf_) _NT_NET_GET_PKT_L3_FIRST_FRAG_EXT8(_hNetBuf_) 188#define NT_NET_GET_PKT_COLOR(_hNetBuf_) _NT_NET_GET_PKT_COLOR_EXT8(_hNetBuf_) 189#define NT_NET_GET_PKT_L5_OFFSET(_hNetBuf_) _NT_NET_GET_PKT_L5_OFFSET_EXT8(_hNetBuf_) 190#define NT_NET_GET_PKT_L4_OFFSET(_hNetBuf_) _NT_NET_GET_PKT_L4_OFFSET_EXT8(_hNetBuf_) 191#define NT_NET_GET_PKT_L3_OFFSET(_hNetBuf_) _NT_NET_GET_PKT_L3_OFFSET_EXT8(_hNetBuf_) 192 193#define NT_NET_GET_PKT_IPF_UNMATCHED_STREAMID(_hNetBuf_) _NT_NET_GET_PKT_IPF_UNMATCHED_STREAMID_EXT8(_hNetBuf_) 194#define NT_NET_GET_PKT_IPF_UNMATCHED_FLAG(_hNetBuf_) _NT_NET_GET_PKT_IPF_UNMATCHED_FLAG_EXT8(_hNetBuf_) 195#define NT_NET_GET_PKT_IPF_LAST_FRAGMENT(_hNetBuf_) _NT_NET_GET_PKT_IPF_LAST_FRAGMENT_EXT8(_hNetBuf_) 196 197#define NT_NET_GET_PKT_INNER_L3_OFFSET(_hNetBuf_) _NT_NET_GET_PKT_INNER_L3_OFFSET_EXT8(_hNetBuf_) 198#define NT_NET_GET_PKT_INNER_L4_OFFSET(_hNetBuf_) _NT_NET_GET_PKT_INNER_L4_OFFSET_EXT8(_hNetBuf_) 199#define NT_NET_GET_PKT_INNER_L5_OFFSET(_hNetBuf_) _NT_NET_GET_PKT_INNER_L5_OFFSET_EXT8(_hNetBuf_) 200#define NT_NET_GET_PKT_INNER_L3_FRAME_TYPE(_hNetBuf_) _NT_NET_GET_PKT_INNER_L3_FRAME_TYPE_EXT8(_hNetBuf_) 201#define NT_NET_GET_PKT_INNER_L4_FRAME_TYPE(_hNetBuf_) _NT_NET_GET_PKT_INNER_L4_FRAME_TYPE_EXT8(_hNetBuf_) 202#define NT_NET_GET_PKT_INNER_L3_FRAGMENT_TYPE(_hNetBuf_) _NT_NET_GET_PKT_INNER_L3_FRAGMENT_TYPE_EXT8(_hNetBuf_) 203#define NT_NET_GET_PKT_TUNNEL_TYPE(_hNetBuf_) _NT_NET_GET_PKT_TUNNEL_TYPE_EXT8(_hNetBuf_) 204#define NT_NET_GET_PKT_TUNNEL_HDR_LENGTH(_hNetBuf_) _NT_NET_GET_PKT_TUNNEL_HDR_LENGTH_EXT8(_hNetBuf_) 205#define NT_NET_GET_PKT_INNER_DECODE_ERROR(_hNetBuf_) _NT_NET_GET_PKT_INNER_DECODE_ERROR_EXT8(_hNetBuf_) 206#define NT_NET_GET_PKT_DEDUPLICATION_CRC(_hNetBuf_) _NT_NET_GET_PKT_DEDUPLICATION_CRC_EXT8(_hNetBuf_) 207 208#define NT_NET_SET_PKT_INJECT_TIMESTAMP(_hNetBuf_, _offset_) _NT_NET_SET_PKT_INJECT_TIMESTAMP_EXT8(_hNetBuf_, _offset_) 209#define NT_NET_SET_PKT_ISL(_hNetBuf_, _bval_) _NT_NET_SET_PKT_ISL_EXT8(_hNetBuf_, _bval_) 210#define NT_NET_SET_PKT_VLAN_COUNT(_hNetBuf_, _count_) _NT_NET_SET_PKT_VLAN_COUNT_EXT8(_hNetBuf_, _count_) 211#define NT_NET_SET_PKT_MPLS_COUNT(_hNetBuf_, _count_) _NT_NET_SET_PKT_MPLS_COUNT_EXT8(_hNetBuf_, _count_) 212#define NT_NET_SET_PKT_L2_FRAME_TYPE(_hNetBuf_, _type_) _NT_NET_SET_PKT_L2_FRAME_TYPE_EXT8(_hNetBuf_, _type_) 213#define NT_NET_SET_PKT_L3_FRAME_TYPE(_hNetBuf_, _type_) _NT_NET_SET_PKT_L3_FRAME_TYPE_EXT8(_hNetBuf_, _type_) 214#define NT_NET_SET_PKT_L4_FRAME_TYPE(_hNetBuf_, _type_) _NT_NET_SET_PKT_L4_FRAME_TYPE_EXT8(_hNetBuf_, _type_) 215#define NT_NET_SET_PKT_L3_LENGTH(_hNetBuf_, _u32len_) _NT_NET_SET_PKT_L3_LENGTH_EXT8(_hNetBuf_, _u32len_) 216#define NT_NET_SET_PKT_L4_LENGTH(_hNetBuf_, _u32len_) _NT_NET_SET_PKT_L4_LENGTH_EXT8(_hNetBuf_, _u32len_) 217#define NT_NET_SET_PKT_CALC_L3_CHECKSUM(_hNetBuf_, _bval_) _NT_NET_SET_PKT_CALC_L3_CHECKSUM_EXT8(_hNetBuf_, _bval_) 218#define NT_NET_SET_PKT_CALC_L4_CHECKSUM(_hNetBuf_, _bval_) _NT_NET_SET_PKT_CALC_L4_CHECKSUM_EXT8(_hNetBuf_, _bval_) 219#if !defined(_NT_NTAPI_NO_COMPAT) 220#define NT_NET_SET_PKT_L3_OFFSET(_hNetBuf_, _offset_) 221#define NT_NET_SET_PKT_L4_OFFSET(_hNetBuf_, _offset_) 222#endif 223#endif 224 225#endif /* __PKT_DESCR_EXT8_H__ */ 226 227#endif // DOXYGEN_INTERNAL_ONLY