suricata
util-bpf.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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)
 
void SCBPFFree (struct bpf_program *program)
 

Detailed Description

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

Definition in file util-bpf.h.

Function Documentation

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 41 of file util-bpf.c.

References bpf_program::bf_insns, SCBPFFree(), SCMutexLock, and SCMutexUnlock.

Referenced by AFPSetBPFFilter(), and TmModuleDecodeNetmapRegister().

Here is the call graph for this function:

Here is the caller graph for this function:

void SCBPFFree ( struct bpf_program program)

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

Referenced by AFPSetBPFFilter(), SCBPFCompile(), and TmModuleDecodeNetmapRegister().

Here is the caller graph for this function: