Modules | |
| Functions to handle segment data | |
Macros | |
| #define | NT_NET_GET_SEGMENT_PTR(_hNetBuf_) |
| Returns the segment pointer. More... | |
| #define | NT_NET_GET_SEGMENT_LENGTH(_hNetBuf_) |
| Returns the segment length. More... | |
| #define | NT_NET_GET_SEGMENT_PKTS(_hNetBuf_) |
| Returns the number of packets in a segment. More... | |
| #define | NT_NET_GET_SEGMENT_TIMESTAMP(_hNetBuf_) |
| The time stamp of the first packet in the segment. More... | |
| #define | NT_NET_GET_SEGMENT_TIMESTAMP_TYPE(_hNetBuf_) |
| The time stamp type. More... | |
| #define | NT_NET_SET_SEGMENT_LENGTH(_hNetBuf_, _length_) |
| Sets the segment length. More... | |
Functions | |
| uint64_t | NT_NetGetSegmentTimestamp (void *pDescr) |
Detailed Description
The following is only possible on segment-based streams
Macro Definition Documentation
| #define NT_NET_GET_SEGMENT_PTR | ( | _hNetBuf_ | ) |
Returns the segment pointer.
- Parameters
-
[in] _hNetBuf_ Segment container reference
- Examples:
- net/capture/capture_example.c, net/replay/replay_example.c, and net/replay4GA/replay4ga_example.c.
Definition at line 1885 of file stream_net.h.
| #define NT_NET_GET_SEGMENT_LENGTH | ( | _hNetBuf_ | ) |
Returns the segment length.
- Parameters
-
[in] _hNetBuf_ Segment container reference
- Examples:
- net/capture/capture_example.c, net/replay/replay_example.c, net/replay4GA/replay4ga_example.c, net/segment_inline/segment_inline_example.c, net/transmit_multifunction/transmit_multifunction_example.c, net/transmit_segment/transmit_segment_example.c, and net/transmit_segment_dyn_descr/transmit_segment_dyn_descr_example.cpp.
Definition at line 1892 of file stream_net.h.
| #define NT_NET_GET_SEGMENT_PKTS | ( | _hNetBuf_ | ) |
Returns the number of packets in a segment.
This macro is only supported on NT4GA adapters configured to static segment size emulation mode. On NT4GA adapters configured to dynamic segment size this macro will always return 0.
- Parameters
-
[in] _hNetBuf_ Segment container reference
Definition at line 1903 of file stream_net.h.
| #define NT_NET_GET_SEGMENT_TIMESTAMP | ( | _hNetBuf_ | ) |
The time stamp of the first packet in the segment.
- Parameters
-
[in] _hNetBuf_ Segment container reference
Definition at line 1910 of file stream_net.h.
| #define NT_NET_GET_SEGMENT_TIMESTAMP_TYPE | ( | _hNetBuf_ | ) |
The time stamp type.
- Parameters
-
[in] _hNetBuf_ Segment container reference
- Examples:
- net/capture/capture_example.c.
Definition at line 1918 of file stream_net.h.
| #define NT_NET_SET_SEGMENT_LENGTH | ( | _hNetBuf_, | |
| _length_ | |||
| ) |
Sets the segment length.
This is used when generating a TX segment and should be used with care.
- Parameters
-
[in,out] _hNetBuf_ Segment container reference [in] _length_ Length of the segment
Definition at line 1928 of file stream_net.h.
Function Documentation
| uint64_t NT_NetGetSegmentTimestamp | ( | void * | pDescr | ) |