1 /* Generated by ./xlat/gen.sh from ./xlat/rtnl_neigh_attrs.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(NDA_UNSPEC) || (defined(HAVE_DECL_NDA_UNSPEC) && HAVE_DECL_NDA_UNSPEC) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((NDA_UNSPEC) == (0), "NDA_UNSPEC != 0"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define NDA_UNSPEC 0 12 #endif 13 #if defined(NDA_DST) || (defined(HAVE_DECL_NDA_DST) && HAVE_DECL_NDA_DST) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((NDA_DST) == (1), "NDA_DST != 1"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define NDA_DST 1 19 #endif 20 #if defined(NDA_LLADDR) || (defined(HAVE_DECL_NDA_LLADDR) && HAVE_DECL_NDA_LLADDR) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((NDA_LLADDR) == (2), "NDA_LLADDR != 2"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define NDA_LLADDR 2 26 #endif 27 #if defined(NDA_CACHEINFO) || (defined(HAVE_DECL_NDA_CACHEINFO) && HAVE_DECL_NDA_CACHEINFO) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((NDA_CACHEINFO) == (3), "NDA_CACHEINFO != 3"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define NDA_CACHEINFO 3 33 #endif 34 #if defined(NDA_PROBES) || (defined(HAVE_DECL_NDA_PROBES) && HAVE_DECL_NDA_PROBES) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((NDA_PROBES) == (4), "NDA_PROBES != 4"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define NDA_PROBES 4 40 #endif 41 #if defined(NDA_VLAN) || (defined(HAVE_DECL_NDA_VLAN) && HAVE_DECL_NDA_VLAN) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((NDA_VLAN) == (5), "NDA_VLAN != 5"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define NDA_VLAN 5 47 #endif 48 #if defined(NDA_PORT) || (defined(HAVE_DECL_NDA_PORT) && HAVE_DECL_NDA_PORT) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((NDA_PORT) == (6), "NDA_PORT != 6"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define NDA_PORT 6 54 #endif 55 #if defined(NDA_VNI) || (defined(HAVE_DECL_NDA_VNI) && HAVE_DECL_NDA_VNI) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((NDA_VNI) == (7), "NDA_VNI != 7"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define NDA_VNI 7 61 #endif 62 #if defined(NDA_IFINDEX) || (defined(HAVE_DECL_NDA_IFINDEX) && HAVE_DECL_NDA_IFINDEX) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((NDA_IFINDEX) == (8), "NDA_IFINDEX != 8"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define NDA_IFINDEX 8 68 #endif 69 #if defined(NDA_MASTER) || (defined(HAVE_DECL_NDA_MASTER) && HAVE_DECL_NDA_MASTER) 70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 71 static_assert((NDA_MASTER) == (9), "NDA_MASTER != 9"); 72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 73 #else 74 # define NDA_MASTER 9 75 #endif 76 #if defined(NDA_LINK_NETNSID) || (defined(HAVE_DECL_NDA_LINK_NETNSID) && HAVE_DECL_NDA_LINK_NETNSID) 77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 78 static_assert((NDA_LINK_NETNSID) == (10), "NDA_LINK_NETNSID != 10"); 79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 80 #else 81 # define NDA_LINK_NETNSID 10 82 #endif 83 #if defined(NDA_SRC_VNI) || (defined(HAVE_DECL_NDA_SRC_VNI) && HAVE_DECL_NDA_SRC_VNI) 84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 85 static_assert((NDA_SRC_VNI) == (11), "NDA_SRC_VNI != 11"); 86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 87 #else 88 # define NDA_SRC_VNI 11 89 #endif 90 91 #ifndef XLAT_MACROS_ONLY 92 93 # ifdef IN_MPERS 94 95 # error static const struct xlat rtnl_neigh_attrs in mpers mode 96 97 # else 98 99 static 100 const struct xlat rtnl_neigh_attrs[] = { 101 XLAT(NDA_UNSPEC), 102 XLAT(NDA_DST), 103 XLAT(NDA_LLADDR), 104 XLAT(NDA_CACHEINFO), 105 XLAT(NDA_PROBES), 106 XLAT(NDA_VLAN), 107 XLAT(NDA_PORT), 108 XLAT(NDA_VNI), 109 XLAT(NDA_IFINDEX), 110 XLAT(NDA_MASTER), 111 XLAT(NDA_LINK_NETNSID), 112 XLAT(NDA_SRC_VNI), 113 XLAT_END 114 }; 115 116 # endif /* !IN_MPERS */ 117 118 #endif /* !XLAT_MACROS_ONLY */ 119