suricata
Netmap running mode

Files

file  runmode-netmap.c
 
file  source-netmap.c
 

Functions

void TmModuleReceiveNetmapRegister (void)
 
void TmModuleDecodeNetmapRegister (void)
 Registration Function for DecodeNetmap. More...
 

Detailed Description

Function Documentation

void TmModuleDecodeNetmapRegister ( void  )

Registration Function for DecodeNetmap.

Definition at line 100 of file source-netmap.c.

References ACTION_DROP, NetmapIfaceSettings_::bpf_filter, TmModule_::cap_flags, NetmapIfaceSettings_::checksum_mode, NetmapIfaceSettings_::copy_mode, Packet_::datalink, DEBUG_VALIDATE_BUG_ON, DecodeEthernet(), DecodeRegisterPerfCounters(), DecodeThreadVarsAlloc(), DecodeThreadVarsFree(), DecodeUpdatePacketCounters(), default_packet_size, NetmapIfaceConfig_::DerefFunc, TmModule_::flags, flags, Packet_::flags, TmModule_::Func, GET_PKT_DATA, GET_PKT_LEN, NetmapIfaceSettings_::iface, NetmapIfaceConfig_::iface_name, NetmapIfaceConfig_::in, NetmapIfaceSettings_::ips, likely, LINKTYPE_ETHERNET, Packet_::livedev, LiveGetDevice(), TmModule_::name, ThreadVars_::name, NETMAP_COPY_MODE_IPS, NETMAP_COPY_MODE_NONE, NetmapGetRSSCount(), next, NetmapIfaceConfig_::out, PACKET_TEST_ACTION, PacketCopyData(), PacketDecodeFinalize(), PacketFreeOrRelease(), PacketPoolGetPacket(), PacketPoolWait(), PacketSetData(), PKT_IS_PSEUDOPKT, PKT_PSEUDO_STREAM_END, PKT_SET_SRC, PKT_SRC_WIRE, TmModule_::PktAcqLoop, POLL_TIMEOUT, NetmapIfaceSettings_::promisc, NetmapIfaceSettings_::real, Packet_::ReleasePacket, RunmodeGetActive(), SC_ATOMIC_ADD, SC_ATOMIC_DECLARE, SC_ATOMIC_INIT, SC_CAP_NET_RAW, SC_ERR_INVALID_ARGUMENT, SC_ERR_INVALID_VALUE, SC_ERR_MEM_ALLOC, SC_ERR_NETMAP_CREATE, SC_ERR_NETMAP_READ, SCBPFCompile(), SCBPFFree(), SCEnter, SCFree, SCLogDebug, SCLogError, SCLogNotice, SCLogPerf, SCMalloc, SCMutex, SCMUTEX_INITIALIZER, SCMutexLock, SCMutexUnlock, SCReturnInt, TmSlot_::slot_next, StatsAddUI64(), StatsGetLocalCounterValue(), StatsRegisterCounter(), StatsSyncCountersIfSignalled, strlcpy(), suricata_ctl_flags, NetmapIfaceSettings_::sw_ring, TAILQ_ENTRY, TAILQ_FOREACH, TAILQ_FOREACH_SAFE, TAILQ_HEAD, TAILQ_HEAD_INITIALIZER, TAILQ_INSERT_TAIL, TmModule_::ThreadDeinit, TmModule_::ThreadExitPrintStats, TmModule_::ThreadInit, NetmapIfaceSettings_::threads, TM_ECODE_FAILED, TM_ECODE_OK, TM_FLAG_DECODE_TM, TM_FLAG_RECEIVE_TM, TMM_DECODENETMAP, tmm_modules, TMM_RECEIVENETMAP, TmModuleDecodeNetmapRegister(), TmModuleReceiveNetmapRegister(), TmqhOutputPacketpool(), Packet_::ts, and unlikely.

Referenced by RegisterAllModules(), and TmModuleDecodeNetmapRegister().

Here is the call graph for this function:

Here is the caller graph for this function:

void TmModuleReceiveNetmapRegister ( void  )

Definition at line 90 of file source-netmap.c.

References TmModule_::flags, TmModule_::name, TmModule_::ThreadInit, TM_FLAG_RECEIVE_TM, tmm_modules, and TMM_RECEIVENETMAP.

Referenced by RegisterAllModules(), and TmModuleDecodeNetmapRegister().

Here is the caller graph for this function: