#ifndef BPF_I_H #define BPF_I_H #include #include #include #include "bpf_insns.h" #include "bpf_ext.h" #include "config.h" #include "die.h" extern void bpf_dump_op_table(void); extern void bpf_dump_all(struct sock_fprog *bpf); extern int __bpf_validate(const struct sock_fprog *bpf); extern uint32_t bpf_run_filter(const struct sock_fprog *bpf, uint8_t *packet, size_t plen); extern void bpf_attach_to_sock(int sock, struct sock_fprog *bpf); extern void bpf_detach_from_sock(int sock); extern int enable_kernel_bpf_jit_compiler(void); extern void bpf_parse_rules(char *rulefile, struct sock_fprog *bpf, uint32_t link_type); #if defined(HAVE_TCPDUMP_LIKE_FILTER) && defined(NEED_TCPDUMP_LIKE_FILTER) extern void bpf_try_compile(const char *rulefile, struct sock_fprog *bpf, uint32_t link_type); #else static inline void bpf_try_compile(const char *rulefile, struct sock_fprog *bpf __maybe_unused, uint32_t link_type __maybe_unused) { panic("Cannot open file %s!\n", rulefile); } #endif static inline void bpf_release(struct sock_fprog *bpf) { free(bpf->filter); } #endif /* BPF_I_H */ ion value='nds-private-remove' selected='selected'>nds-private-remove net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
ModeNameSize
-rw-r--r--Makefile553logplain
-rw-r--r--emu10k1.c8791logplain
-rw-r--r--emu10k1_callback.c14646logplain
-rw-r--r--emu10k1_main.c69872logplain
-rw-r--r--emu10k1_patch.c6273logplain
-rw-r--r--emu10k1_synth.c3161logplain
-rw-r--r--emu10k1_synth_local.h1535logplain
-rw-r--r--emu10k1x.c48876logplain
-rw-r--r--emufx.c101572logplain
-rw-r--r--emumixer.c68824logplain
-rw-r--r--emumpu401.c11428logplain
-rw-r--r--emupcm.c58692logplain
-rw-r--r--emuproc.c21057logplain
-rw-r--r--io.c16190logplain
-rw-r--r--irq.c6754logplain
-rw-r--r--memory.c16163logplain
-rw-r--r--p16v.c29109logplain
-rw-r--r--p16v.h14922logplain