suricata
source-nflog.c File Reference
#include "suricata-common.h"
#include "suricata.h"
#include "decode.h"
#include "packet-queue.h"
#include "threads.h"
#include "threadvars.h"
#include "tm-threads.h"
#include "tm-modules.h"
#include "tm-queuehandlers.h"
#include "tmqh-packetpool.h"
#include "runmodes.h"
#include "util-error.h"
#include "util-device.h"
Include dependency graph for source-nflog.c:

Go to the source code of this file.

Functions

TmEcode NoNFLOGSupportExit (ThreadVars *, const void *, void **)
 
void TmModuleReceiveNFLOGRegister (void)
 
void TmModuleDecodeNFLOGRegister (void)
 

Detailed Description

Author
Giuseppe Longo giuse.nosp@m.ppel.nosp@m.ng@gm.nosp@m.ail..nosp@m.com

Netfilter's netfilter_log support

Definition in file source-nflog.c.

Function Documentation

TmEcode NoNFLOGSupportExit ( ThreadVars tv,
const void *  initdata,
void **  data 
)

Handle the case where no NFLOG support is compiled in.

Definition at line 60 of file source-nflog.c.

References Packet_::datalink, DecodeIPV4(), DecodeIPV6(), DecodeRegisterPerfCounters(), DecodeThreadVarsAlloc(), DecodeThreadVarsFree(), DecodeUpdatePacketCounters(), NflogGroupConfig_::DerefFunc, TmModule_::flags, TmModule_::Func, GET_PKT_DATA, GET_PKT_LEN, NflogGroupConfig_::group, group, ip4h, ip6h, IPV4_GET_RAW_VER, IPV6_GET_RAW_VER, LiveGetDevice(), msg, TmModule_::name, ThreadVars_::name, NflogGroupConfig_::nful_overrun_warned, NflogGroupConfig_::nlbufsiz, NflogGroupConfig_::nlbufsiz_max, NflogGroupConfig_::numgroup, PacketCopyData(), PacketDecodeFinalize(), PacketGetFromQueueOrAlloc(), PacketSetData(), PKT_SET_SRC, PKT_SRC_WIRE, TmModule_::PktAcqBreakLoop, TmModule_::PktAcqLoop, NflogGroupConfig_::qthreshold, NflogGroupConfig_::qtimeout, TmModule_::RegisterTests, RunmodeGetActive(), SC_ATOMIC_ADD, SC_ERR_INVALID_ARGUMENT, SC_ERR_INVALID_ARGUMENTS, SC_ERR_INVALID_VALUE, SC_ERR_NFLOG_BIND, SC_ERR_NFLOG_FD, SC_ERR_NFLOG_HANDLE_PKT, SC_ERR_NFLOG_MAX_BUFSIZ, SC_ERR_NFLOG_NOSUPPORT, SC_ERR_NFLOG_OPEN, SC_ERR_NFLOG_SET_MODE, SC_ERR_NFLOG_UNBIND, SC_WARN_NFLOG_LOSING_EVENTS, SC_WARN_NFLOG_MAXBUFSIZ_REACHED, SC_WARN_NFLOG_RECV, SC_WARN_NFLOG_SETSOCKOPT, SCEnter, SCFree, SCLogDebug, SCLogError, SCLogNotice, SCLogWarning, SCMalloc, SCReturnInt, SET_PKT_LEN, StatsRegisterCounter(), StatsSyncCountersIfSignalled, suricata_ctl_flags, T_DATA_SIZE, TmModule_::ThreadDeinit, TmModule_::ThreadExitPrintStats, TmModule_::ThreadInit, TM_ECODE_FAILED, TM_ECODE_OK, TM_FLAG_DECODE_TM, TM_FLAG_RECEIVE_TM, TMM_DECODENFLOG, tmm_modules, TMM_RECEIVENFLOG, TmModuleDecodeNFLOGRegister(), TmModuleReceiveNFLOGRegister(), TmqhOutputPacketpool(), Packet_::ts, and unlikely.

Referenced by TmModuleDecodeNFLOGRegister(), and TmModuleReceiveNFLOGRegister().

Here is the call graph for this function:

Here is the caller graph for this function:

void TmModuleDecodeNFLOGRegister ( void  )

Definition at line 54 of file source-nflog.c.

References TmModule_::name, NoNFLOGSupportExit(), TmModule_::ThreadInit, TMM_DECODENFLOG, and tmm_modules.

Referenced by NoNFLOGSupportExit(), and RegisterAllModules().

Here is the call graph for this function:

Here is the caller graph for this function:

void TmModuleReceiveNFLOGRegister ( void  )

Definition at line 48 of file source-nflog.c.

References TmModule_::name, NoNFLOGSupportExit(), TmModule_::ThreadInit, tmm_modules, and TMM_RECEIVENFLOG.

Referenced by NoNFLOGSupportExit(), and RegisterAllModules().

Here is the call graph for this function:

Here is the caller graph for this function: