/* Generated by ./xlat/gen.sh from ./xlat/bpf_attach_type.in; do not edit. */ #include "gcc_compat.h" #include "static_assert.h" #if defined(BPF_CGROUP_INET_INGRESS) || (defined(HAVE_DECL_BPF_CGROUP_INET_INGRESS) && HAVE_DECL_BPF_CGROUP_INET_INGRESS) DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE static_assert((BPF_CGROUP_INET_INGRESS) == (0), "BPF_CGROUP_INET_INGRESS != 0"); DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE #else # 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) DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE static_assert((BPF_CGROUP_INET_EGRESS) == (1), "BPF_CGROUP_INET_EGRESS != 1"); DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE #else # 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) DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE static_assert((BPF_CGROUP_INET_SOCK_CREATE) == (2), "BPF_CGROUP_INET_SOCK_CREATE != 2"); DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE #else # 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) DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE static_assert((BPF_CGROUP_SOCK_OPS) == (3), "BPF_CGROUP_SOCK_OPS != 3"); DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE #else # 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) DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE static_assert((BPF_SK_SKB_STREAM_PARSER) == (4), "BPF_SK_SKB_STREAM_PARSER != 4"); DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE #else # 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) DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE static_assert((BPF_SK_SKB_STREAM_VERDICT) == (5), "BPF_SK_SKB_STREAM_VERDICT != 5"); DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE #else # define BPF_SK_SKB_STREAM_VERDICT 5 #endif #if defined(BPF_CGROUP_DEVICE) || (defined(HAVE_DECL_BPF_CGROUP_DEVICE) && HAVE_DECL_BPF_CGROUP_DEVICE) DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE static_assert((BPF_CGROUP_DEVICE) == (6), "BPF_CGROUP_DEVICE != 6"); DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE #else # define BPF_CGROUP_DEVICE 6 #endif #if defined(BPF_SK_MSG_VERDICT) || (defined(HAVE_DECL_BPF_SK_MSG_VERDICT) && HAVE_DECL_BPF_SK_MSG_VERDICT) DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE static_assert((BPF_SK_MSG_VERDICT) == (7), "BPF_SK_MSG_VERDICT != 7"); DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE #else # define BPF_SK_MSG_VERDICT 7 #endif #if defined(BPF_CGROUP_INET4_BIND) || (defined(HAVE_DECL_BPF_CGROUP_INET4_BIND) && HAVE_DECL_BPF_CGROUP_INET4_BIND) DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE static_assert((BPF_CGROUP_INET4_BIND) == (8), "BPF_CGROUP_INET4_BIND != 8"); DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE #else # define BPF_CGROUP_INET4_BIND 8 #endif #if defined(BPF_CGROUP_INET6_BIND) || (defined(HAVE_DECL_BPF_CGROUP_INET6_BIND) && HAVE_DECL_BPF_CGROUP_INET6_BIND) DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE static_assert((BPF_CGROUP_INET6_BIND) == (9), "BPF_CGROUP_INET6_BIND != 9"); DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE #else # define BPF_CGROUP_INET6_BIND 9 #endif #if defined(BPF_CGROUP_INET4_CONNECT) || (defined(HAVE_DECL_BPF_CGROUP_INET4_CONNECT) && HAVE_DECL_BPF_CGROUP_INET4_CONNECT) DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE static_assert((BPF_CGROUP_INET4_CONNECT) == (10), "BPF_CGROUP_INET4_CONNECT != 10"); DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE #else # define BPF_CGROUP_INET4_CONNECT 10 #endif #if defined(BPF_CGROUP_INET6_CONNECT) || (defined(HAVE_DECL_BPF_CGROUP_INET6_CONNECT) && HAVE_DECL_BPF_CGROUP_INET6_CONNECT) DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE static_assert((BPF_CGROUP_INET6_CONNECT) == (11), "BPF_CGROUP_INET6_CONNECT != 11"); DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE #else # define BPF_CGROUP_INET6_CONNECT 11 #endif #if defined(BPF_CGROUP_INET4_POST_BIND) || (defined(HAVE_DECL_BPF_CGROUP_INET4_POST_BIND) && HAVE_DECL_BPF_CGROUP_INET4_POST_BIND) DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE static_assert((BPF_CGROUP_INET4_POST_BIND) == (12), "BPF_CGROUP_INET4_POST_BIND != 12"); DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE #else # define BPF_CGROUP_INET4_POST_BIND 12 #endif #if defined(BPF_CGROUP_INET6_POST_BIND) || (defined(HAVE_DECL_BPF_CGROUP_INET6_POST_BIND) && HAVE_DECL_BPF_CGROUP_INET6_POST_BIND) DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE static_assert((BPF_CGROUP_INET6_POST_BIND) == (13), "BPF_CGROUP_INET6_POST_BIND != 13"); DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE #else # define BPF_CGROUP_INET6_POST_BIND 13 #endif #ifndef XLAT_MACROS_ONLY # ifdef IN_MPERS # error static const struct xlat bpf_attach_type in mpers mode # else static const struct xlat bpf_attach_type[] = { [BPF_CGROUP_INET_INGRESS] = XLAT(BPF_CGROUP_INET_INGRESS), [BPF_CGROUP_INET_EGRESS] = XLAT(BPF_CGROUP_INET_EGRESS), [BPF_CGROUP_INET_SOCK_CREATE] = XLAT(BPF_CGROUP_INET_SOCK_CREATE), [BPF_CGROUP_SOCK_OPS] = XLAT(BPF_CGROUP_SOCK_OPS), [BPF_SK_SKB_STREAM_PARSER] = XLAT(BPF_SK_SKB_STREAM_PARSER), [BPF_SK_SKB_STREAM_VERDICT] = XLAT(BPF_SK_SKB_STREAM_VERDICT), [BPF_CGROUP_DEVICE] = XLAT(BPF_CGROUP_DEVICE), [BPF_SK_MSG_VERDICT] = XLAT(BPF_SK_MSG_VERDICT), [BPF_CGROUP_INET4_BIND] = XLAT(BPF_CGROUP_INET4_BIND), [BPF_CGROUP_INET6_BIND] = XLAT(BPF_CGROUP_INET6_BIND), [BPF_CGROUP_INET4_CONNECT] = XLAT(BPF_CGROUP_INET4_CONNECT), [BPF_CGROUP_INET6_CONNECT] = XLAT(BPF_CGROUP_INET6_CONNECT), [BPF_CGROUP_INET4_POST_BIND] = XLAT(BPF_CGROUP_INET4_POST_BIND), [BPF_CGROUP_INET6_POST_BIND] = XLAT(BPF_CGROUP_INET6_POST_BIND), XLAT_END }; # endif /* !IN_MPERS */ #endif /* !XLAT_MACROS_ONLY */