]>
Commit | Line | Data |
---|---|---|
e6f30c73 WB |
1 | #ifndef _XT_BPF_H |
2 | #define _XT_BPF_H | |
3 | ||
4 | #include <linux/filter.h> | |
5 | #include <linux/types.h> | |
6 | ||
7 | #define XT_BPF_MAX_NUM_INSTR 64 | |
8 | ||
7ae457c1 | 9 | struct bpf_prog; |
e10038a8 | 10 | |
e6f30c73 WB |
11 | struct xt_bpf_info { |
12 | __u16 bpf_program_num_elem; | |
13 | struct sock_filter bpf_program[XT_BPF_MAX_NUM_INSTR]; | |
14 | ||
15 | /* only used in the kernel */ | |
7ae457c1 | 16 | struct bpf_prog *filter __attribute__((aligned(8))); |
e6f30c73 WB |
17 | }; |
18 | ||
19 | #endif /*_XT_BPF_H */ |