suricata
util-bpf.c File Reference
#include "suricata-common.h"
#include "util-bpf.h"
#include "threads.h"
#include "conf.h"
#include "util-debug.h"
Include dependency graph for util-bpf.c:

Go to the source code of this file.

Functions

void ConfSetBPFFilter (ConfNode *if_root, ConfNode *if_default, const char *iface, const char **bpf_filter)
 
void SCBPFFree (struct bpf_program *program)
 
int SCBPFCompile (int snaplen_arg, int linktype_arg, struct bpf_program *program, const char *buf, int optimize, uint32_t mask, char *errbuf, size_t errbuf_len)
 

Detailed Description

Author
Eric Leblond eric@.nosp@m.regi.nosp@m.t.org

Definition in file util-bpf.c.

Function Documentation

◆ ConfSetBPFFilter()

void ConfSetBPFFilter ( ConfNode if_root,
ConfNode if_default,
const char *  iface,
const char **  bpf_filter 
)

Definition at line 30 of file util-bpf.c.

References ConfGet(), ConfGetChildValueWithDefault(), SCLogDebug, and SCLogInfo.

Here is the call graph for this function:

◆ SCBPFCompile()

int SCBPFCompile ( int  snaplen_arg,
int  linktype_arg,
struct bpf_program *  program,
const char *  buf,
int  optimize,
uint32_t  mask,
char *  errbuf,
size_t  errbuf_len 
)

Definition at line 62 of file util-bpf.c.

References SCMutexLock.

◆ SCBPFFree()

void SCBPFFree ( struct bpf_program *  program)

Definition at line 56 of file util-bpf.c.