NT_NetFileOpen

Reference Documentation

product_line_custom
Napatech SmartNIC
category
Reference Information
int NT_NetFileOpen ( NtNetStreamFile_t * hStream,
    const char * name,
    enum NtNetInterface_e netIntf,
    const char * file
  )    

Opens a capture file.

This function is called to open a capture file, captured with a segment-based stream. The capture file must have an NT, PCAP or PCAP-NG file header otherwise it will fail when opening the capture file.

Parameters

[out] hStream

Reference to a NetFile_t stream pointer

[in] name

A stream friendly name - used in, for example, logging statements

[in] netIntf

Deliver packets or segments

[in] file

The capture file to open

Return values

NT_SUCCESS

Success

!=NT_SUCCESS

Error - use NT_ExplainError for an error description

Definition at line 931 of file stream_net.h.

Referenced by GetTimeStamp(), and main().