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