1 /* Generated by ./xlat/gen.sh from ./xlat/rtnl_addr_attrs.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(IFA_UNSPEC) || (defined(HAVE_DECL_IFA_UNSPEC) && HAVE_DECL_IFA_UNSPEC) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((IFA_UNSPEC) == (0), "IFA_UNSPEC != 0"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define IFA_UNSPEC 0 12 #endif 13 #if defined(IFA_ADDRESS) || (defined(HAVE_DECL_IFA_ADDRESS) && HAVE_DECL_IFA_ADDRESS) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((IFA_ADDRESS) == (1), "IFA_ADDRESS != 1"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define IFA_ADDRESS 1 19 #endif 20 #if defined(IFA_LOCAL) || (defined(HAVE_DECL_IFA_LOCAL) && HAVE_DECL_IFA_LOCAL) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((IFA_LOCAL) == (2), "IFA_LOCAL != 2"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define IFA_LOCAL 2 26 #endif 27 #if defined(IFA_LABEL) || (defined(HAVE_DECL_IFA_LABEL) && HAVE_DECL_IFA_LABEL) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((IFA_LABEL) == (3), "IFA_LABEL != 3"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define IFA_LABEL 3 33 #endif 34 #if defined(IFA_BROADCAST) || (defined(HAVE_DECL_IFA_BROADCAST) && HAVE_DECL_IFA_BROADCAST) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((IFA_BROADCAST) == (4), "IFA_BROADCAST != 4"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define IFA_BROADCAST 4 40 #endif 41 #if defined(IFA_ANYCAST) || (defined(HAVE_DECL_IFA_ANYCAST) && HAVE_DECL_IFA_ANYCAST) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((IFA_ANYCAST) == (5), "IFA_ANYCAST != 5"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define IFA_ANYCAST 5 47 #endif 48 #if defined(IFA_CACHEINFO) || (defined(HAVE_DECL_IFA_CACHEINFO) && HAVE_DECL_IFA_CACHEINFO) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((IFA_CACHEINFO) == (6), "IFA_CACHEINFO != 6"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define IFA_CACHEINFO 6 54 #endif 55 #if defined(IFA_MULTICAST) || (defined(HAVE_DECL_IFA_MULTICAST) && HAVE_DECL_IFA_MULTICAST) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((IFA_MULTICAST) == (7), "IFA_MULTICAST != 7"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define IFA_MULTICAST 7 61 #endif 62 #if defined(IFA_FLAGS) || (defined(HAVE_DECL_IFA_FLAGS) && HAVE_DECL_IFA_FLAGS) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((IFA_FLAGS) == (8), "IFA_FLAGS != 8"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define IFA_FLAGS 8 68 #endif 69 #if defined(IFA_RT_PRIORITY) || (defined(HAVE_DECL_IFA_RT_PRIORITY) && HAVE_DECL_IFA_RT_PRIORITY) 70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 71 static_assert((IFA_RT_PRIORITY) == (9), "IFA_RT_PRIORITY != 9"); 72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 73 #else 74 # define IFA_RT_PRIORITY 9 75 #endif 76 77 #ifndef XLAT_MACROS_ONLY 78 79 # ifdef IN_MPERS 80 81 # error static const struct xlat rtnl_addr_attrs in mpers mode 82 83 # else 84 85 static 86 const struct xlat rtnl_addr_attrs[] = { 87 XLAT(IFA_UNSPEC), 88 XLAT(IFA_ADDRESS), 89 XLAT(IFA_LOCAL), 90 XLAT(IFA_LABEL), 91 XLAT(IFA_BROADCAST), 92 XLAT(IFA_ANYCAST), 93 XLAT(IFA_CACHEINFO), 94 XLAT(IFA_MULTICAST), 95 XLAT(IFA_FLAGS), 96 XLAT(IFA_RT_PRIORITY), 97 XLAT_END 98 }; 99 100 # endif /* !IN_MPERS */ 101 102 #endif /* !XLAT_MACROS_ONLY */ 103