aboutsummaryrefslogtreecommitdiff
path: root/xlat/bpf_attach_type.h
blob: 7dbda4b6c11a69c5cf41cedff379b4252c09c585 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* Generated by ./xlat/gen.sh from ./xlat/bpf_attach_type.in; do not edit. */
#if !(defined(BPF_CGROUP_INET_INGRESS) || (defined(HAVE_DECL_BPF_CGROUP_INET_INGRESS) && HAVE_DECL_BPF_CGROUP_INET_INGRESS))
# define BPF_CGROUP_INET_INGRESS 0
#endif
#if !(defined(BPF_CGROUP_INET_EGRESS) || (defined(HAVE_DECL_BPF_CGROUP_INET_EGRESS) && HAVE_DECL_BPF_CGROUP_INET_EGRESS))
# define BPF_CGROUP_INET_EGRESS 1
#endif
#if !(defined(BPF_CGROUP_INET_SOCK_CREATE) || (defined(HAVE_DECL_BPF_CGROUP_INET_SOCK_CREATE) && HAVE_DECL_BPF_CGROUP_INET_SOCK_CREATE))
# define BPF_CGROUP_INET_SOCK_CREATE 2
#endif
#if !(defined(BPF_CGROUP_SOCK_OPS) || (defined(HAVE_DECL_BPF_CGROUP_SOCK_OPS) && HAVE_DECL_BPF_CGROUP_SOCK_OPS))
# define BPF_CGROUP_SOCK_OPS 3
#endif

#ifdef IN_MPERS

# error static const struct xlat bpf_attach_type in mpers mode

#else

static
const struct xlat bpf_attach_type[] = {
 XLAT(BPF_CGROUP_INET_INGRESS),
 XLAT(BPF_CGROUP_INET_EGRESS),
 XLAT(BPF_CGROUP_INET_SOCK_CREATE),
 XLAT(BPF_CGROUP_SOCK_OPS),
 XLAT_END
};

#endif /* !IN_MPERS */