The ntpcap.ini File

libpcap Installation

IntelĀ® PAC
Napatech SmartNIC
Software Installation Guide

In this section

This section explains configuration using the ntpcap.ini file.

Main function

The main function of the ntpcap.ini file is to be able to tag NTAPI properties, for instance TX port, host buffer allowance, nanosecond resolution and NUMA node, to the libpcap device.

Using NTPL in the ntpcap.ini file

To ease configuration, NTPL commands can be used to set up filters specifically for each libpcap device. This means that it is not necessary to preconfigure filters, for instance, using the ntpl tool (see DN-0449). They are configured when the libpcap device is activated.

However, NTPL commands configured outside the ntpcap.ini file can also be used. The stream ID must then be associated with the libpcap device in the ntpcap.ini file.

Note: In version 1.7.3 or later, system-wide NTPL commands, for instance Setup and DefineMacro, should not be specified in the device sections of the ntpcap.ini file. They will be accepted, but will not work as expected. Instead they must be executed separately in the [Common] section of nrpcap.ini, using the ntpl tool, NTAPI or a filter configuration file on ntservice load.