NtNetTxPacketOption_e

Reference Documentation

product_line_custom
Napatech SmartNIC
category
Reference Information
enum NtNetTxPacketOption_e

Network TX packet options

Enumerator
NT_NETTX_PACKET_OPTION_UNKNOWN

Unknown option.

NT_NETTX_PACKET_OPTION_DEFAULT

Gets a TX buffer with a pre-configured packet descriptor. Use this option to transmit L2 data. This option uses packetSize as wire length.

NT_NETTX_PACKET_OPTION_L2

Same as default.

NT_NETTX_PACKET_OPTION_RAW

Gets a raw TX packet buffer without packet descriptor. Care needs to be taken when using this option. Use this option in replay scenarios where packets already have a correct descriptor, e.g. data recorded using File Network Stream. Uses packetSize as the stored length. With this option packetSize must be a multiple of 8 (NT3GA only).

NT_NETTX_SEGMENT_OPTION_RAW

Gets a raw TX segment buffer. Care needs to be taken when using this option. Use this option in replay scenarios where the segment length is known prior to calling NT_NetTxGet. Use packetSize as the segment length. The port parameter in NT_NetTxGet is used to control that the segment returned belongs to the adapter on which the port resides. It is required that the txPort in the packet descriptors within the segment are set before releasing the segment. If the host buffer layout is NT_NET_HOSTBUFFER_LAYOUT_SLABS, the slabs are automatically terminated when this option is used.

Definition at line 638 of file stream_net.h.