1 /* Generated by ./xlat/gen.sh from ./xlat/netfilter_versions.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(NFNETLINK_V0) || (defined(HAVE_DECL_NFNETLINK_V0) && HAVE_DECL_NFNETLINK_V0) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((NFNETLINK_V0) == (0), "NFNETLINK_V0 != 0"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define NFNETLINK_V0 0 12 #endif 13 #if defined(NFNETLINK_V1) || (defined(HAVE_DECL_NFNETLINK_V1) && HAVE_DECL_NFNETLINK_V1) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((NFNETLINK_V1) == (1), "NFNETLINK_V1 != 1"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define NFNETLINK_V1 1 19 #endif 20 21 #ifndef XLAT_MACROS_ONLY 22 23 # ifdef IN_MPERS 24 25 # error static const struct xlat netfilter_versions in mpers mode 26 27 # else 28 29 static 30 const struct xlat netfilter_versions[] = { 31 XLAT(NFNETLINK_V0), 32 XLAT(NFNETLINK_V1), 33 XLAT_END 34 }; 35 36 # endif /* !IN_MPERS */ 37 38 #endif /* !XLAT_MACROS_ONLY */ 39