Reference Documentation

Napatech SmartNIC
Reference Information
static NT_INLINE uint64_t _nt_net_get_next_packet ( struct NtNetBuf_s * segNetBuf,
    uint64_t segLength,
    struct NtNetBuf_s * pktNetBuf

Inline C function to use when traversing segments. The function will update the NetBuf to the next packet in the segment.


[in] segNetBuf

Segment NtNetBuf_s * structure

[in] segLength

Length of the segment - used to know when there is no more data

[out] pktNetBuf

Packet NtNetBuf_s * structure

Return values


the amount of data left in the segment

Definition at line 1251 of file stream_net.h.

Referenced by main().