• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/rtnl_route_attrs.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(RTA_UNSPEC) || (defined(HAVE_DECL_RTA_UNSPEC) && HAVE_DECL_RTA_UNSPEC)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((RTA_UNSPEC) == (0), "RTA_UNSPEC != 0");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define RTA_UNSPEC 0
12 #endif
13 #if defined(RTA_DST) || (defined(HAVE_DECL_RTA_DST) && HAVE_DECL_RTA_DST)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((RTA_DST) == (1), "RTA_DST != 1");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define RTA_DST 1
19 #endif
20 #if defined(RTA_SRC) || (defined(HAVE_DECL_RTA_SRC) && HAVE_DECL_RTA_SRC)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((RTA_SRC) == (2), "RTA_SRC != 2");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define RTA_SRC 2
26 #endif
27 #if defined(RTA_IIF) || (defined(HAVE_DECL_RTA_IIF) && HAVE_DECL_RTA_IIF)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((RTA_IIF) == (3), "RTA_IIF != 3");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define RTA_IIF 3
33 #endif
34 #if defined(RTA_OIF) || (defined(HAVE_DECL_RTA_OIF) && HAVE_DECL_RTA_OIF)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((RTA_OIF) == (4), "RTA_OIF != 4");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define RTA_OIF 4
40 #endif
41 #if defined(RTA_GATEWAY) || (defined(HAVE_DECL_RTA_GATEWAY) && HAVE_DECL_RTA_GATEWAY)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((RTA_GATEWAY) == (5), "RTA_GATEWAY != 5");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define RTA_GATEWAY 5
47 #endif
48 #if defined(RTA_PRIORITY) || (defined(HAVE_DECL_RTA_PRIORITY) && HAVE_DECL_RTA_PRIORITY)
49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
50 static_assert((RTA_PRIORITY) == (6), "RTA_PRIORITY != 6");
51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
52 #else
53 # define RTA_PRIORITY 6
54 #endif
55 #if defined(RTA_PREFSRC) || (defined(HAVE_DECL_RTA_PREFSRC) && HAVE_DECL_RTA_PREFSRC)
56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
57 static_assert((RTA_PREFSRC) == (7), "RTA_PREFSRC != 7");
58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
59 #else
60 # define RTA_PREFSRC 7
61 #endif
62 #if defined(RTA_METRICS) || (defined(HAVE_DECL_RTA_METRICS) && HAVE_DECL_RTA_METRICS)
63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
64 static_assert((RTA_METRICS) == (8), "RTA_METRICS != 8");
65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
66 #else
67 # define RTA_METRICS 8
68 #endif
69 #if defined(RTA_MULTIPATH) || (defined(HAVE_DECL_RTA_MULTIPATH) && HAVE_DECL_RTA_MULTIPATH)
70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
71 static_assert((RTA_MULTIPATH) == (9), "RTA_MULTIPATH != 9");
72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
73 #else
74 # define RTA_MULTIPATH 9
75 #endif
76 #if defined(RTA_PROTOINFO) || (defined(HAVE_DECL_RTA_PROTOINFO) && HAVE_DECL_RTA_PROTOINFO)
77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
78 static_assert((RTA_PROTOINFO) == (10), "RTA_PROTOINFO != 10");
79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
80 #else
81 # define RTA_PROTOINFO 10
82 #endif
83 #if defined(RTA_FLOW) || (defined(HAVE_DECL_RTA_FLOW) && HAVE_DECL_RTA_FLOW)
84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
85 static_assert((RTA_FLOW) == (11), "RTA_FLOW != 11");
86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
87 #else
88 # define RTA_FLOW 11
89 #endif
90 #if defined(RTA_CACHEINFO) || (defined(HAVE_DECL_RTA_CACHEINFO) && HAVE_DECL_RTA_CACHEINFO)
91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
92 static_assert((RTA_CACHEINFO) == (12), "RTA_CACHEINFO != 12");
93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
94 #else
95 # define RTA_CACHEINFO 12
96 #endif
97 #if defined(RTA_SESSION) || (defined(HAVE_DECL_RTA_SESSION) && HAVE_DECL_RTA_SESSION)
98 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
99 static_assert((RTA_SESSION) == (13), "RTA_SESSION != 13");
100 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
101 #else
102 # define RTA_SESSION 13
103 #endif
104 #if defined(RTA_MP_ALGO) || (defined(HAVE_DECL_RTA_MP_ALGO) && HAVE_DECL_RTA_MP_ALGO)
105 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
106 static_assert((RTA_MP_ALGO) == (14), "RTA_MP_ALGO != 14");
107 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
108 #else
109 # define RTA_MP_ALGO 14
110 #endif
111 #if defined(RTA_TABLE) || (defined(HAVE_DECL_RTA_TABLE) && HAVE_DECL_RTA_TABLE)
112 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
113 static_assert((RTA_TABLE) == (15), "RTA_TABLE != 15");
114 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
115 #else
116 # define RTA_TABLE 15
117 #endif
118 #if defined(RTA_MARK) || (defined(HAVE_DECL_RTA_MARK) && HAVE_DECL_RTA_MARK)
119 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
120 static_assert((RTA_MARK) == (16), "RTA_MARK != 16");
121 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
122 #else
123 # define RTA_MARK 16
124 #endif
125 #if defined(RTA_MFC_STATS) || (defined(HAVE_DECL_RTA_MFC_STATS) && HAVE_DECL_RTA_MFC_STATS)
126 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
127 static_assert((RTA_MFC_STATS) == (17), "RTA_MFC_STATS != 17");
128 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
129 #else
130 # define RTA_MFC_STATS 17
131 #endif
132 #if defined(RTA_VIA) || (defined(HAVE_DECL_RTA_VIA) && HAVE_DECL_RTA_VIA)
133 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
134 static_assert((RTA_VIA) == (18), "RTA_VIA != 18");
135 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
136 #else
137 # define RTA_VIA 18
138 #endif
139 #if defined(RTA_NEWDST) || (defined(HAVE_DECL_RTA_NEWDST) && HAVE_DECL_RTA_NEWDST)
140 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
141 static_assert((RTA_NEWDST) == (19), "RTA_NEWDST != 19");
142 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
143 #else
144 # define RTA_NEWDST 19
145 #endif
146 #if defined(RTA_PREF) || (defined(HAVE_DECL_RTA_PREF) && HAVE_DECL_RTA_PREF)
147 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
148 static_assert((RTA_PREF) == (20), "RTA_PREF != 20");
149 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
150 #else
151 # define RTA_PREF 20
152 #endif
153 #if defined(RTA_ENCAP_TYPE) || (defined(HAVE_DECL_RTA_ENCAP_TYPE) && HAVE_DECL_RTA_ENCAP_TYPE)
154 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
155 static_assert((RTA_ENCAP_TYPE) == (21), "RTA_ENCAP_TYPE != 21");
156 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
157 #else
158 # define RTA_ENCAP_TYPE 21
159 #endif
160 #if defined(RTA_ENCAP) || (defined(HAVE_DECL_RTA_ENCAP) && HAVE_DECL_RTA_ENCAP)
161 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
162 static_assert((RTA_ENCAP) == (22), "RTA_ENCAP != 22");
163 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
164 #else
165 # define RTA_ENCAP 22
166 #endif
167 #if defined(RTA_EXPIRES) || (defined(HAVE_DECL_RTA_EXPIRES) && HAVE_DECL_RTA_EXPIRES)
168 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
169 static_assert((RTA_EXPIRES) == (23), "RTA_EXPIRES != 23");
170 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
171 #else
172 # define RTA_EXPIRES 23
173 #endif
174 #if defined(RTA_PAD) || (defined(HAVE_DECL_RTA_PAD) && HAVE_DECL_RTA_PAD)
175 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
176 static_assert((RTA_PAD) == (24), "RTA_PAD != 24");
177 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
178 #else
179 # define RTA_PAD 24
180 #endif
181 #if defined(RTA_UID) || (defined(HAVE_DECL_RTA_UID) && HAVE_DECL_RTA_UID)
182 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
183 static_assert((RTA_UID) == (25), "RTA_UID != 25");
184 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
185 #else
186 # define RTA_UID 25
187 #endif
188 #if defined(RTA_TTL_PROPAGATE) || (defined(HAVE_DECL_RTA_TTL_PROPAGATE) && HAVE_DECL_RTA_TTL_PROPAGATE)
189 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
190 static_assert((RTA_TTL_PROPAGATE) == (26), "RTA_TTL_PROPAGATE != 26");
191 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
192 #else
193 # define RTA_TTL_PROPAGATE 26
194 #endif
195 #if defined(RTA_IP_PROTO) || (defined(HAVE_DECL_RTA_IP_PROTO) && HAVE_DECL_RTA_IP_PROTO)
196 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
197 static_assert((RTA_IP_PROTO) == (27), "RTA_IP_PROTO != 27");
198 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
199 #else
200 # define RTA_IP_PROTO 27
201 #endif
202 #if defined(RTA_SPORT) || (defined(HAVE_DECL_RTA_SPORT) && HAVE_DECL_RTA_SPORT)
203 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
204 static_assert((RTA_SPORT) == (28), "RTA_SPORT != 28");
205 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
206 #else
207 # define RTA_SPORT 28
208 #endif
209 #if defined(RTA_DPORT) || (defined(HAVE_DECL_RTA_DPORT) && HAVE_DECL_RTA_DPORT)
210 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
211 static_assert((RTA_DPORT) == (29), "RTA_DPORT != 29");
212 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
213 #else
214 # define RTA_DPORT 29
215 #endif
216 
217 #ifndef XLAT_MACROS_ONLY
218 
219 # ifdef IN_MPERS
220 
221 #  error static const struct xlat rtnl_route_attrs in mpers mode
222 
223 # else
224 
225 static
226 const struct xlat rtnl_route_attrs[] = {
227  XLAT(RTA_UNSPEC),
228  XLAT(RTA_DST),
229  XLAT(RTA_SRC),
230  XLAT(RTA_IIF),
231  XLAT(RTA_OIF),
232  XLAT(RTA_GATEWAY),
233  XLAT(RTA_PRIORITY),
234  XLAT(RTA_PREFSRC),
235  XLAT(RTA_METRICS),
236  XLAT(RTA_MULTIPATH),
237  XLAT(RTA_PROTOINFO),
238  XLAT(RTA_FLOW),
239  XLAT(RTA_CACHEINFO),
240  XLAT(RTA_SESSION),
241  XLAT(RTA_MP_ALGO),
242  XLAT(RTA_TABLE),
243  XLAT(RTA_MARK),
244  XLAT(RTA_MFC_STATS),
245  XLAT(RTA_VIA),
246  XLAT(RTA_NEWDST),
247  XLAT(RTA_PREF),
248  XLAT(RTA_ENCAP_TYPE),
249  XLAT(RTA_ENCAP),
250  XLAT(RTA_EXPIRES),
251  XLAT(RTA_PAD),
252  XLAT(RTA_UID),
253  XLAT(RTA_TTL_PROPAGATE),
254  XLAT(RTA_IP_PROTO),
255  XLAT(RTA_SPORT),
256  XLAT(RTA_DPORT),
257  XLAT_END
258 };
259 
260 # endif /* !IN_MPERS */
261 
262 #endif /* !XLAT_MACROS_ONLY */
263