suricata
|
#include "suricata-common.h"
#include "suricata.h"
#include "util-device.h"
#include "util-cpu.h"
#include "util-byte.h"
#include "threadvars.h"
#include "tm-threads.h"
#include "util-napatech.h"
#include "source-napatech.h"
Go to the source code of this file.
Data Structures | |
struct | PacketCounters_ |
Macros | |
#define | MAX_HOSTBUFFERS 8 |
#define | MAX_HOSTBUFFER 4 |
#define | MAX_STREAMS 256 |
#define | HB_HIGHWATER 2048 |
#define | PORTS_SPEC_SIZE 64 |
Typedefs | |
typedef struct PacketCounters_ | PacketCounters |
Enumerations | |
enum | CONFIG_SPECIFIER { CONFIG_SPECIFIER_UNDEFINED = 0, CONFIG_SPECIFIER_RANGE, CONFIG_SPECIFIER_INDIVIDUAL } |
Functions | |
NapatechCurrentStats | NapatechGetCurrentStats (uint16_t id) |
int | NapatechGetStreamConfig (NapatechStreamConfig stream_config[]) |
Reads and parses the stream configuration defined in the config file. More... | |
void | NapatechStartStats (void) |
bool | NapatechSetupNuma (uint32_t stream, uint32_t numa) |
uint32_t | NapatechDeleteFilters (void) |
uint32_t | NapatechSetupTraffic (uint32_t first_stream, uint32_t last_stream) |
Variables | |
NapatechCurrentStats | total_stats |
NapatechCurrentStats | current_stats [MAX_STREAMS] |
Definition in file util-napatech.c.
#define HB_HIGHWATER 2048 |
Definition at line 691 of file util-napatech.c.
#define MAX_HOSTBUFFER 4 |
Definition at line 689 of file util-napatech.c.
#define MAX_HOSTBUFFERS 8 |
Definition at line 208 of file util-napatech.c.
#define MAX_STREAMS 256 |
Definition at line 690 of file util-napatech.c.
#define PORTS_SPEC_SIZE 64 |
typedef struct PacketCounters_ PacketCounters |
enum CONFIG_SPECIFIER |
Enumerator | |
---|---|
CONFIG_SPECIFIER_UNDEFINED | |
CONFIG_SPECIFIER_RANGE | |
CONFIG_SPECIFIER_INDIVIDUAL |
Definition at line 201 of file util-napatech.c.
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().
NapatechCurrentStats current_stats[MAX_STREAMS] |
Definition at line 193 of file util-napatech.c.
Referenced by NapatechGetCurrentStats().
NapatechCurrentStats total_stats |
Definition at line 192 of file util-napatech.c.