1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/neighbor_cache_entry_states.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((NUD_NONE) == (0x00), "NUD_NONE != 0x00");
8 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
9 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
10 static_assert((NUD_INCOMPLETE) == (0x01), "NUD_INCOMPLETE != 0x01");
11 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
12 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
13 static_assert((NUD_REACHABLE) == (0x02), "NUD_REACHABLE != 0x02");
14 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
15 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
16 static_assert((NUD_STALE) == (0x04), "NUD_STALE != 0x04");
17 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
18 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
19 static_assert((NUD_DELAY) == (0x08), "NUD_DELAY != 0x08");
20 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((NUD_PROBE) == (0x10), "NUD_PROBE != 0x10");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
25 static_assert((NUD_FAILED) == (0x20), "NUD_FAILED != 0x20");
26 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
27 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
28 static_assert((NUD_NOARP) == (0x40), "NUD_NOARP != 0x40");
29 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
30 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
31 static_assert((NUD_PERMANENT) == (0x80), "NUD_PERMANENT != 0x80");
32 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
33 #undef XLAT_PREV_VAL
34
35 #ifndef XLAT_MACROS_ONLY
36
37 # ifdef IN_MPERS
38
39 # error static const struct xlat neighbor_cache_entry_states in mpers mode
40
41 # else
42
43 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
44 static const struct xlat_data neighbor_cache_entry_states_xdata[] = {
45 XLAT(NUD_NONE),
46 #define XLAT_VAL_0 ((unsigned) (NUD_NONE))
47 #define XLAT_STR_0 STRINGIFY(NUD_NONE)
48 XLAT(NUD_INCOMPLETE),
49 #define XLAT_VAL_1 ((unsigned) (NUD_INCOMPLETE))
50 #define XLAT_STR_1 STRINGIFY(NUD_INCOMPLETE)
51 XLAT(NUD_REACHABLE),
52 #define XLAT_VAL_2 ((unsigned) (NUD_REACHABLE))
53 #define XLAT_STR_2 STRINGIFY(NUD_REACHABLE)
54 XLAT(NUD_STALE),
55 #define XLAT_VAL_3 ((unsigned) (NUD_STALE))
56 #define XLAT_STR_3 STRINGIFY(NUD_STALE)
57 XLAT(NUD_DELAY),
58 #define XLAT_VAL_4 ((unsigned) (NUD_DELAY))
59 #define XLAT_STR_4 STRINGIFY(NUD_DELAY)
60 XLAT(NUD_PROBE),
61 #define XLAT_VAL_5 ((unsigned) (NUD_PROBE))
62 #define XLAT_STR_5 STRINGIFY(NUD_PROBE)
63 XLAT(NUD_FAILED),
64 #define XLAT_VAL_6 ((unsigned) (NUD_FAILED))
65 #define XLAT_STR_6 STRINGIFY(NUD_FAILED)
66 XLAT(NUD_NOARP),
67 #define XLAT_VAL_7 ((unsigned) (NUD_NOARP))
68 #define XLAT_STR_7 STRINGIFY(NUD_NOARP)
69 XLAT(NUD_PERMANENT),
70 #define XLAT_VAL_8 ((unsigned) (NUD_PERMANENT))
71 #define XLAT_STR_8 STRINGIFY(NUD_PERMANENT)
72 };
73 static
74 const struct xlat neighbor_cache_entry_states[1] = { {
75 .data = neighbor_cache_entry_states_xdata,
76 .size = ARRAY_SIZE(neighbor_cache_entry_states_xdata),
77 .type = XT_NORMAL,
78 .flags_mask = 0
79 # ifdef XLAT_VAL_0
80 | XLAT_VAL_0
81 # endif
82 # ifdef XLAT_VAL_1
83 | XLAT_VAL_1
84 # endif
85 # ifdef XLAT_VAL_2
86 | XLAT_VAL_2
87 # endif
88 # ifdef XLAT_VAL_3
89 | XLAT_VAL_3
90 # endif
91 # ifdef XLAT_VAL_4
92 | XLAT_VAL_4
93 # endif
94 # ifdef XLAT_VAL_5
95 | XLAT_VAL_5
96 # endif
97 # ifdef XLAT_VAL_6
98 | XLAT_VAL_6
99 # endif
100 # ifdef XLAT_VAL_7
101 | XLAT_VAL_7
102 # endif
103 # ifdef XLAT_VAL_8
104 | XLAT_VAL_8
105 # endif
106 ,
107 .flags_strsz = 0
108 # ifdef XLAT_STR_0
109 + sizeof(XLAT_STR_0)
110 # endif
111 # ifdef XLAT_STR_1
112 + sizeof(XLAT_STR_1)
113 # endif
114 # ifdef XLAT_STR_2
115 + sizeof(XLAT_STR_2)
116 # endif
117 # ifdef XLAT_STR_3
118 + sizeof(XLAT_STR_3)
119 # endif
120 # ifdef XLAT_STR_4
121 + sizeof(XLAT_STR_4)
122 # endif
123 # ifdef XLAT_STR_5
124 + sizeof(XLAT_STR_5)
125 # endif
126 # ifdef XLAT_STR_6
127 + sizeof(XLAT_STR_6)
128 # endif
129 # ifdef XLAT_STR_7
130 + sizeof(XLAT_STR_7)
131 # endif
132 # ifdef XLAT_STR_8
133 + sizeof(XLAT_STR_8)
134 # endif
135 ,
136 } };
137 DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
138
139 # undef XLAT_STR_0
140 # undef XLAT_VAL_0
141 # undef XLAT_STR_1
142 # undef XLAT_VAL_1
143 # undef XLAT_STR_2
144 # undef XLAT_VAL_2
145 # undef XLAT_STR_3
146 # undef XLAT_VAL_3
147 # undef XLAT_STR_4
148 # undef XLAT_VAL_4
149 # undef XLAT_STR_5
150 # undef XLAT_VAL_5
151 # undef XLAT_STR_6
152 # undef XLAT_VAL_6
153 # undef XLAT_STR_7
154 # undef XLAT_VAL_7
155 # undef XLAT_STR_8
156 # undef XLAT_VAL_8
157 # endif /* !IN_MPERS */
158
159 #endif /* !XLAT_MACROS_ONLY */