suricata
|
#include <nt.h>
Go to the source code of this file.
Data Structures | |
struct | NapatechStreamDevConf |
Functions | |
void | TmModuleNapatechStreamRegister (void) |
Register the Napatech receiver (reader) module. More... | |
TmEcode | NapatechStreamThreadDeinit (ThreadVars *tv, void *data) |
Deinitializes the NAPATECH card. More... | |
void | TmModuleNapatechDecodeRegister (void) |
Register the Napatech decoder module. More... | |
int | NapatechSetPortmap (int port, int peer) |
int | NapatechGetAdapter (uint8_t port) |
Definition in file source-napatech.h.
int NapatechGetAdapter | ( | uint8_t | port | ) |
int NapatechSetPortmap | ( | int | port, |
int | peer | ||
) |
TmEcode NapatechStreamThreadDeinit | ( | ThreadVars * | tv, |
void * | data | ||
) |
Deinitializes the NAPATECH card.
tv | pointer to ThreadVars |
data | pointer that gets cast into PcapThreadVars for ptv |
Definition at line 1043 of file source-napatech.c.
References NapatechThreadVars_::rx_stream, SCEnter, SCLogDebug, SCReturnInt, NapatechThreadVars_::stream_id, and TM_ECODE_OK.
Referenced by TmModuleNapatechStreamRegister().
void TmModuleNapatechDecodeRegister | ( | void | ) |
Register the Napatech decoder module.
Definition at line 192 of file source-napatech.c.
References TmModule_::cap_flags, TmModule_::flags, TmModule_::Func, TmModule_::name, NapatechDecode(), NapatechDecodeThreadDeinit(), NapatechDecodeThreadInit(), TmModule_::ThreadDeinit, TmModule_::ThreadExitPrintStats, TmModule_::ThreadInit, TM_FLAG_DECODE_TM, TMM_DECODENAPATECH, and tmm_modules.
Referenced by RegisterAllModules().
void TmModuleNapatechStreamRegister | ( | void | ) |
Register the Napatech receiver (reader) module.
Definition at line 174 of file source-napatech.c.
References TmModule_::cap_flags, TmModule_::flags, TmModule_::Func, TmModule_::Init, TmModule_::name, NapatechPacketLoop(), NapatechStreamThreadDeinit(), NapatechStreamThreadExitStats(), NapatechStreamThreadInit(), TmModule_::PktAcqBreakLoop, TmModule_::PktAcqLoop, SC_CAP_NET_RAW, TmModule_::ThreadDeinit, TmModule_::ThreadExitPrintStats, TmModule_::ThreadInit, TM_FLAG_RECEIVE_TM, tmm_modules, and TMM_RECEIVENAPATECH.
Referenced by RegisterAllModules().