1 /* Generated by ./xlat/gen.sh from ./xlat/rtnl_link_attrs.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(IFLA_UNSPEC) || (defined(HAVE_DECL_IFLA_UNSPEC) && HAVE_DECL_IFLA_UNSPEC) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((IFLA_UNSPEC) == (0), "IFLA_UNSPEC != 0"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define IFLA_UNSPEC 0 12 #endif 13 #if defined(IFLA_ADDRESS) || (defined(HAVE_DECL_IFLA_ADDRESS) && HAVE_DECL_IFLA_ADDRESS) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((IFLA_ADDRESS) == (1), "IFLA_ADDRESS != 1"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define IFLA_ADDRESS 1 19 #endif 20 #if defined(IFLA_BROADCAST) || (defined(HAVE_DECL_IFLA_BROADCAST) && HAVE_DECL_IFLA_BROADCAST) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((IFLA_BROADCAST) == (2), "IFLA_BROADCAST != 2"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define IFLA_BROADCAST 2 26 #endif 27 #if defined(IFLA_IFNAME) || (defined(HAVE_DECL_IFLA_IFNAME) && HAVE_DECL_IFLA_IFNAME) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((IFLA_IFNAME) == (3), "IFLA_IFNAME != 3"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define IFLA_IFNAME 3 33 #endif 34 #if defined(IFLA_MTU) || (defined(HAVE_DECL_IFLA_MTU) && HAVE_DECL_IFLA_MTU) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((IFLA_MTU) == (4), "IFLA_MTU != 4"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define IFLA_MTU 4 40 #endif 41 #if defined(IFLA_LINK) || (defined(HAVE_DECL_IFLA_LINK) && HAVE_DECL_IFLA_LINK) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((IFLA_LINK) == (5), "IFLA_LINK != 5"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define IFLA_LINK 5 47 #endif 48 #if defined(IFLA_QDISC) || (defined(HAVE_DECL_IFLA_QDISC) && HAVE_DECL_IFLA_QDISC) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((IFLA_QDISC) == (6), "IFLA_QDISC != 6"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define IFLA_QDISC 6 54 #endif 55 #if defined(IFLA_STATS) || (defined(HAVE_DECL_IFLA_STATS) && HAVE_DECL_IFLA_STATS) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((IFLA_STATS) == (7), "IFLA_STATS != 7"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define IFLA_STATS 7 61 #endif 62 #if defined(IFLA_COST) || (defined(HAVE_DECL_IFLA_COST) && HAVE_DECL_IFLA_COST) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((IFLA_COST) == (8), "IFLA_COST != 8"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define IFLA_COST 8 68 #endif 69 #if defined(IFLA_PRIORITY) || (defined(HAVE_DECL_IFLA_PRIORITY) && HAVE_DECL_IFLA_PRIORITY) 70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 71 static_assert((IFLA_PRIORITY) == (9), "IFLA_PRIORITY != 9"); 72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 73 #else 74 # define IFLA_PRIORITY 9 75 #endif 76 #if defined(IFLA_MASTER) || (defined(HAVE_DECL_IFLA_MASTER) && HAVE_DECL_IFLA_MASTER) 77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 78 static_assert((IFLA_MASTER) == (10), "IFLA_MASTER != 10"); 79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 80 #else 81 # define IFLA_MASTER 10 82 #endif 83 #if defined(IFLA_WIRELESS) || (defined(HAVE_DECL_IFLA_WIRELESS) && HAVE_DECL_IFLA_WIRELESS) 84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 85 static_assert((IFLA_WIRELESS) == (11), "IFLA_WIRELESS != 11"); 86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 87 #else 88 # define IFLA_WIRELESS 11 89 #endif 90 #if defined(IFLA_PROTINFO) || (defined(HAVE_DECL_IFLA_PROTINFO) && HAVE_DECL_IFLA_PROTINFO) 91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 92 static_assert((IFLA_PROTINFO) == (12), "IFLA_PROTINFO != 12"); 93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 94 #else 95 # define IFLA_PROTINFO 12 96 #endif 97 #if defined(IFLA_TXQLEN) || (defined(HAVE_DECL_IFLA_TXQLEN) && HAVE_DECL_IFLA_TXQLEN) 98 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 99 static_assert((IFLA_TXQLEN) == (13), "IFLA_TXQLEN != 13"); 100 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 101 #else 102 # define IFLA_TXQLEN 13 103 #endif 104 #if defined(IFLA_MAP) || (defined(HAVE_DECL_IFLA_MAP) && HAVE_DECL_IFLA_MAP) 105 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 106 static_assert((IFLA_MAP) == (14), "IFLA_MAP != 14"); 107 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 108 #else 109 # define IFLA_MAP 14 110 #endif 111 #if defined(IFLA_WEIGHT) || (defined(HAVE_DECL_IFLA_WEIGHT) && HAVE_DECL_IFLA_WEIGHT) 112 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 113 static_assert((IFLA_WEIGHT) == (15), "IFLA_WEIGHT != 15"); 114 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 115 #else 116 # define IFLA_WEIGHT 15 117 #endif 118 #if defined(IFLA_OPERSTATE) || (defined(HAVE_DECL_IFLA_OPERSTATE) && HAVE_DECL_IFLA_OPERSTATE) 119 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 120 static_assert((IFLA_OPERSTATE) == (16), "IFLA_OPERSTATE != 16"); 121 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 122 #else 123 # define IFLA_OPERSTATE 16 124 #endif 125 #if defined(IFLA_LINKMODE) || (defined(HAVE_DECL_IFLA_LINKMODE) && HAVE_DECL_IFLA_LINKMODE) 126 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 127 static_assert((IFLA_LINKMODE) == (17), "IFLA_LINKMODE != 17"); 128 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 129 #else 130 # define IFLA_LINKMODE 17 131 #endif 132 #if defined(IFLA_LINKINFO) || (defined(HAVE_DECL_IFLA_LINKINFO) && HAVE_DECL_IFLA_LINKINFO) 133 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 134 static_assert((IFLA_LINKINFO) == (18), "IFLA_LINKINFO != 18"); 135 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 136 #else 137 # define IFLA_LINKINFO 18 138 #endif 139 #if defined(IFLA_NET_NS_PID) || (defined(HAVE_DECL_IFLA_NET_NS_PID) && HAVE_DECL_IFLA_NET_NS_PID) 140 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 141 static_assert((IFLA_NET_NS_PID) == (19), "IFLA_NET_NS_PID != 19"); 142 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 143 #else 144 # define IFLA_NET_NS_PID 19 145 #endif 146 #if defined(IFLA_IFALIAS) || (defined(HAVE_DECL_IFLA_IFALIAS) && HAVE_DECL_IFLA_IFALIAS) 147 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 148 static_assert((IFLA_IFALIAS) == (20), "IFLA_IFALIAS != 20"); 149 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 150 #else 151 # define IFLA_IFALIAS 20 152 #endif 153 #if defined(IFLA_NUM_VF) || (defined(HAVE_DECL_IFLA_NUM_VF) && HAVE_DECL_IFLA_NUM_VF) 154 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 155 static_assert((IFLA_NUM_VF) == (21), "IFLA_NUM_VF != 21"); 156 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 157 #else 158 # define IFLA_NUM_VF 21 159 #endif 160 #if defined(IFLA_VFINFO_LIST) || (defined(HAVE_DECL_IFLA_VFINFO_LIST) && HAVE_DECL_IFLA_VFINFO_LIST) 161 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 162 static_assert((IFLA_VFINFO_LIST) == (22), "IFLA_VFINFO_LIST != 22"); 163 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 164 #else 165 # define IFLA_VFINFO_LIST 22 166 #endif 167 #if defined(IFLA_STATS64) || (defined(HAVE_DECL_IFLA_STATS64) && HAVE_DECL_IFLA_STATS64) 168 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 169 static_assert((IFLA_STATS64) == (23), "IFLA_STATS64 != 23"); 170 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 171 #else 172 # define IFLA_STATS64 23 173 #endif 174 #if defined(IFLA_VF_PORTS) || (defined(HAVE_DECL_IFLA_VF_PORTS) && HAVE_DECL_IFLA_VF_PORTS) 175 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 176 static_assert((IFLA_VF_PORTS) == (24), "IFLA_VF_PORTS != 24"); 177 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 178 #else 179 # define IFLA_VF_PORTS 24 180 #endif 181 #if defined(IFLA_PORT_SELF) || (defined(HAVE_DECL_IFLA_PORT_SELF) && HAVE_DECL_IFLA_PORT_SELF) 182 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 183 static_assert((IFLA_PORT_SELF) == (25), "IFLA_PORT_SELF != 25"); 184 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 185 #else 186 # define IFLA_PORT_SELF 25 187 #endif 188 #if defined(IFLA_AF_SPEC) || (defined(HAVE_DECL_IFLA_AF_SPEC) && HAVE_DECL_IFLA_AF_SPEC) 189 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 190 static_assert((IFLA_AF_SPEC) == (26), "IFLA_AF_SPEC != 26"); 191 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 192 #else 193 # define IFLA_AF_SPEC 26 194 #endif 195 #if defined(IFLA_GROUP) || (defined(HAVE_DECL_IFLA_GROUP) && HAVE_DECL_IFLA_GROUP) 196 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 197 static_assert((IFLA_GROUP) == (27), "IFLA_GROUP != 27"); 198 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 199 #else 200 # define IFLA_GROUP 27 201 #endif 202 #if defined(IFLA_NET_NS_FD) || (defined(HAVE_DECL_IFLA_NET_NS_FD) && HAVE_DECL_IFLA_NET_NS_FD) 203 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 204 static_assert((IFLA_NET_NS_FD) == (28), "IFLA_NET_NS_FD != 28"); 205 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 206 #else 207 # define IFLA_NET_NS_FD 28 208 #endif 209 #if defined(IFLA_EXT_MASK) || (defined(HAVE_DECL_IFLA_EXT_MASK) && HAVE_DECL_IFLA_EXT_MASK) 210 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 211 static_assert((IFLA_EXT_MASK) == (29), "IFLA_EXT_MASK != 29"); 212 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 213 #else 214 # define IFLA_EXT_MASK 29 215 #endif 216 #if defined(IFLA_PROMISCUITY) || (defined(HAVE_DECL_IFLA_PROMISCUITY) && HAVE_DECL_IFLA_PROMISCUITY) 217 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 218 static_assert((IFLA_PROMISCUITY) == (30), "IFLA_PROMISCUITY != 30"); 219 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 220 #else 221 # define IFLA_PROMISCUITY 30 222 #endif 223 #if defined(IFLA_NUM_TX_QUEUES) || (defined(HAVE_DECL_IFLA_NUM_TX_QUEUES) && HAVE_DECL_IFLA_NUM_TX_QUEUES) 224 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 225 static_assert((IFLA_NUM_TX_QUEUES) == (31), "IFLA_NUM_TX_QUEUES != 31"); 226 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 227 #else 228 # define IFLA_NUM_TX_QUEUES 31 229 #endif 230 #if defined(IFLA_NUM_RX_QUEUES) || (defined(HAVE_DECL_IFLA_NUM_RX_QUEUES) && HAVE_DECL_IFLA_NUM_RX_QUEUES) 231 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 232 static_assert((IFLA_NUM_RX_QUEUES) == (32), "IFLA_NUM_RX_QUEUES != 32"); 233 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 234 #else 235 # define IFLA_NUM_RX_QUEUES 32 236 #endif 237 #if defined(IFLA_CARRIER) || (defined(HAVE_DECL_IFLA_CARRIER) && HAVE_DECL_IFLA_CARRIER) 238 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 239 static_assert((IFLA_CARRIER) == (33), "IFLA_CARRIER != 33"); 240 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 241 #else 242 # define IFLA_CARRIER 33 243 #endif 244 #if defined(IFLA_PHYS_PORT_ID) || (defined(HAVE_DECL_IFLA_PHYS_PORT_ID) && HAVE_DECL_IFLA_PHYS_PORT_ID) 245 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 246 static_assert((IFLA_PHYS_PORT_ID) == (34), "IFLA_PHYS_PORT_ID != 34"); 247 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 248 #else 249 # define IFLA_PHYS_PORT_ID 34 250 #endif 251 #if defined(IFLA_CARRIER_CHANGES) || (defined(HAVE_DECL_IFLA_CARRIER_CHANGES) && HAVE_DECL_IFLA_CARRIER_CHANGES) 252 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 253 static_assert((IFLA_CARRIER_CHANGES) == (35), "IFLA_CARRIER_CHANGES != 35"); 254 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 255 #else 256 # define IFLA_CARRIER_CHANGES 35 257 #endif 258 #if defined(IFLA_PHYS_SWITCH_ID) || (defined(HAVE_DECL_IFLA_PHYS_SWITCH_ID) && HAVE_DECL_IFLA_PHYS_SWITCH_ID) 259 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 260 static_assert((IFLA_PHYS_SWITCH_ID) == (36), "IFLA_PHYS_SWITCH_ID != 36"); 261 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 262 #else 263 # define IFLA_PHYS_SWITCH_ID 36 264 #endif 265 #if defined(IFLA_LINK_NETNSID) || (defined(HAVE_DECL_IFLA_LINK_NETNSID) && HAVE_DECL_IFLA_LINK_NETNSID) 266 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 267 static_assert((IFLA_LINK_NETNSID) == (37), "IFLA_LINK_NETNSID != 37"); 268 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 269 #else 270 # define IFLA_LINK_NETNSID 37 271 #endif 272 #if defined(IFLA_PHYS_PORT_NAME) || (defined(HAVE_DECL_IFLA_PHYS_PORT_NAME) && HAVE_DECL_IFLA_PHYS_PORT_NAME) 273 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 274 static_assert((IFLA_PHYS_PORT_NAME) == (38), "IFLA_PHYS_PORT_NAME != 38"); 275 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 276 #else 277 # define IFLA_PHYS_PORT_NAME 38 278 #endif 279 #if defined(IFLA_PROTO_DOWN) || (defined(HAVE_DECL_IFLA_PROTO_DOWN) && HAVE_DECL_IFLA_PROTO_DOWN) 280 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 281 static_assert((IFLA_PROTO_DOWN) == (39), "IFLA_PROTO_DOWN != 39"); 282 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 283 #else 284 # define IFLA_PROTO_DOWN 39 285 #endif 286 #if defined(IFLA_GSO_MAX_SEGS) || (defined(HAVE_DECL_IFLA_GSO_MAX_SEGS) && HAVE_DECL_IFLA_GSO_MAX_SEGS) 287 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 288 static_assert((IFLA_GSO_MAX_SEGS) == (40), "IFLA_GSO_MAX_SEGS != 40"); 289 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 290 #else 291 # define IFLA_GSO_MAX_SEGS 40 292 #endif 293 #if defined(IFLA_GSO_MAX_SIZE) || (defined(HAVE_DECL_IFLA_GSO_MAX_SIZE) && HAVE_DECL_IFLA_GSO_MAX_SIZE) 294 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 295 static_assert((IFLA_GSO_MAX_SIZE) == (41), "IFLA_GSO_MAX_SIZE != 41"); 296 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 297 #else 298 # define IFLA_GSO_MAX_SIZE 41 299 #endif 300 #if defined(IFLA_PAD) || (defined(HAVE_DECL_IFLA_PAD) && HAVE_DECL_IFLA_PAD) 301 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 302 static_assert((IFLA_PAD) == (42), "IFLA_PAD != 42"); 303 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 304 #else 305 # define IFLA_PAD 42 306 #endif 307 #if defined(IFLA_XDP) || (defined(HAVE_DECL_IFLA_XDP) && HAVE_DECL_IFLA_XDP) 308 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 309 static_assert((IFLA_XDP) == (43), "IFLA_XDP != 43"); 310 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 311 #else 312 # define IFLA_XDP 43 313 #endif 314 #if defined(IFLA_EVENT) || (defined(HAVE_DECL_IFLA_EVENT) && HAVE_DECL_IFLA_EVENT) 315 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 316 static_assert((IFLA_EVENT) == (44), "IFLA_EVENT != 44"); 317 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 318 #else 319 # define IFLA_EVENT 44 320 #endif 321 #if defined(IFLA_NEW_NETNSID) || (defined(HAVE_DECL_IFLA_NEW_NETNSID) && HAVE_DECL_IFLA_NEW_NETNSID) 322 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 323 static_assert((IFLA_NEW_NETNSID) == (45), "IFLA_NEW_NETNSID != 45"); 324 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 325 #else 326 # define IFLA_NEW_NETNSID 45 327 #endif 328 #if defined(IFLA_IF_NETNSID) || (defined(HAVE_DECL_IFLA_IF_NETNSID) && HAVE_DECL_IFLA_IF_NETNSID) 329 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 330 static_assert((IFLA_IF_NETNSID) == (46), "IFLA_IF_NETNSID != 46"); 331 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 332 #else 333 # define IFLA_IF_NETNSID 46 334 #endif 335 #if defined(IFLA_CARRIER_UP_COUNT) || (defined(HAVE_DECL_IFLA_CARRIER_UP_COUNT) && HAVE_DECL_IFLA_CARRIER_UP_COUNT) 336 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 337 static_assert((IFLA_CARRIER_UP_COUNT) == (47), "IFLA_CARRIER_UP_COUNT != 47"); 338 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 339 #else 340 # define IFLA_CARRIER_UP_COUNT 47 341 #endif 342 #if defined(IFLA_CARRIER_DOWN_COUNT) || (defined(HAVE_DECL_IFLA_CARRIER_DOWN_COUNT) && HAVE_DECL_IFLA_CARRIER_DOWN_COUNT) 343 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 344 static_assert((IFLA_CARRIER_DOWN_COUNT) == (48), "IFLA_CARRIER_DOWN_COUNT != 48"); 345 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 346 #else 347 # define IFLA_CARRIER_DOWN_COUNT 48 348 #endif 349 #if defined(IFLA_NEW_IFINDEX) || (defined(HAVE_DECL_IFLA_NEW_IFINDEX) && HAVE_DECL_IFLA_NEW_IFINDEX) 350 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 351 static_assert((IFLA_NEW_IFINDEX) == (49), "IFLA_NEW_IFINDEX != 49"); 352 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 353 #else 354 # define IFLA_NEW_IFINDEX 49 355 #endif 356 #if defined(IFLA_MIN_MTU) || (defined(HAVE_DECL_IFLA_MIN_MTU) && HAVE_DECL_IFLA_MIN_MTU) 357 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 358 static_assert((IFLA_MIN_MTU) == (50), "IFLA_MIN_MTU != 50"); 359 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 360 #else 361 # define IFLA_MIN_MTU 50 362 #endif 363 #if defined(IFLA_MAX_MTU) || (defined(HAVE_DECL_IFLA_MAX_MTU) && HAVE_DECL_IFLA_MAX_MTU) 364 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 365 static_assert((IFLA_MAX_MTU) == (51), "IFLA_MAX_MTU != 51"); 366 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 367 #else 368 # define IFLA_MAX_MTU 51 369 #endif 370 371 #ifndef XLAT_MACROS_ONLY 372 373 # ifdef IN_MPERS 374 375 # error static const struct xlat rtnl_link_attrs in mpers mode 376 377 # else 378 379 static 380 const struct xlat rtnl_link_attrs[] = { 381 XLAT(IFLA_UNSPEC), 382 XLAT(IFLA_ADDRESS), 383 XLAT(IFLA_BROADCAST), 384 XLAT(IFLA_IFNAME), 385 XLAT(IFLA_MTU), 386 XLAT(IFLA_LINK), 387 XLAT(IFLA_QDISC), 388 XLAT(IFLA_STATS), 389 XLAT(IFLA_COST), 390 XLAT(IFLA_PRIORITY), 391 XLAT(IFLA_MASTER), 392 XLAT(IFLA_WIRELESS), 393 XLAT(IFLA_PROTINFO), 394 XLAT(IFLA_TXQLEN), 395 XLAT(IFLA_MAP), 396 XLAT(IFLA_WEIGHT), 397 XLAT(IFLA_OPERSTATE), 398 XLAT(IFLA_LINKMODE), 399 XLAT(IFLA_LINKINFO), 400 XLAT(IFLA_NET_NS_PID), 401 XLAT(IFLA_IFALIAS), 402 XLAT(IFLA_NUM_VF), 403 XLAT(IFLA_VFINFO_LIST), 404 XLAT(IFLA_STATS64), 405 XLAT(IFLA_VF_PORTS), 406 XLAT(IFLA_PORT_SELF), 407 XLAT(IFLA_AF_SPEC), 408 XLAT(IFLA_GROUP), 409 XLAT(IFLA_NET_NS_FD), 410 XLAT(IFLA_EXT_MASK), 411 XLAT(IFLA_PROMISCUITY), 412 XLAT(IFLA_NUM_TX_QUEUES), 413 XLAT(IFLA_NUM_RX_QUEUES), 414 XLAT(IFLA_CARRIER), 415 XLAT(IFLA_PHYS_PORT_ID), 416 XLAT(IFLA_CARRIER_CHANGES), 417 XLAT(IFLA_PHYS_SWITCH_ID), 418 XLAT(IFLA_LINK_NETNSID), 419 XLAT(IFLA_PHYS_PORT_NAME), 420 XLAT(IFLA_PROTO_DOWN), 421 XLAT(IFLA_GSO_MAX_SEGS), 422 XLAT(IFLA_GSO_MAX_SIZE), 423 XLAT(IFLA_PAD), 424 XLAT(IFLA_XDP), 425 XLAT(IFLA_EVENT), 426 XLAT(IFLA_NEW_NETNSID), 427 XLAT(IFLA_IF_NETNSID), 428 XLAT(IFLA_CARRIER_UP_COUNT), 429 XLAT(IFLA_CARRIER_DOWN_COUNT), 430 XLAT(IFLA_NEW_IFINDEX), 431 XLAT(IFLA_MIN_MTU), 432 XLAT(IFLA_MAX_MTU), 433 XLAT_END 434 }; 435 436 # endif /* !IN_MPERS */ 437 438 #endif /* !XLAT_MACROS_ONLY */ 439