suricata
|
#include <nt.h>
Go to the source code of this file.
Data Structures | |
struct | NapatechPacketVars_ |
struct | NapatechStreamConfig_ |
struct | NapatechCurrentStats_ |
Macros | |
#define | MAX_HOSTBUFFER 4 |
#define | MAX_STREAMS 256 |
#define | MAX_PORTS 80 |
#define | MAX_ADAPTERS 8 |
#define | HB_HIGHWATER 2048 |
#define | NAPATECH_ERROR(status) |
#define | NAPATECH_NTPL_ERROR(ntpl_cmd, ntpl_info, status) |
#define | NAPATECH_DEBUG(...) |
#define | NAPATECH_PRINTIP(a) |
Typedefs | |
typedef struct NapatechPacketVars_ | NapatechPacketVars |
typedef struct NapatechStreamConfig_ | NapatechStreamConfig |
typedef struct NapatechCurrentStats_ | NapatechCurrentStats |
Functions | |
void | NapatechStartStats (void) |
NapatechCurrentStats | NapatechGetCurrentStats (uint16_t id) |
int | NapatechGetStreamConfig (NapatechStreamConfig stream_config[]) |
Reads and parses the stream configuration defined in the config file. More... | |
bool | NapatechSetupNuma (uint32_t stream, uint32_t numa) |
uint32_t | NapatechSetupTraffic (uint32_t first_stream, uint32_t last_stream) |
uint32_t | NapatechDeleteFilters (void) |
Definition in file util-napatech.h.
#define HB_HIGHWATER 2048 |
Definition at line 62 of file util-napatech.h.
#define MAX_ADAPTERS 8 |
Definition at line 61 of file util-napatech.h.
#define MAX_HOSTBUFFER 4 |
Definition at line 58 of file util-napatech.h.
#define MAX_PORTS 80 |
Definition at line 60 of file util-napatech.h.
#define MAX_STREAMS 256 |
Definition at line 59 of file util-napatech.h.
#define NAPATECH_DEBUG | ( | ... | ) |
Definition at line 94 of file util-napatech.h.
#define NAPATECH_ERROR | ( | status | ) |
Definition at line 66 of file util-napatech.h.
#define NAPATECH_NTPL_ERROR | ( | ntpl_cmd, | |
ntpl_info, | |||
status | |||
) |
Definition at line 73 of file util-napatech.h.
#define NAPATECH_PRINTIP | ( | a | ) |
Definition at line 95 of file util-napatech.h.
typedef struct NapatechCurrentStats_ NapatechCurrentStats |
typedef struct NapatechPacketVars_ NapatechPacketVars |
typedef struct NapatechStreamConfig_ NapatechStreamConfig |
uint32_t NapatechDeleteFilters | ( | void | ) |
Definition at line 1334 of file util-napatech.c.
References NAPATECH_ERROR, and NAPATECH_NTPL_ERROR.
NapatechCurrentStats NapatechGetCurrentStats | ( | uint16_t | id | ) |
Definition at line 195 of file util-napatech.c.
References current_stats.
Referenced by NapatechStreamThreadExitStats().
int NapatechGetStreamConfig | ( | NapatechStreamConfig | stream_config[] | ) |
Reads and parses the stream configuration defined in the config file.
stream_config | - array to be filled in with active stream info. |
Definition at line 803 of file util-napatech.c.
References ConfGetBool(), MAX_STREAMS, NAPATECH_ERROR, NapatechIsAutoConfigEnabled(), SCLogError, and stream_config.
bool NapatechSetupNuma | ( | uint32_t | stream, |
uint32_t | numa | ||
) |
Definition at line 1223 of file util-napatech.c.
References NAPATECH_ERROR, and NAPATECH_NTPL_ERROR.
uint32_t NapatechSetupTraffic | ( | uint32_t | first_stream, |
uint32_t | last_stream | ||
) |
Definition at line 1361 of file util-napatech.c.
void NapatechStartStats | ( | void | ) |
Definition at line 1184 of file util-napatech.c.
References TmThreadCreate().