1 /* Generated by ./xlat/gen.sh from ./xlat/fib_rule_actions.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(FR_ACT_UNSPEC) || (defined(HAVE_DECL_FR_ACT_UNSPEC) && HAVE_DECL_FR_ACT_UNSPEC) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((FR_ACT_UNSPEC) == (0), "FR_ACT_UNSPEC != 0"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define FR_ACT_UNSPEC 0 12 #endif 13 #if defined(FR_ACT_TO_TBL) || (defined(HAVE_DECL_FR_ACT_TO_TBL) && HAVE_DECL_FR_ACT_TO_TBL) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((FR_ACT_TO_TBL) == (1), "FR_ACT_TO_TBL != 1"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define FR_ACT_TO_TBL 1 19 #endif 20 #if defined(FR_ACT_GOTO) || (defined(HAVE_DECL_FR_ACT_GOTO) && HAVE_DECL_FR_ACT_GOTO) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((FR_ACT_GOTO) == (2), "FR_ACT_GOTO != 2"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define FR_ACT_GOTO 2 26 #endif 27 #if defined(FR_ACT_NOP) || (defined(HAVE_DECL_FR_ACT_NOP) && HAVE_DECL_FR_ACT_NOP) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((FR_ACT_NOP) == (3), "FR_ACT_NOP != 3"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define FR_ACT_NOP 3 33 #endif 34 #if defined(FR_ACT_RES3) || (defined(HAVE_DECL_FR_ACT_RES3) && HAVE_DECL_FR_ACT_RES3) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((FR_ACT_RES3) == (4), "FR_ACT_RES3 != 4"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define FR_ACT_RES3 4 40 #endif 41 #if defined(FR_ACT_RES4) || (defined(HAVE_DECL_FR_ACT_RES4) && HAVE_DECL_FR_ACT_RES4) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((FR_ACT_RES4) == (5), "FR_ACT_RES4 != 5"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define FR_ACT_RES4 5 47 #endif 48 #if defined(FR_ACT_BLACKHOLE) || (defined(HAVE_DECL_FR_ACT_BLACKHOLE) && HAVE_DECL_FR_ACT_BLACKHOLE) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((FR_ACT_BLACKHOLE) == (6), "FR_ACT_BLACKHOLE != 6"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define FR_ACT_BLACKHOLE 6 54 #endif 55 #if defined(FR_ACT_UNREACHABLE) || (defined(HAVE_DECL_FR_ACT_UNREACHABLE) && HAVE_DECL_FR_ACT_UNREACHABLE) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((FR_ACT_UNREACHABLE) == (7), "FR_ACT_UNREACHABLE != 7"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define FR_ACT_UNREACHABLE 7 61 #endif 62 #if defined(FR_ACT_PROHIBIT) || (defined(HAVE_DECL_FR_ACT_PROHIBIT) && HAVE_DECL_FR_ACT_PROHIBIT) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((FR_ACT_PROHIBIT) == (8), "FR_ACT_PROHIBIT != 8"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define FR_ACT_PROHIBIT 8 68 #endif 69 70 #ifndef XLAT_MACROS_ONLY 71 72 # ifdef IN_MPERS 73 74 # error static const struct xlat fib_rule_actions in mpers mode 75 76 # else 77 78 static 79 const struct xlat fib_rule_actions[] = { 80 XLAT(FR_ACT_UNSPEC), 81 XLAT(FR_ACT_TO_TBL), 82 XLAT(FR_ACT_GOTO), 83 XLAT(FR_ACT_NOP), 84 XLAT(FR_ACT_RES3), 85 XLAT(FR_ACT_RES4), 86 XLAT(FR_ACT_BLACKHOLE), 87 XLAT(FR_ACT_UNREACHABLE), 88 XLAT(FR_ACT_PROHIBIT), 89 XLAT_END 90 }; 91 92 # endif /* !IN_MPERS */ 93 94 #endif /* !XLAT_MACROS_ONLY */ 95