1 /* Generated by ./xlat/gen.sh from ./xlat/bpf_attach_type.in; do not edit. */ 2 #if !(defined(BPF_CGROUP_INET_INGRESS) || (defined(HAVE_DECL_BPF_CGROUP_INET_INGRESS) && HAVE_DECL_BPF_CGROUP_INET_INGRESS)) 3 # define BPF_CGROUP_INET_INGRESS 0 4 #endif 5 #if !(defined(BPF_CGROUP_INET_EGRESS) || (defined(HAVE_DECL_BPF_CGROUP_INET_EGRESS) && HAVE_DECL_BPF_CGROUP_INET_EGRESS)) 6 # define BPF_CGROUP_INET_EGRESS 1 7 #endif 8 #if !(defined(BPF_CGROUP_INET_SOCK_CREATE) || (defined(HAVE_DECL_BPF_CGROUP_INET_SOCK_CREATE) && HAVE_DECL_BPF_CGROUP_INET_SOCK_CREATE)) 9 # define BPF_CGROUP_INET_SOCK_CREATE 2 10 #endif 11 #if !(defined(BPF_CGROUP_SOCK_OPS) || (defined(HAVE_DECL_BPF_CGROUP_SOCK_OPS) && HAVE_DECL_BPF_CGROUP_SOCK_OPS)) 12 # define BPF_CGROUP_SOCK_OPS 3 13 #endif 14 #if !(defined(BPF_SK_SKB_STREAM_PARSER) || (defined(HAVE_DECL_BPF_SK_SKB_STREAM_PARSER) && HAVE_DECL_BPF_SK_SKB_STREAM_PARSER)) 15 # define BPF_SK_SKB_STREAM_PARSER 4 16 #endif 17 #if !(defined(BPF_SK_SKB_STREAM_VERDICT) || (defined(HAVE_DECL_BPF_SK_SKB_STREAM_VERDICT) && HAVE_DECL_BPF_SK_SKB_STREAM_VERDICT)) 18 # define BPF_SK_SKB_STREAM_VERDICT 5 19 #endif 20 21 #ifdef IN_MPERS 22 23 # error static const struct xlat bpf_attach_type in mpers mode 24 25 #else 26 27 static 28 const struct xlat bpf_attach_type[] = { 29 XLAT(BPF_CGROUP_INET_INGRESS), 30 XLAT(BPF_CGROUP_INET_EGRESS), 31 XLAT(BPF_CGROUP_INET_SOCK_CREATE), 32 XLAT(BPF_CGROUP_SOCK_OPS), 33 XLAT(BPF_SK_SKB_STREAM_PARSER), 34 XLAT(BPF_SK_SKB_STREAM_VERDICT), 35 XLAT_END 36 }; 37 38 #endif /* !IN_MPERS */ 39