1 /* Generated by ./xlat/gen.sh from ./xlat/rtnl_neightbl_parms_attrs.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(NDTPA_UNSPEC) || (defined(HAVE_DECL_NDTPA_UNSPEC) && HAVE_DECL_NDTPA_UNSPEC) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((NDTPA_UNSPEC) == (0), "NDTPA_UNSPEC != 0"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define NDTPA_UNSPEC 0 12 #endif 13 #if defined(NDTPA_IFINDEX) || (defined(HAVE_DECL_NDTPA_IFINDEX) && HAVE_DECL_NDTPA_IFINDEX) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((NDTPA_IFINDEX) == (1), "NDTPA_IFINDEX != 1"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define NDTPA_IFINDEX 1 19 #endif 20 #if defined(NDTPA_REFCNT) || (defined(HAVE_DECL_NDTPA_REFCNT) && HAVE_DECL_NDTPA_REFCNT) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((NDTPA_REFCNT) == (2), "NDTPA_REFCNT != 2"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define NDTPA_REFCNT 2 26 #endif 27 #if defined(NDTPA_REACHABLE_TIME) || (defined(HAVE_DECL_NDTPA_REACHABLE_TIME) && HAVE_DECL_NDTPA_REACHABLE_TIME) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((NDTPA_REACHABLE_TIME) == (3), "NDTPA_REACHABLE_TIME != 3"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define NDTPA_REACHABLE_TIME 3 33 #endif 34 #if defined(NDTPA_BASE_REACHABLE_TIME) || (defined(HAVE_DECL_NDTPA_BASE_REACHABLE_TIME) && HAVE_DECL_NDTPA_BASE_REACHABLE_TIME) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((NDTPA_BASE_REACHABLE_TIME) == (4), "NDTPA_BASE_REACHABLE_TIME != 4"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define NDTPA_BASE_REACHABLE_TIME 4 40 #endif 41 #if defined(NDTPA_RETRANS_TIME) || (defined(HAVE_DECL_NDTPA_RETRANS_TIME) && HAVE_DECL_NDTPA_RETRANS_TIME) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((NDTPA_RETRANS_TIME) == (5), "NDTPA_RETRANS_TIME != 5"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define NDTPA_RETRANS_TIME 5 47 #endif 48 #if defined(NDTPA_GC_STALETIME) || (defined(HAVE_DECL_NDTPA_GC_STALETIME) && HAVE_DECL_NDTPA_GC_STALETIME) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((NDTPA_GC_STALETIME) == (6), "NDTPA_GC_STALETIME != 6"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define NDTPA_GC_STALETIME 6 54 #endif 55 #if defined(NDTPA_DELAY_PROBE_TIME) || (defined(HAVE_DECL_NDTPA_DELAY_PROBE_TIME) && HAVE_DECL_NDTPA_DELAY_PROBE_TIME) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((NDTPA_DELAY_PROBE_TIME) == (7), "NDTPA_DELAY_PROBE_TIME != 7"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define NDTPA_DELAY_PROBE_TIME 7 61 #endif 62 #if defined(NDTPA_QUEUE_LEN) || (defined(HAVE_DECL_NDTPA_QUEUE_LEN) && HAVE_DECL_NDTPA_QUEUE_LEN) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((NDTPA_QUEUE_LEN) == (8), "NDTPA_QUEUE_LEN != 8"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define NDTPA_QUEUE_LEN 8 68 #endif 69 #if defined(NDTPA_APP_PROBES) || (defined(HAVE_DECL_NDTPA_APP_PROBES) && HAVE_DECL_NDTPA_APP_PROBES) 70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 71 static_assert((NDTPA_APP_PROBES) == (9), "NDTPA_APP_PROBES != 9"); 72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 73 #else 74 # define NDTPA_APP_PROBES 9 75 #endif 76 #if defined(NDTPA_UCAST_PROBES) || (defined(HAVE_DECL_NDTPA_UCAST_PROBES) && HAVE_DECL_NDTPA_UCAST_PROBES) 77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 78 static_assert((NDTPA_UCAST_PROBES) == (10), "NDTPA_UCAST_PROBES != 10"); 79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 80 #else 81 # define NDTPA_UCAST_PROBES 10 82 #endif 83 #if defined(NDTPA_MCAST_PROBES) || (defined(HAVE_DECL_NDTPA_MCAST_PROBES) && HAVE_DECL_NDTPA_MCAST_PROBES) 84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 85 static_assert((NDTPA_MCAST_PROBES) == (11), "NDTPA_MCAST_PROBES != 11"); 86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 87 #else 88 # define NDTPA_MCAST_PROBES 11 89 #endif 90 #if defined(NDTPA_ANYCAST_DELAY) || (defined(HAVE_DECL_NDTPA_ANYCAST_DELAY) && HAVE_DECL_NDTPA_ANYCAST_DELAY) 91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 92 static_assert((NDTPA_ANYCAST_DELAY) == (12), "NDTPA_ANYCAST_DELAY != 12"); 93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 94 #else 95 # define NDTPA_ANYCAST_DELAY 12 96 #endif 97 #if defined(NDTPA_PROXY_DELAY) || (defined(HAVE_DECL_NDTPA_PROXY_DELAY) && HAVE_DECL_NDTPA_PROXY_DELAY) 98 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 99 static_assert((NDTPA_PROXY_DELAY) == (13), "NDTPA_PROXY_DELAY != 13"); 100 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 101 #else 102 # define NDTPA_PROXY_DELAY 13 103 #endif 104 #if defined(NDTPA_PROXY_QLEN) || (defined(HAVE_DECL_NDTPA_PROXY_QLEN) && HAVE_DECL_NDTPA_PROXY_QLEN) 105 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 106 static_assert((NDTPA_PROXY_QLEN) == (14), "NDTPA_PROXY_QLEN != 14"); 107 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 108 #else 109 # define NDTPA_PROXY_QLEN 14 110 #endif 111 #if defined(NDTPA_LOCKTIME) || (defined(HAVE_DECL_NDTPA_LOCKTIME) && HAVE_DECL_NDTPA_LOCKTIME) 112 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 113 static_assert((NDTPA_LOCKTIME) == (15), "NDTPA_LOCKTIME != 15"); 114 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 115 #else 116 # define NDTPA_LOCKTIME 15 117 #endif 118 #if defined(NDTPA_QUEUE_LENBYTES) || (defined(HAVE_DECL_NDTPA_QUEUE_LENBYTES) && HAVE_DECL_NDTPA_QUEUE_LENBYTES) 119 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 120 static_assert((NDTPA_QUEUE_LENBYTES) == (16), "NDTPA_QUEUE_LENBYTES != 16"); 121 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 122 #else 123 # define NDTPA_QUEUE_LENBYTES 16 124 #endif 125 #if defined(NDTPA_MCAST_REPROBES) || (defined(HAVE_DECL_NDTPA_MCAST_REPROBES) && HAVE_DECL_NDTPA_MCAST_REPROBES) 126 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 127 static_assert((NDTPA_MCAST_REPROBES) == (17), "NDTPA_MCAST_REPROBES != 17"); 128 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 129 #else 130 # define NDTPA_MCAST_REPROBES 17 131 #endif 132 #if defined(NDTPA_PAD) || (defined(HAVE_DECL_NDTPA_PAD) && HAVE_DECL_NDTPA_PAD) 133 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 134 static_assert((NDTPA_PAD) == (18), "NDTPA_PAD != 18"); 135 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 136 #else 137 # define NDTPA_PAD 18 138 #endif 139 140 #ifndef XLAT_MACROS_ONLY 141 142 # ifdef IN_MPERS 143 144 # error static const struct xlat rtnl_neightbl_parms_attrs in mpers mode 145 146 # else 147 148 static 149 const struct xlat rtnl_neightbl_parms_attrs[] = { 150 XLAT(NDTPA_UNSPEC), 151 XLAT(NDTPA_IFINDEX), 152 XLAT(NDTPA_REFCNT), 153 XLAT(NDTPA_REACHABLE_TIME), 154 XLAT(NDTPA_BASE_REACHABLE_TIME), 155 XLAT(NDTPA_RETRANS_TIME), 156 XLAT(NDTPA_GC_STALETIME), 157 XLAT(NDTPA_DELAY_PROBE_TIME), 158 XLAT(NDTPA_QUEUE_LEN), 159 XLAT(NDTPA_APP_PROBES), 160 XLAT(NDTPA_UCAST_PROBES), 161 XLAT(NDTPA_MCAST_PROBES), 162 XLAT(NDTPA_ANYCAST_DELAY), 163 XLAT(NDTPA_PROXY_DELAY), 164 XLAT(NDTPA_PROXY_QLEN), 165 XLAT(NDTPA_LOCKTIME), 166 XLAT(NDTPA_QUEUE_LENBYTES), 167 XLAT(NDTPA_MCAST_REPROBES), 168 XLAT(NDTPA_PAD), 169 XLAT_END 170 }; 171 172 # endif /* !IN_MPERS */ 173 174 #endif /* !XLAT_MACROS_ONLY */ 175