1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/ifstats_xstats_bridge_mcast_indices.in; do not edit. */
2
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5
6 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
7 static_assert((BR_MCAST_DIR_RX) == (0), "BR_MCAST_DIR_RX != 0");
8 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
9 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
10 static_assert((BR_MCAST_DIR_TX) == (1), "BR_MCAST_DIR_TX != 1");
11 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
12 #undef XLAT_PREV_VAL
13
14 #ifndef XLAT_MACROS_ONLY
15
16 # ifdef IN_MPERS
17
18 # error static const struct xlat ifstats_xstats_bridge_mcast_indices in mpers mode
19
20 # else
21
22 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
23 static const struct xlat_data ifstats_xstats_bridge_mcast_indices_xdata[] = {
24 [BR_MCAST_DIR_RX] = XLAT(BR_MCAST_DIR_RX),
25 #define XLAT_VAL_0 ((unsigned) (BR_MCAST_DIR_RX))
26 #define XLAT_STR_0 STRINGIFY(BR_MCAST_DIR_RX)
27 [BR_MCAST_DIR_TX] = XLAT(BR_MCAST_DIR_TX),
28 #define XLAT_VAL_1 ((unsigned) (BR_MCAST_DIR_TX))
29 #define XLAT_STR_1 STRINGIFY(BR_MCAST_DIR_TX)
30 };
31 static
32 const struct xlat ifstats_xstats_bridge_mcast_indices[1] = { {
33 .data = ifstats_xstats_bridge_mcast_indices_xdata,
34 .size = ARRAY_SIZE(ifstats_xstats_bridge_mcast_indices_xdata),
35 .type = XT_INDEXED,
36 .flags_mask = 0
37 # ifdef XLAT_VAL_0
38 | XLAT_VAL_0
39 # endif
40 # ifdef XLAT_VAL_1
41 | XLAT_VAL_1
42 # endif
43 ,
44 .flags_strsz = 0
45 # ifdef XLAT_STR_0
46 + sizeof(XLAT_STR_0)
47 # endif
48 # ifdef XLAT_STR_1
49 + sizeof(XLAT_STR_1)
50 # endif
51 ,
52 } };
53 DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
54
55 # undef XLAT_STR_0
56 # undef XLAT_VAL_0
57 # undef XLAT_STR_1
58 # undef XLAT_VAL_1
59 # endif /* !IN_MPERS */
60
61 #endif /* !XLAT_MACROS_ONLY */