1 /* Generated by ./xlat/gen.sh from ./xlat/sock_udp_options.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(UDP_CORK) || (defined(HAVE_DECL_UDP_CORK) && HAVE_DECL_UDP_CORK)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((UDP_CORK) == (1), "UDP_CORK != 1");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define UDP_CORK 1
12 #endif
13 #if defined(UDP_ENCAP) || (defined(HAVE_DECL_UDP_ENCAP) && HAVE_DECL_UDP_ENCAP)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((UDP_ENCAP) == (100), "UDP_ENCAP != 100");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define UDP_ENCAP 100
19 #endif
20 #if defined(UDP_NO_CHECK6_TX) || (defined(HAVE_DECL_UDP_NO_CHECK6_TX) && HAVE_DECL_UDP_NO_CHECK6_TX)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((UDP_NO_CHECK6_TX) == (101), "UDP_NO_CHECK6_TX != 101");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define UDP_NO_CHECK6_TX 101
26 #endif
27 #if defined(UDP_NO_CHECK6_RX) || (defined(HAVE_DECL_UDP_NO_CHECK6_RX) && HAVE_DECL_UDP_NO_CHECK6_RX)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((UDP_NO_CHECK6_RX) == (102), "UDP_NO_CHECK6_RX != 102");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define UDP_NO_CHECK6_RX 102
33 #endif
34 #if defined(UDP_SEGMENT) || (defined(HAVE_DECL_UDP_SEGMENT) && HAVE_DECL_UDP_SEGMENT)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((UDP_SEGMENT) == (103), "UDP_SEGMENT != 103");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define UDP_SEGMENT 103
40 #endif
41 
42 #ifndef XLAT_MACROS_ONLY
43 
44 # ifdef IN_MPERS
45 
46 #  error static const struct xlat sock_udp_options in mpers mode
47 
48 # else
49 
50 static
51 const struct xlat sock_udp_options[] = {
52  XLAT(UDP_CORK),
53  XLAT(UDP_ENCAP),
54  XLAT(UDP_NO_CHECK6_TX),
55  XLAT(UDP_NO_CHECK6_RX),
56  XLAT(UDP_SEGMENT),
57  XLAT_END
58 };
59 
60 # endif /* !IN_MPERS */
61 
62 #endif /* !XLAT_MACROS_ONLY */
63