pktdescr_ext7.h

Reference Documentation

Platform
Napatech SmartNIC
Content Type
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 Ext7 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_EXT7_H__ 14#define __PKT_DESCR_EXT7_H__ 15 16// Ensure that the following is packed. 17#pragma pack(push, 1) 18 19// Extended descriptor 7 RX 20#define _NT_DESCR_EXT7_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 Reserved1:14; /* 13:00 - Reserved */ \ 40 uint32_t Reserved2:3; /* 16:14 - Reserved */ \ 41 uint32_t decodeError:1; /* 17 - Decode error in Frame. Was "prot. small" */ \ 42 uint32_t frameLarge:1; /* 18 - Large frame */ \ 43 uint32_t frameSmall:1; /* 19 - Small frame */ \ 44 uint32_t ipv6FragmentHeader:1; /* 20 - IPv6 fragment header present */ \ 45 uint32_t ipv6RoutingHeader:1; /* 21 - IPv6 routing header present */ \ 46 uint32_t l4ProtocolNumber:8; /* 29:22 - Layer 4 protocol number */ \ 47 uint32_t l3Fragmented:1; /* 30 - L3 fragmented frame */ \ 48 uint32_t l3FirstFragment:1; /* 31 - L3 First fragment */ \ 49 /* 32bit Word3. */ \ 50 uint32_t color:6; /* 05:00 - Color */ \ 51 uint32_t Reserved3:1; /* 06 - Reserved */ \ 52 uint32_t l5Offset:9; /* 15:07 - Offset to layer 5 */ \ 53 uint32_t l4Offset:9; /* 24:16 - Offset to layer 4 */ \ 54 uint32_t l3Offset:7; /* 31:25 - Offset to layer 3 */ 55 56/* Extended descriptor 7 TX */ 57#define _NT_DESCR_EXT7_TX_FIELDS \ 58 /* 32bit Word0. */ \ 59 uint32_t Unused0:32; /* 31:00 - Unused */ \ 60 /* 32bit Word1. */ \ 61 uint32_t Unused1:6; /* 05:00 - Unused */ \ 62 uint32_t l4FrameType:4; /* 09:06 - Layer4 frame type */ \ 63 uint32_t l3FrameType:3; /* 12:10 - Layer3 type */ \ 64 uint32_t l2FrameType:2; /* 14:13 - Layer2 type */ \ 65 uint32_t l4Size:4; /* 18:15 - Layer4 header length (in units of 32 bits) */ \ 66 uint32_t l3Size:7; /* 25:19 - Layer3 header length (in units of 32 bits) */ \ 67 uint32_t mplsCount:3; /* 28:26 - Number of MPLS shim labels present */ \ 68 uint32_t vlanCount:2; /* 30:29 - Number of VLANs present */ \ 69 uint32_t islPresent:1; /* 31 - ISL encapsulation present */ \ 70 /* 32bit Word2. */ \ 71 uint32_t Unused2:14; /* 13:00 - Unused */ \ 72 uint32_t txTsInject:1; /* 14 - Inject TX time stamp */ \ 73 uint32_t calcUDPTCPChecksum:1; /* 15 - Recalculate the UDP/TCP checksum */ \ 74 uint32_t calcIPChecksum:1; /* 16 - Recalculate the IP checksum */ \ 75 uint32_t Unused3:15; /* 31:17 - Unused */ \ 76 /* 32bit Word3. */ \ 77 uint32_t Unused4:7; /* 06:00 - Unused */ \ 78 uint32_t txTsInjectOffset:9; /* 15:07 - 15:07 - TX time stamp inject offset */ \ 79 uint32_t Unused5:16; /* 31:16 - Unused */ 80 81typedef struct NtExt7DescrRx_s { 82 _NT_DESCR_STD0_FIELDS 83 _NT_DESCR_EXT7_RX_FIELDS 84} NtExt7DescrRx_t; 85 86typedef struct NtExt7DescrTx_s { 87 _NT_DESCR_STD0_FIELDS 88 _NT_DESCR_EXT7_TX_FIELDS 89} NtExt7DescrTx_t; 90 91typedef union { 92 NtExt7DescrRx_t rx; 93 NtExt7DescrTx_t tx; 94} NtExt7Descr_t; 95 96// Disable 1-byte packing 97#pragma pack(pop) 98 99#define _NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_) ((NtExt7Descr_t*)(_hNetBuf_)->hHdr) 100 101// RX 102#define _NT_NET_GET_PKT_HASH_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.hash) 103#define _NT_NET_GET_PKT_HASH_TYPE_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.hashType) 104#define _NT_NET_GET_PKT_HASH_VALID_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.hashValid) 105#define _NT_NET_GET_PKT_JUMBO_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.jumbo) 106#define _NT_NET_GET_PKT_BROADCAST_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.broadcastDest) 107#define _NT_NET_GET_PKT_L4_PORT_TYPE_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.l4PortType) 108#define _NT_NET_GET_PKT_L4_FRAME_TYPE_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.l4FrameType) 109#define _NT_NET_GET_PKT_L3_FRAME_TYPE_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.l3FrameType) 110#define _NT_NET_GET_PKT_L2_FRAME_TYPE_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.l2FrameType) 111#define _NT_NET_GET_PKT_L4_LENGTH_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.l4Size) 112#define _NT_NET_GET_PKT_L3_LENGTH_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.l3Size) 113#define _NT_NET_GET_PKT_MPLS_COUNT_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.mplsCount) 114#define _NT_NET_GET_PKT_VLAN_COUNT_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.vlanCount) 115#define _NT_NET_GET_PKT_ISL_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.islPresent) 116#define _NT_NET_GET_PKT_DECODE_ERROR_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.decodeError) 117#define _NT_NET_GET_PKT_FRAME_LARGE_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.frameLarge) 118#define _NT_NET_GET_PKT_FRAME_SMALL_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.frameSmall) 119#define _NT_NET_GET_PKT_IPV6_FR_HEADER_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.ipv6FragmentHeader) 120#define _NT_NET_GET_PKT_IPV6_RT_HEADER_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.ipv6RoutingHeader) 121#define _NT_NET_GET_PKT_L4_PROTOCOL_NUM_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.l4ProtocolNumber) 122#define _NT_NET_GET_PKT_L3_FRAGMENTED_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.l3Fragmented) 123#define _NT_NET_GET_PKT_L3_FIRST_FRAG_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.l3FirstFragment) 124#define _NT_NET_GET_PKT_COLOR_EXT7(_hNetBuf_) ((_hNetBuf_)->colorMap[_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.color]) 125#define _NT_NET_GET_PKT_L5_OFFSET_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.l5Offset) 126#define _NT_NET_GET_PKT_L4_OFFSET_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.l4Offset) 127#define _NT_NET_GET_PKT_L3_OFFSET_EXT7(_hNetBuf_) (_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->rx.l3Offset) 128 129// Introduced in descriptor 8 130#define _NT_NET_GET_PKT_IPF_UNMATCHED_STREAMID_EXT7(_hNetBuf_) (_NT_NET_ASSERT(~0)) 131#define _NT_NET_GET_PKT_IPF_UNMATCHED_FLAG_EXT7(_hNetBuf_) (_NT_NET_ASSERT(~0)) 132#define _NT_NET_GET_PKT_IPF_LAST_FRAGMENT_EXT7(_hNetBuf_) (_NT_NET_ASSERT(~0)) 133 134// Introduced in descriptor 9 135#define _NT_NET_GET_PKT_INNER_L3_OFFSET_EXT7(_hNetBuf_) (_NT_NET_ASSERT(~0)) 136#define _NT_NET_GET_PKT_INNER_L4_OFFSET_EXT7(_hNetBuf_) (_NT_NET_ASSERT(~0)) 137#define _NT_NET_GET_PKT_INNER_L5_OFFSET_EXT7(_hNetBuf_) (_NT_NET_ASSERT(~0)) 138#define _NT_NET_GET_PKT_INNER_L3_FRAME_TYPE_EXT7(_hNetBuf_) (_NT_NET_ASSERT(~0)) 139#define _NT_NET_GET_PKT_INNER_L4_FRAME_TYPE_EXT7(_hNetBuf_) (_NT_NET_ASSERT(~0)) 140#define _NT_NET_GET_PKT_INNER_L3_FRAGMENT_TYPE_EXT7(_hNetBuf_) (_NT_NET_ASSERT(~0)) 141#define _NT_NET_GET_PKT_TUNNEL_TYPE_EXT7(_hNetBuf_) (_NT_NET_ASSERT(~0)) 142#define _NT_NET_GET_PKT_TUNNEL_HDR_LENGTH_EXT7(_hNetBuf_) (_NT_NET_ASSERT(~0)) 143#define _NT_NET_GET_PKT_INNER_DECODE_ERROR_EXT7(_hNetBuf_) (_NT_NET_ASSERT(~0)) 144#define _NT_NET_GET_PKT_DEDUPLICATION_CRC_EXT7(_hNetBuf_) (_NT_NET_ASSERT(~0)) 145 146// TX 147#define _NT_NET_SET_PKT_INJECT_TIMESTAMP_EXT7(_hNetBuf_, _offset_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->tx.txTsInject=1; \ 148 _NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->tx.txTsInjectOffset=(_offset_);}while(0) 149#define _NT_NET_SET_PKT_ISL_EXT7(_hNetBuf_, _bval_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->tx.islPresent=(_bval_);}while(0) 150#define _NT_NET_SET_PKT_VLAN_COUNT_EXT7(_hNetBuf_, _count_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->tx.vlanCount=(_count_);}while(0) 151#define _NT_NET_SET_PKT_MPLS_COUNT_EXT7(_hNetBuf_, _count_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->tx.mplsCount=(_count_);}while(0) 152#define _NT_NET_SET_PKT_L2_FRAME_TYPE_EXT7(_hNetBuf_, _type_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->tx.l2FrameType=(_type_);}while(0) 153#define _NT_NET_SET_PKT_L3_FRAME_TYPE_EXT7(_hNetBuf_, _type_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->tx.l3FrameType=(_type_);}while(0) 154#define _NT_NET_SET_PKT_L4_FRAME_TYPE_EXT7(_hNetBuf_, _type_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->tx.l4FrameType=(_type_);}while(0) 155#define _NT_NET_SET_PKT_L3_LENGTH_EXT7(_hNetBuf_, _u32len_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->tx.l3Size=(_u32len_);}while(0) 156#define _NT_NET_SET_PKT_L4_LENGTH_EXT7(_hNetBuf_, _u32len_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->tx.l4Size=(_u32len_);}while(0) 157#define _NT_NET_SET_PKT_CALC_L3_CHECKSUM_EXT7(_hNetBuf_, _bval_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->tx.calcIPChecksum=(_bval_);}while(0) 158#define _NT_NET_SET_PKT_CALC_L4_CHECKSUM_EXT7(_hNetBuf_, _bval_) do{_NT_NET_GET_PKT_DESCR_PTR_EXT7(_hNetBuf_)->tx.calcUDPTCPChecksum=(_bval_);}while(0) 159 160#if defined(_NTAPI_EXTDESCR_7_) 161#define NT_NET_GET_PKT_HASH(_hNetBuf_) _NT_NET_GET_PKT_HASH_EXT7(_hNetBuf_) 162#define NT_NET_GET_PKT_HASH_TYPE(_hNetBuf_) _NT_NET_GET_PKT_HASH_TYPE_EXT7(_hNetBuf_) 163#define NT_NET_GET_PKT_HASH_VALID(_hNetBuf_) _NT_NET_GET_PKT_HASH_VALID_EXT7(_hNetBuf_) 164#define NT_NET_GET_PKT_JUMBO(_hNetBuf_) _NT_NET_GET_PKT_JUMBO_EXT7(_hNetBuf_) 165#define NT_NET_GET_PKT_BROADCAST(_hNetBuf_) _NT_NET_GET_PKT_BROADCAST_EXT7(_hNetBuf_) 166#define NT_NET_GET_PKT_L4_PORT_TYPE(_hNetBuf_) _NT_NET_GET_PKT_L4_PORT_TYPE_EXT7(_hNetBuf_) 167#define NT_NET_GET_PKT_L4_FRAME_TYPE(_hNetBuf_) _NT_NET_GET_PKT_L4_FRAME_TYPE_EXT7(_hNetBuf_) 168#define NT_NET_GET_PKT_L3_FRAME_TYPE(_hNetBuf_) _NT_NET_GET_PKT_L3_FRAME_TYPE_EXT7(_hNetBuf_) 169#define NT_NET_GET_PKT_L2_FRAME_TYPE(_hNetBuf_) _NT_NET_GET_PKT_L2_FRAME_TYPE_EXT7(_hNetBuf_) 170#define NT_NET_GET_PKT_L4_LENGTH(_hNetBuf_) _NT_NET_GET_PKT_L4_LENGTH_EXT7(_hNetBuf_) 171#define NT_NET_GET_PKT_L3_LENGTH(_hNetBuf_) _NT_NET_GET_PKT_L3_LENGTH_EXT7(_hNetBuf_) 172#define NT_NET_GET_PKT_MPLS_COUNT(_hNetBuf_) _NT_NET_GET_PKT_MPLS_COUNT_EXT7(_hNetBuf_) 173#define NT_NET_GET_PKT_VLAN_COUNT(_hNetBuf_) _NT_NET_GET_PKT_VLAN_COUNT_EXT7(_hNetBuf_) 174#define NT_NET_GET_PKT_ISL(_hNetBuf_) _NT_NET_GET_PKT_ISL_EXT7(_hNetBuf_) 175#define NT_NET_GET_PKT_DECODE_ERROR(_hNetBuf_) _NT_NET_GET_PKT_DECODE_ERROR_EXT7(_hNetBuf_) 176#define NT_NET_GET_PKT_PROT_SMALL(_hNetBuf_) _NT_NET_GET_PKT_DECODE_ERROR_EXT7(_hNetBuf_) // Deprecated - use NT_NET_GET_PKT_DECODE_ERROR 177#define NT_NET_GET_PKT_FRAME_LARGE(_hNetBuf_) _NT_NET_GET_PKT_FRAME_LARGE_EXT7(_hNetBuf_) 178#define NT_NET_GET_PKT_FRAME_SMALL(_hNetBuf_) _NT_NET_GET_PKT_FRAME_SMALL_EXT7(_hNetBuf_) 179#define NT_NET_GET_PKT_IPV6_FR_HEADER(_hNetBuf_) _NT_NET_GET_PKT_IPV6_FR_HEADER_EXT7(_hNetBuf_) 180#define NT_NET_GET_PKT_IPV6_RT_HEADER(_hNetBuf_) _NT_NET_GET_PKT_IPV6_RT_HEADER_EXT7(_hNetBuf_) 181#define NT_NET_GET_PKT_L4_PROTOCOL_NUM(_hNetBuf_) _NT_NET_GET_PKT_L4_PROTOCOL_NUM_EXT7(_hNetBuf_) 182#define NT_NET_GET_PKT_L3_FRAGMENTED(_hNetBuf_) _NT_NET_GET_PKT_L3_FRAGMENTED_EXT7(_hNetBuf_) 183#define NT_NET_GET_PKT_L3_FIRST_FRAG(_hNetBuf_) _NT_NET_GET_PKT_L3_FIRST_FRAG_EXT7(_hNetBuf_) 184#define NT_NET_GET_PKT_COLOR(_hNetBuf_) _NT_NET_GET_PKT_COLOR_EXT7(_hNetBuf_) 185#define NT_NET_GET_PKT_L5_OFFSET(_hNetBuf_) _NT_NET_GET_PKT_L5_OFFSET_EXT7(_hNetBuf_) 186#define NT_NET_GET_PKT_L4_OFFSET(_hNetBuf_) _NT_NET_GET_PKT_L4_OFFSET_EXT7(_hNetBuf_) 187#define NT_NET_GET_PKT_L3_OFFSET(_hNetBuf_) _NT_NET_GET_PKT_L3_OFFSET_EXT7(_hNetBuf_) 188 189#define NT_NET_GET_PKT_IPF_UNMATCHED_STREAMID(_hNetBuf_) _NT_NET_GET_PKT_IPF_UNMATCHED_STREAMID_EXT7(_hNetBuf_) 190#define NT_NET_GET_PKT_IPF_UNMATCHED_FLAG(_hNetBuf_) _NT_NET_GET_PKT_IPF_UNMATCHED_FLAG_EXT7(_hNetBuf_) 191#define NT_NET_GET_PKT_IPF_LAST_FRAGMENT(_hNetBuf_) _NT_NET_GET_PKT_IPF_LAST_FRAGMENT_EXT7(_hNetBuf_) 192 193#define NT_NET_GET_PKT_INNER_L3_OFFSET(_hNetBuf_) _NT_NET_GET_PKT_INNER_L3_OFFSET_EXT7(_hNetBuf_) 194#define NT_NET_GET_PKT_INNER_L4_OFFSET(_hNetBuf_) _NT_NET_GET_PKT_INNER_L4_OFFSET_EXT7(_hNetBuf_) 195#define NT_NET_GET_PKT_INNER_L5_OFFSET(_hNetBuf_) _NT_NET_GET_PKT_INNER_L5_OFFSET_EXT7(_hNetBuf_) 196#define NT_NET_GET_PKT_INNER_L3_FRAME_TYPE(_hNetBuf_) _NT_NET_GET_PKT_INNER_L3_FRAME_TYPE_EXT7(_hNetBuf_) 197#define NT_NET_GET_PKT_INNER_L4_FRAME_TYPE(_hNetBuf_) _NT_NET_GET_PKT_INNER_L4_FRAME_TYPE_EXT7(_hNetBuf_) 198#define NT_NET_GET_PKT_INNER_L3_FRAGMENT_TYPE(_hNetBuf_) _NT_NET_GET_PKT_INNER_L3_FRAGMENT_TYPE_EXT7(_hNetBuf_) 199#define NT_NET_GET_PKT_TUNNEL_TYPE(_hNetBuf_) _NT_NET_GET_PKT_TUNNEL_TYPE_EXT7(_hNetBuf_) 200#define NT_NET_GET_PKT_TUNNEL_HDR_LENGTH(_hNetBuf_) _NT_NET_GET_PKT_TUNNEL_HDR_LENGTH_EXT7(_hNetBuf_) 201#define NT_NET_GET_PKT_INNER_DECODE_ERROR(_hNetBuf_) _NT_NET_GET_PKT_INNER_DECODE_ERROR_EXT7(_hNetBuf_) 202#define NT_NET_GET_PKT_DEDUPLICATION_CRC(_hNetBuf_) _NT_NET_GET_PKT_DEDUPLICATION_CRC_EXT7(_hNetBuf_) 203 204#define NT_NET_SET_PKT_INJECT_TIMESTAMP(_hNetBuf_, _offset_) _NT_NET_SET_PKT_INJECT_TIMESTAMP_EXT7(_hNetBuf_, _offset_) 205#define NT_NET_SET_PKT_ISL(_hNetBuf_, _bval_) _NT_NET_SET_PKT_ISL_EXT7(_hNetBuf_, _bval_) 206#define NT_NET_SET_PKT_VLAN_COUNT(_hNetBuf_, _count_) _NT_NET_SET_PKT_VLAN_COUNT_EXT7(_hNetBuf_, _count_) 207#define NT_NET_SET_PKT_MPLS_COUNT(_hNetBuf_, _count_) _NT_NET_SET_PKT_MPLS_COUNT_EXT7(_hNetBuf_, _count_) 208#define NT_NET_SET_PKT_L2_FRAME_TYPE(_hNetBuf_, _type_) _NT_NET_SET_PKT_L2_FRAME_TYPE_EXT7(_hNetBuf_, _type_) 209#define NT_NET_SET_PKT_L3_FRAME_TYPE(_hNetBuf_, _type_) _NT_NET_SET_PKT_L3_FRAME_TYPE_EXT7(_hNetBuf_, _type_) 210#define NT_NET_SET_PKT_L4_FRAME_TYPE(_hNetBuf_, _type_) _NT_NET_SET_PKT_L4_FRAME_TYPE_EXT7(_hNetBuf_, _type_) 211#define NT_NET_SET_PKT_L3_LENGTH(_hNetBuf_, _u32len_) _NT_NET_SET_PKT_L3_LENGTH_EXT7(_hNetBuf_, _u32len_) 212#define NT_NET_SET_PKT_L4_LENGTH(_hNetBuf_, _u32len_) _NT_NET_SET_PKT_L4_LENGTH_EXT7(_hNetBuf_, _u32len_) 213#define NT_NET_SET_PKT_CALC_L3_CHECKSUM(_hNetBuf_, _bval_) _NT_NET_SET_PKT_CALC_L3_CHECKSUM_EXT7(_hNetBuf_, _bval_) 214#define NT_NET_SET_PKT_CALC_L4_CHECKSUM(_hNetBuf_, _bval_) _NT_NET_SET_PKT_CALC_L4_CHECKSUM_EXT7(_hNetBuf_, _bval_) 215#if !defined(_NT_NTAPI_NO_COMPAT) 216#define NT_NET_SET_PKT_L3_OFFSET(_hNetBuf_, _offset_) 217#define NT_NET_SET_PKT_L4_OFFSET(_hNetBuf_, _offset_) 218#endif 219#endif 220 221#endif /* __PKT_DESCR_EXT7_H__ */ 222 223#endif // DOXYGEN_INTERNAL_ONLY