1 /* Generated by ./xlat/gen.sh from ./xlat/socketlayers.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(SOL_IP) || (defined(HAVE_DECL_SOL_IP) && HAVE_DECL_SOL_IP)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((SOL_IP) == (0), "SOL_IP != 0");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define SOL_IP 0
12 #endif
13 #if !(defined __alpha__ || defined __hppa__ || defined __mips__ || defined __sparc__)
14 #if defined(SOL_SOCKET) || (defined(HAVE_DECL_SOL_SOCKET) && HAVE_DECL_SOL_SOCKET)
15 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
16 static_assert((SOL_SOCKET) == (1), "SOL_SOCKET != 1");
17 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
18 #else
19 # define SOL_SOCKET 1
20 #endif
21 #endif
22 #if defined(SOL_TCP) || (defined(HAVE_DECL_SOL_TCP) && HAVE_DECL_SOL_TCP)
23 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
24 static_assert((SOL_TCP) == (6), "SOL_TCP != 6");
25 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
26 #else
27 # define SOL_TCP 6
28 #endif
29 #if defined(SOL_UDP) || (defined(HAVE_DECL_SOL_UDP) && HAVE_DECL_SOL_UDP)
30 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
31 static_assert((SOL_UDP) == (17), "SOL_UDP != 17");
32 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
33 #else
34 # define SOL_UDP 17
35 #endif
36 #if defined(SOL_IPV6) || (defined(HAVE_DECL_SOL_IPV6) && HAVE_DECL_SOL_IPV6)
37 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
38 static_assert((SOL_IPV6) == (41), "SOL_IPV6 != 41");
39 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
40 #else
41 # define SOL_IPV6 41
42 #endif
43 #if defined(SOL_ICMPV6) || (defined(HAVE_DECL_SOL_ICMPV6) && HAVE_DECL_SOL_ICMPV6)
44 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
45 static_assert((SOL_ICMPV6) == (58), "SOL_ICMPV6 != 58");
46 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
47 #else
48 # define SOL_ICMPV6 58
49 #endif
50 #if defined(SOL_SCTP) || (defined(HAVE_DECL_SOL_SCTP) && HAVE_DECL_SOL_SCTP)
51 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
52 static_assert((SOL_SCTP) == (132), "SOL_SCTP != 132");
53 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
54 #else
55 # define SOL_SCTP 132
56 #endif
57 #if defined(SOL_UDPLITE) || (defined(HAVE_DECL_SOL_UDPLITE) && HAVE_DECL_SOL_UDPLITE)
58 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
59 static_assert((SOL_UDPLITE) == (136), "SOL_UDPLITE != 136");
60 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
61 #else
62 # define SOL_UDPLITE 136
63 #endif
64 #if defined(SOL_RAW) || (defined(HAVE_DECL_SOL_RAW) && HAVE_DECL_SOL_RAW)
65 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
66 static_assert((SOL_RAW) == (255), "SOL_RAW != 255");
67 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
68 #else
69 # define SOL_RAW 255
70 #endif
71 #if defined(SOL_IPX) || (defined(HAVE_DECL_SOL_IPX) && HAVE_DECL_SOL_IPX)
72 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
73 static_assert((SOL_IPX) == (256), "SOL_IPX != 256");
74 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
75 #else
76 # define SOL_IPX 256
77 #endif
78 #if defined(SOL_AX25) || (defined(HAVE_DECL_SOL_AX25) && HAVE_DECL_SOL_AX25)
79 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
80 static_assert((SOL_AX25) == (257), "SOL_AX25 != 257");
81 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
82 #else
83 # define SOL_AX25 257
84 #endif
85 #if defined(SOL_ATALK) || (defined(HAVE_DECL_SOL_ATALK) && HAVE_DECL_SOL_ATALK)
86 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
87 static_assert((SOL_ATALK) == (258), "SOL_ATALK != 258");
88 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
89 #else
90 # define SOL_ATALK 258
91 #endif
92 #if defined(SOL_NETROM) || (defined(HAVE_DECL_SOL_NETROM) && HAVE_DECL_SOL_NETROM)
93 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
94 static_assert((SOL_NETROM) == (259), "SOL_NETROM != 259");
95 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
96 #else
97 # define SOL_NETROM 259
98 #endif
99 #if defined(SOL_ROSE) || (defined(HAVE_DECL_SOL_ROSE) && HAVE_DECL_SOL_ROSE)
100 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
101 static_assert((SOL_ROSE) == (260), "SOL_ROSE != 260");
102 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
103 #else
104 # define SOL_ROSE 260
105 #endif
106 #if defined(SOL_DECNET) || (defined(HAVE_DECL_SOL_DECNET) && HAVE_DECL_SOL_DECNET)
107 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
108 static_assert((SOL_DECNET) == (261), "SOL_DECNET != 261");
109 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
110 #else
111 # define SOL_DECNET 261
112 #endif
113 #if defined(SOL_X25) || (defined(HAVE_DECL_SOL_X25) && HAVE_DECL_SOL_X25)
114 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
115 static_assert((SOL_X25) == (262), "SOL_X25 != 262");
116 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
117 #else
118 # define SOL_X25 262
119 #endif
120 #if defined(SOL_PACKET) || (defined(HAVE_DECL_SOL_PACKET) && HAVE_DECL_SOL_PACKET)
121 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
122 static_assert((SOL_PACKET) == (263), "SOL_PACKET != 263");
123 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
124 #else
125 # define SOL_PACKET 263
126 #endif
127 #if defined(SOL_ATM) || (defined(HAVE_DECL_SOL_ATM) && HAVE_DECL_SOL_ATM)
128 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
129 static_assert((SOL_ATM) == (264), "SOL_ATM != 264");
130 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
131 #else
132 # define SOL_ATM 264
133 #endif
134 #if defined(SOL_AAL) || (defined(HAVE_DECL_SOL_AAL) && HAVE_DECL_SOL_AAL)
135 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
136 static_assert((SOL_AAL) == (265), "SOL_AAL != 265");
137 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
138 #else
139 # define SOL_AAL 265
140 #endif
141 #if defined(SOL_IRDA) || (defined(HAVE_DECL_SOL_IRDA) && HAVE_DECL_SOL_IRDA)
142 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
143 static_assert((SOL_IRDA) == (266), "SOL_IRDA != 266");
144 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
145 #else
146 # define SOL_IRDA 266
147 #endif
148 #if defined(SOL_NETBEUI) || (defined(HAVE_DECL_SOL_NETBEUI) && HAVE_DECL_SOL_NETBEUI)
149 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
150 static_assert((SOL_NETBEUI) == (267), "SOL_NETBEUI != 267");
151 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
152 #else
153 # define SOL_NETBEUI 267
154 #endif
155 #if defined(SOL_LLC) || (defined(HAVE_DECL_SOL_LLC) && HAVE_DECL_SOL_LLC)
156 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
157 static_assert((SOL_LLC) == (268), "SOL_LLC != 268");
158 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
159 #else
160 # define SOL_LLC 268
161 #endif
162 #if defined(SOL_DCCP) || (defined(HAVE_DECL_SOL_DCCP) && HAVE_DECL_SOL_DCCP)
163 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
164 static_assert((SOL_DCCP) == (269), "SOL_DCCP != 269");
165 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
166 #else
167 # define SOL_DCCP 269
168 #endif
169 #if defined(SOL_NETLINK) || (defined(HAVE_DECL_SOL_NETLINK) && HAVE_DECL_SOL_NETLINK)
170 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
171 static_assert((SOL_NETLINK) == (270), "SOL_NETLINK != 270");
172 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
173 #else
174 # define SOL_NETLINK 270
175 #endif
176 #if defined(SOL_TIPC) || (defined(HAVE_DECL_SOL_TIPC) && HAVE_DECL_SOL_TIPC)
177 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
178 static_assert((SOL_TIPC) == (271), "SOL_TIPC != 271");
179 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
180 #else
181 # define SOL_TIPC 271
182 #endif
183 #if defined(SOL_RXRPC) || (defined(HAVE_DECL_SOL_RXRPC) && HAVE_DECL_SOL_RXRPC)
184 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
185 static_assert((SOL_RXRPC) == (272), "SOL_RXRPC != 272");
186 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
187 #else
188 # define SOL_RXRPC 272
189 #endif
190 #if defined(SOL_PPPOL2TP) || (defined(HAVE_DECL_SOL_PPPOL2TP) && HAVE_DECL_SOL_PPPOL2TP)
191 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
192 static_assert((SOL_PPPOL2TP) == (273), "SOL_PPPOL2TP != 273");
193 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
194 #else
195 # define SOL_PPPOL2TP 273
196 #endif
197 #if defined(SOL_BLUETOOTH) || (defined(HAVE_DECL_SOL_BLUETOOTH) && HAVE_DECL_SOL_BLUETOOTH)
198 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
199 static_assert((SOL_BLUETOOTH) == (274), "SOL_BLUETOOTH != 274");
200 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
201 #else
202 # define SOL_BLUETOOTH 274
203 #endif
204 #if defined(SOL_PNPIPE) || (defined(HAVE_DECL_SOL_PNPIPE) && HAVE_DECL_SOL_PNPIPE)
205 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
206 static_assert((SOL_PNPIPE) == (275), "SOL_PNPIPE != 275");
207 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
208 #else
209 # define SOL_PNPIPE 275
210 #endif
211 #if defined(SOL_RDS) || (defined(HAVE_DECL_SOL_RDS) && HAVE_DECL_SOL_RDS)
212 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
213 static_assert((SOL_RDS) == (276), "SOL_RDS != 276");
214 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
215 #else
216 # define SOL_RDS 276
217 #endif
218 #if defined(SOL_IUCV) || (defined(HAVE_DECL_SOL_IUCV) && HAVE_DECL_SOL_IUCV)
219 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
220 static_assert((SOL_IUCV) == (277), "SOL_IUCV != 277");
221 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
222 #else
223 # define SOL_IUCV 277
224 #endif
225 #if defined(SOL_CAIF) || (defined(HAVE_DECL_SOL_CAIF) && HAVE_DECL_SOL_CAIF)
226 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
227 static_assert((SOL_CAIF) == (278), "SOL_CAIF != 278");
228 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
229 #else
230 # define SOL_CAIF 278
231 #endif
232 #if defined(SOL_ALG) || (defined(HAVE_DECL_SOL_ALG) && HAVE_DECL_SOL_ALG)
233 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
234 static_assert((SOL_ALG) == (279), "SOL_ALG != 279");
235 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
236 #else
237 # define SOL_ALG 279
238 #endif
239 #if defined(SOL_NFC) || (defined(HAVE_DECL_SOL_NFC) && HAVE_DECL_SOL_NFC)
240 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
241 static_assert((SOL_NFC) == (280), "SOL_NFC != 280");
242 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
243 #else
244 # define SOL_NFC 280
245 #endif
246 #if defined(SOL_KCM) || (defined(HAVE_DECL_SOL_KCM) && HAVE_DECL_SOL_KCM)
247 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
248 static_assert((SOL_KCM) == (281), "SOL_KCM != 281");
249 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
250 #else
251 # define SOL_KCM 281
252 #endif
253 #if defined(SOL_TLS) || (defined(HAVE_DECL_SOL_TLS) && HAVE_DECL_SOL_TLS)
254 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
255 static_assert((SOL_TLS) == (282), "SOL_TLS != 282");
256 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
257 #else
258 # define SOL_TLS 282
259 #endif
260 #if defined(SOL_XDP) || (defined(HAVE_DECL_SOL_XDP) && HAVE_DECL_SOL_XDP)
261 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
262 static_assert((SOL_XDP) == (283), "SOL_XDP != 283");
263 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
264 #else
265 # define SOL_XDP 283
266 #endif
267 #if defined __alpha__ || defined __hppa__ || defined __mips__ || defined __sparc__
268 #if defined(SOL_SOCKET) || (defined(HAVE_DECL_SOL_SOCKET) && HAVE_DECL_SOL_SOCKET)
269 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
270 static_assert((SOL_SOCKET) == (0xffff), "SOL_SOCKET != 0xffff");
271 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
272 #else
273 # define SOL_SOCKET 0xffff
274 #endif
275 #endif
276 
277 #ifndef XLAT_MACROS_ONLY
278 
279 # ifndef IN_MPERS
280 
281 const struct xlat socketlayers[] = {
282 
283  XLAT(SOL_IP),
284 #if !(defined __alpha__ || defined __hppa__ || defined __mips__ || defined __sparc__)
285  XLAT(SOL_SOCKET),
286 #endif
287  XLAT(SOL_TCP),
288  XLAT(SOL_UDP),
289  XLAT(SOL_IPV6),
290  XLAT(SOL_ICMPV6),
291  XLAT(SOL_SCTP),
292  XLAT(SOL_UDPLITE),
293  XLAT(SOL_RAW),
294  XLAT(SOL_IPX),
295  XLAT(SOL_AX25),
296  XLAT(SOL_ATALK),
297  XLAT(SOL_NETROM),
298  XLAT(SOL_ROSE),
299  XLAT(SOL_DECNET),
300  XLAT(SOL_X25),
301  XLAT(SOL_PACKET),
302  XLAT(SOL_ATM),
303  XLAT(SOL_AAL),
304  XLAT(SOL_IRDA),
305  XLAT(SOL_NETBEUI),
306  XLAT(SOL_LLC),
307  XLAT(SOL_DCCP),
308  XLAT(SOL_NETLINK),
309  XLAT(SOL_TIPC),
310  XLAT(SOL_RXRPC),
311  XLAT(SOL_PPPOL2TP),
312  XLAT(SOL_BLUETOOTH),
313  XLAT(SOL_PNPIPE),
314  XLAT(SOL_RDS),
315  XLAT(SOL_IUCV),
316  XLAT(SOL_CAIF),
317  XLAT(SOL_ALG),
318  XLAT(SOL_NFC),
319  XLAT(SOL_KCM),
320  XLAT(SOL_TLS),
321  XLAT(SOL_XDP),
322 #if defined __alpha__ || defined __hppa__ || defined __mips__ || defined __sparc__
323  XLAT(SOL_SOCKET),
324 #endif
325  XLAT_END
326 };
327 
328 # endif /* !IN_MPERS */
329 
330 #endif /* !XLAT_MACROS_ONLY */
331