suricata
|
#include "suricata-common.h"
#include "suricata.h"
#include "packet.h"
#include "decode.h"
#include "packet-queue.h"
#include "threads.h"
#include "threadvars.h"
#include "tm-queuehandlers.h"
#include "tm-modules.h"
#include "tm-threads.h"
#include "tm-threads-common.h"
#include "conf.h"
#include "util-cpu.h"
#include "util-datalink.h"
#include "util-debug.h"
#include "util-device.h"
#include "util-ebpf.h"
#include "util-error.h"
#include "util-privs.h"
#include "util-optimize.h"
#include "util-checksum.h"
#include "util-ioctl.h"
#include "util-host-info.h"
#include "tmqh-packetpool.h"
#include "source-af-packet.h"
#include "runmodes.h"
#include "flow-storage.h"
#include "util-validate.h"
#include "action-globals.h"
#include "util-bpf.h"
Go to the source code of this file.
Data Structures | |
struct | bpf_program |
union | thdr |
struct | AFPThreadVars_ |
Structure to hold thread specific variables. More... | |
union | AFPThreadVars_::AFPRing |
union | AFPThreadVars_::AFPTpacketReq |
struct | AFPPeersList_ |
Typedefs | |
typedef struct AFPThreadVars_ | AFPThreadVars |
Structure to hold thread specific variables. More... | |
typedef struct AFPPeersList_ | AFPPeersList |
Enumerations | |
enum | { AFP_READ_OK, AFP_READ_FAILURE, AFP_SURI_FAILURE, AFP_KERNEL_DROP } |
enum | { AFP_FATAL_ERROR = 1, AFP_RECOVERABLE_ERROR } |
Functions | |
void | TmModuleReceiveAFPRegister (void) |
Registration Function for RecieveAFP. More... | |
TmEcode | AFPPeersListInit (void) |
Init the global list of AFPPeer. More... | |
TmEcode | AFPPeersListCheck (void) |
Check that all AFPPeer got a peer. More... | |
void | AFPPeersListClean (void) |
Clean the global peers list. More... | |
void | TmModuleDecodeAFPRegister (void) |
Registration Function for DecodeAFP. More... | |
int | AFPGetLinkType (const char *ifname) |
int | AFPIsFanoutSupported (uint16_t cluster_id) |
test if we can use FANOUT. Older kernels like those in CentOS6 have HAVE_PACKET_FANOUT defined but fail to work More... | |
Variables | |
uint16_t | max_pending_packets |
AFPPeersList | peerslist |
AF_PACKET socket acquisition support
Definition in file source-af-packet.c.
#define AFP_PEERS_MAX_TRY 4 |
#define AFP_PEERS_WAIT 20000 |