1 /* Generated by ./xlat/gen.sh from ./xlat/rtnl_netconf_attrs.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(NETCONFA_UNSPEC) || (defined(HAVE_DECL_NETCONFA_UNSPEC) && HAVE_DECL_NETCONFA_UNSPEC) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((NETCONFA_UNSPEC) == (0), "NETCONFA_UNSPEC != 0"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define NETCONFA_UNSPEC 0 12 #endif 13 #if defined(NETCONFA_IFINDEX) || (defined(HAVE_DECL_NETCONFA_IFINDEX) && HAVE_DECL_NETCONFA_IFINDEX) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((NETCONFA_IFINDEX) == (1), "NETCONFA_IFINDEX != 1"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define NETCONFA_IFINDEX 1 19 #endif 20 #if defined(NETCONFA_FORWARDING) || (defined(HAVE_DECL_NETCONFA_FORWARDING) && HAVE_DECL_NETCONFA_FORWARDING) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((NETCONFA_FORWARDING) == (2), "NETCONFA_FORWARDING != 2"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define NETCONFA_FORWARDING 2 26 #endif 27 #if defined(NETCONFA_RP_FILTER) || (defined(HAVE_DECL_NETCONFA_RP_FILTER) && HAVE_DECL_NETCONFA_RP_FILTER) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((NETCONFA_RP_FILTER) == (3), "NETCONFA_RP_FILTER != 3"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define NETCONFA_RP_FILTER 3 33 #endif 34 #if defined(NETCONFA_MC_FORWARDING) || (defined(HAVE_DECL_NETCONFA_MC_FORWARDING) && HAVE_DECL_NETCONFA_MC_FORWARDING) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((NETCONFA_MC_FORWARDING) == (4), "NETCONFA_MC_FORWARDING != 4"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define NETCONFA_MC_FORWARDING 4 40 #endif 41 #if defined(NETCONFA_PROXY_NEIGH) || (defined(HAVE_DECL_NETCONFA_PROXY_NEIGH) && HAVE_DECL_NETCONFA_PROXY_NEIGH) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((NETCONFA_PROXY_NEIGH) == (5), "NETCONFA_PROXY_NEIGH != 5"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define NETCONFA_PROXY_NEIGH 5 47 #endif 48 #if defined(NETCONFA_IGNORE_ROUTES_WITH_LINKDOWN) || (defined(HAVE_DECL_NETCONFA_IGNORE_ROUTES_WITH_LINKDOWN) && HAVE_DECL_NETCONFA_IGNORE_ROUTES_WITH_LINKDOWN) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((NETCONFA_IGNORE_ROUTES_WITH_LINKDOWN) == (6), "NETCONFA_IGNORE_ROUTES_WITH_LINKDOWN != 6"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define NETCONFA_IGNORE_ROUTES_WITH_LINKDOWN 6 54 #endif 55 #if defined(NETCONFA_INPUT) || (defined(HAVE_DECL_NETCONFA_INPUT) && HAVE_DECL_NETCONFA_INPUT) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((NETCONFA_INPUT) == (7), "NETCONFA_INPUT != 7"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define NETCONFA_INPUT 7 61 #endif 62 #if defined(NETCONFA_BC_FORWARDING) || (defined(HAVE_DECL_NETCONFA_BC_FORWARDING) && HAVE_DECL_NETCONFA_BC_FORWARDING) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((NETCONFA_BC_FORWARDING) == (8), "NETCONFA_BC_FORWARDING != 8"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define NETCONFA_BC_FORWARDING 8 68 #endif 69 70 #ifndef XLAT_MACROS_ONLY 71 72 # ifdef IN_MPERS 73 74 # error static const struct xlat rtnl_netconf_attrs in mpers mode 75 76 # else 77 78 static 79 const struct xlat rtnl_netconf_attrs[] = { 80 XLAT(NETCONFA_UNSPEC), 81 XLAT(NETCONFA_IFINDEX), 82 XLAT(NETCONFA_FORWARDING), 83 XLAT(NETCONFA_RP_FILTER), 84 XLAT(NETCONFA_MC_FORWARDING), 85 XLAT(NETCONFA_PROXY_NEIGH), 86 XLAT(NETCONFA_IGNORE_ROUTES_WITH_LINKDOWN), 87 XLAT(NETCONFA_INPUT), 88 XLAT(NETCONFA_BC_FORWARDING), 89 XLAT_END 90 }; 91 92 # endif /* !IN_MPERS */ 93 94 #endif /* !XLAT_MACROS_ONLY */ 95