stream_net_compat.h

Reference Documentation

product_line_custom
Napatech SmartNIC
category
Reference Information

Go to the documentation of this file.

1/* 2 * %NT_SOFTWARE_LICENSE% 3 */ 4 5/** 6 * @file 7 * 8 * This is the header file of the STREAMTYPE_NET interface containing 9 * included for backward compatibility structures. 10 * 11 */ 12#ifndef __STREAM_NET_COMPAT_H__ 13#define __STREAM_NET_COMPAT_H__ 14 15#if !defined(_NT_NTAPI_NO_COMPAT) 16 17/***********************************************************************************************/ 18/* Net file read version 0 */ 19/***********************************************************************************************/ 20 21#define NT_NETFILE_READ_INFO_CMD NT_NETFILE_READ_COMPAT_0 22 23/** 24 * NetFile stream Info return structure 25 */ 26 27typedef struct NtNetFileReadInfo_s { 28 uint64_t lastTimestamp; //!< The time stamp in the last packet in last the segment read using the function @ref NT_NetFileGet 29 uint64_t numberOfOctets; //!< Number of octets read from Netfile so far 30 uint32_t numberOfPackets; //!< Number of packets read from Netfile so far 31} NtNetFileInfo_t; 32 33#endif // _NT_NTAPI_NO_COMPAT 34#endif // __STREAM_NET_COMPAT_H__