_nt_net_get_next_packet

Reference Documentation

product_line_custom
Napatech SmartNIC
category
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.

Parameters

[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

Returns

the amount of data left in the segment

Definition at line 1251 of file stream_net.h.

Referenced by main().