1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/rtnl_family.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((RTNL_FAMILY_IPMR) == (128), "RTNL_FAMILY_IPMR != 128");
8 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
9 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
10 static_assert((RTNL_FAMILY_IP6MR) == (129), "RTNL_FAMILY_IP6MR != 129");
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 rtnl_family in mpers mode
19
20 # else
21
22 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
23 static const struct xlat_data rtnl_family_xdata[] = {
24 XLAT(RTNL_FAMILY_IPMR),
25 #define XLAT_VAL_0 ((unsigned) (RTNL_FAMILY_IPMR))
26 #define XLAT_STR_0 STRINGIFY(RTNL_FAMILY_IPMR)
27 XLAT(RTNL_FAMILY_IP6MR),
28 #define XLAT_VAL_1 ((unsigned) (RTNL_FAMILY_IP6MR))
29 #define XLAT_STR_1 STRINGIFY(RTNL_FAMILY_IP6MR)
30 };
31 static
32 const struct xlat rtnl_family[1] = { {
33 .data = rtnl_family_xdata,
34 .size = ARRAY_SIZE(rtnl_family_xdata),
35 .type = XT_NORMAL,
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 */