NT_NTPL

Reference Documentation

product_line_custom
Napatech SmartNIC
category
Reference Information
int NT_NTPL ( NtConfigStream_t hStream,
    const char * ntplBuffer,
    NtNtplInfo_t * info,
    uint32_t validate
  )    

Sends an NTPL line buffer to the parser.

This function is used to send an NTPL line buffer to the parser. The config stream is defined by the hStream stream handle.

When using validate mode no data is written to the adapter. The different modes define how far down the parsing is done.

Note: Return data is stored in the stream handle and must be read by the HAL functions.

Parameters

[in] hStream

Config stream for the NTPL

[in] ntplBuffer

NTPL line buffer containing NTPL code

[in] info

NTPL Info

[in] validate

Set parsing mode to validate. See NtNTPLCommands_e

Return values

NT_SUCCESS

NTPL command has been succesfully executed

NT_ERROR_WRONG_STREAM_TYPE

The stream is not a config stream

NT_ERROR_NT_SERVICE_NOT_STARTED

NT service is not started

NT_ERROR_INVALID_STREAM_POINTER

Stream handle is a NULL pointer

NT_ERROR_INVALID_STREAM_HANDLE

Stream handle is not a valid handle

NT_STATUS_TRYAGAIN

Host buffers are temporarily unavailable - please try again

Definition at line 704 of file stream_config.h.

Referenced by main().