1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _UAPI__LINUX_FILTER_H__
20 #define _UAPI__LINUX_FILTER_H__
21 #include <linux/compiler.h>
22 #include <linux/types.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #include <linux/bpf_common.h>
25 #define BPF_MAJOR_VERSION 1
26 #define BPF_MINOR_VERSION 1
27 struct sock_filter {
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29   __u16 code;
30   __u8 jt;
31   __u8 jf;
32   __u32 k;
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 };
35 struct sock_fprog {
36   unsigned short len;
37   struct sock_filter __user * filter;
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 };
40 #define BPF_RVAL(code) ((code) & 0x18)
41 #define BPF_A 0x10
42 #define BPF_MISCOP(code) ((code) & 0xf8)
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define BPF_TAX 0x00
45 #define BPF_TXA 0x80
46 #ifndef BPF_STMT
47 #define BPF_STMT(code,k) { (unsigned short) (code), 0, 0, k }
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 #endif
50 #ifndef BPF_JUMP
51 #define BPF_JUMP(code,k,jt,jf) { (unsigned short) (code), jt, jf, k }
52 #endif
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 #define BPF_MEMWORDS 16
55 #define SKF_AD_OFF (- 0x1000)
56 #define SKF_AD_PROTOCOL 0
57 #define SKF_AD_PKTTYPE 4
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 #define SKF_AD_IFINDEX 8
60 #define SKF_AD_NLATTR 12
61 #define SKF_AD_NLATTR_NEST 16
62 #define SKF_AD_MARK 20
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 #define SKF_AD_QUEUE 24
65 #define SKF_AD_HATYPE 28
66 #define SKF_AD_RXHASH 32
67 #define SKF_AD_CPU 36
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 #define SKF_AD_ALU_XOR_X 40
70 #define SKF_AD_VLAN_TAG 44
71 #define SKF_AD_VLAN_TAG_PRESENT 48
72 #define SKF_AD_PAY_OFFSET 52
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 #define SKF_AD_RANDOM 56
75 #define SKF_AD_VLAN_TPID 60
76 #define SKF_AD_MAX 64
77 #define SKF_NET_OFF (- 0x100000)
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 #define SKF_LL_OFF (- 0x200000)
80 #define BPF_NET_OFF SKF_NET_OFF
81 #define BPF_LL_OFF SKF_LL_OFF
82 #endif
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84