aboutsummaryrefslogtreecommitdiff
path: root/xlat/bpf_attach_type.h
blob: a98bf0f1bea498a8cfc07fffdb1dd25e997e00b1 (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
31
32
33
34
35
36
37
38
/* 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
#if !(defined(BPF_SK_SKB_STREAM_PARSER) || (defined(HAVE_DECL_BPF_SK_SKB_STREAM_PARSER) && HAVE_DECL_BPF_SK_SKB_STREAM_PARSER))
# define BPF_SK_SKB_STREAM_PARSER 4
#endif
#if !(defined(BPF_SK_SKB_STREAM_VERDICT) || (defined(HAVE_DECL_BPF_SK_SKB_STREAM_VERDICT) && HAVE_DECL_BPF_SK_SKB_STREAM_VERDICT))
# define BPF_SK_SKB_STREAM_VERDICT 5
#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(BPF_SK_SKB_STREAM_PARSER),
 XLAT(BPF_SK_SKB_STREAM_VERDICT),
 XLAT_END
};

#endif /* !IN_MPERS */