suricata
util-napatech.c File Reference
#include "suricata-common.h"
#include "suricata.h"
#include "threadvars.h"
#include "tm-threads.h"
Include dependency graph for util-napatech.c:

Go to the source code of this file.

Data Structures

struct  StreamCounters_
 

Macros

#define MAX_HOSTBUFFER   4
 
#define MAX_STREAMS   256
 
#define HB_HIGHWATER   2048
 

Typedefs

typedef struct StreamCounters_ StreamCounters
 

Functions

uint16_t NapatechGetNumaNode (uint16_t stream_id)
 
NapatechCurrentStats NapatechGetCurrentStats (uint16_t id)
 
uint16_t NapatechGetStreamConfig (NapatechStreamConfig stream_config[])
 
void NapatechStartStats (void)
 

Variables

NapatechCurrentStats current_stats [MAX_STREAMS]
 

Detailed Description

Author
Napatech Inc.
Phil Young py@na.nosp@m.pate.nosp@m.ch.co.nosp@m.m

Definition in file util-napatech.c.

Macro Definition Documentation

#define HB_HIGHWATER   2048

Definition at line 333 of file util-napatech.c.

Referenced by NapatechGetStreamConfig().

#define MAX_HOSTBUFFER   4

Definition at line 331 of file util-napatech.c.

#define MAX_STREAMS   256

Definition at line 332 of file util-napatech.c.

Referenced by NapatechGetCurrentStats(), and NapatechGetStreamConfig().

Typedef Documentation

Function Documentation

uint16_t NapatechGetNumaNode ( uint16_t  stream_id)

Definition at line 35 of file util-napatech.c.

References SC_ERR_NAPATECH_INIT_FAILED, SC_ERR_NAPATECH_STREAMS_REGISTER_FAILED, and SCLogError.

Referenced by NapatechPacketLoopZC().

Here is the caller graph for this function:

void NapatechStartStats ( void  )

Definition at line 695 of file util-napatech.c.

References SC_ERR_THREAD_CREATE, SC_ERR_THREAD_SPAWN, SCLogError, TmThreadCreate(), and TmThreadSpawn().

Referenced by RunModeNapatechRegister().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

Definition at line 82 of file util-napatech.c.