1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/netlink_flags.in; do not edit. */
2
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5
6 #undef XLAT_PREV_VAL
7
8 #ifndef XLAT_MACROS_ONLY
9
10 # ifdef IN_MPERS
11
12 # error static const struct xlat netlink_flags in mpers mode
13
14 # else
15
16 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
17 static const struct xlat_data netlink_flags_xdata[] = {
18 XLAT(NLM_F_REQUEST),
19 #define XLAT_VAL_0 ((unsigned) (NLM_F_REQUEST))
20 #define XLAT_STR_0 STRINGIFY(NLM_F_REQUEST)
21 XLAT(NLM_F_MULTI),
22 #define XLAT_VAL_1 ((unsigned) (NLM_F_MULTI))
23 #define XLAT_STR_1 STRINGIFY(NLM_F_MULTI)
24 XLAT(NLM_F_ACK),
25 #define XLAT_VAL_2 ((unsigned) (NLM_F_ACK))
26 #define XLAT_STR_2 STRINGIFY(NLM_F_ACK)
27 XLAT(NLM_F_ECHO),
28 #define XLAT_VAL_3 ((unsigned) (NLM_F_ECHO))
29 #define XLAT_STR_3 STRINGIFY(NLM_F_ECHO)
30 XLAT(NLM_F_DUMP_INTR),
31 #define XLAT_VAL_4 ((unsigned) (NLM_F_DUMP_INTR))
32 #define XLAT_STR_4 STRINGIFY(NLM_F_DUMP_INTR)
33 XLAT(NLM_F_DUMP_FILTERED),
34 #define XLAT_VAL_5 ((unsigned) (NLM_F_DUMP_FILTERED))
35 #define XLAT_STR_5 STRINGIFY(NLM_F_DUMP_FILTERED)
36 };
37 static
38 const struct xlat netlink_flags[1] = { {
39 .data = netlink_flags_xdata,
40 .size = ARRAY_SIZE(netlink_flags_xdata),
41 .type = XT_NORMAL,
42 .flags_mask = 0
43 # ifdef XLAT_VAL_0
44 | XLAT_VAL_0
45 # endif
46 # ifdef XLAT_VAL_1
47 | XLAT_VAL_1
48 # endif
49 # ifdef XLAT_VAL_2
50 | XLAT_VAL_2
51 # endif
52 # ifdef XLAT_VAL_3
53 | XLAT_VAL_3
54 # endif
55 # ifdef XLAT_VAL_4
56 | XLAT_VAL_4
57 # endif
58 # ifdef XLAT_VAL_5
59 | XLAT_VAL_5
60 # endif
61 ,
62 .flags_strsz = 0
63 # ifdef XLAT_STR_0
64 + sizeof(XLAT_STR_0)
65 # endif
66 # ifdef XLAT_STR_1
67 + sizeof(XLAT_STR_1)
68 # endif
69 # ifdef XLAT_STR_2
70 + sizeof(XLAT_STR_2)
71 # endif
72 # ifdef XLAT_STR_3
73 + sizeof(XLAT_STR_3)
74 # endif
75 # ifdef XLAT_STR_4
76 + sizeof(XLAT_STR_4)
77 # endif
78 # ifdef XLAT_STR_5
79 + sizeof(XLAT_STR_5)
80 # endif
81 ,
82 } };
83 DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
84
85 # undef XLAT_STR_0
86 # undef XLAT_VAL_0
87 # undef XLAT_STR_1
88 # undef XLAT_VAL_1
89 # undef XLAT_STR_2
90 # undef XLAT_VAL_2
91 # undef XLAT_STR_3
92 # undef XLAT_VAL_3
93 # undef XLAT_STR_4
94 # undef XLAT_VAL_4
95 # undef XLAT_STR_5
96 # undef XLAT_VAL_5
97 # endif /* !IN_MPERS */
98
99 #endif /* !XLAT_MACROS_ONLY */