#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 */ '>nds-private-remove net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/arch
ModeNameSize
-rw-r--r--.gitignore12logplain
-rw-r--r--Kconfig23836logplain
d---------alpha376logplain
d---------arc519logplain
d---------arm3723logplain
d---------arm64471logplain
d---------avr32409logplain
d---------blackfin713logplain
d---------c6x298logplain
d---------cris343logplain
d---------frv345logplain
d---------h8300301logplain
d---------hexagon231logplain
d---------ia64564logplain
d---------m32r374logplain
d---------m68k1062logplain
d---------metag407logplain
d---------microblaze412logplain
d---------mips1810logplain
d---------mn10300537logplain
d---------nios2338logplain
d---------openrisc346logplain
d---------parisc450logplain
d---------powerpc710logplain
d---------s390662logplain
d---------score303logplain
d---------sh576logplain
d---------sparc533logplain
d---------tile367logplain
d---------um604logplain