• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/tcp_states.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(TCP_ESTABLISHED) || (defined(HAVE_DECL_TCP_ESTABLISHED) && HAVE_DECL_TCP_ESTABLISHED)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((TCP_ESTABLISHED) == (1), "TCP_ESTABLISHED != 1");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define TCP_ESTABLISHED 1
12 #endif
13 #if defined(TCP_SYN_SENT) || (defined(HAVE_DECL_TCP_SYN_SENT) && HAVE_DECL_TCP_SYN_SENT)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((TCP_SYN_SENT) == (2), "TCP_SYN_SENT != 2");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define TCP_SYN_SENT 2
19 #endif
20 #if defined(TCP_SYN_RECV) || (defined(HAVE_DECL_TCP_SYN_RECV) && HAVE_DECL_TCP_SYN_RECV)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((TCP_SYN_RECV) == (3), "TCP_SYN_RECV != 3");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define TCP_SYN_RECV 3
26 #endif
27 #if defined(TCP_FIN_WAIT1) || (defined(HAVE_DECL_TCP_FIN_WAIT1) && HAVE_DECL_TCP_FIN_WAIT1)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((TCP_FIN_WAIT1) == (4), "TCP_FIN_WAIT1 != 4");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define TCP_FIN_WAIT1 4
33 #endif
34 #if defined(TCP_FIN_WAIT2) || (defined(HAVE_DECL_TCP_FIN_WAIT2) && HAVE_DECL_TCP_FIN_WAIT2)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((TCP_FIN_WAIT2) == (5), "TCP_FIN_WAIT2 != 5");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define TCP_FIN_WAIT2 5
40 #endif
41 #if defined(TCP_TIME_WAIT) || (defined(HAVE_DECL_TCP_TIME_WAIT) && HAVE_DECL_TCP_TIME_WAIT)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((TCP_TIME_WAIT) == (6), "TCP_TIME_WAIT != 6");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define TCP_TIME_WAIT 6
47 #endif
48 #if defined(TCP_CLOSE) || (defined(HAVE_DECL_TCP_CLOSE) && HAVE_DECL_TCP_CLOSE)
49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
50 static_assert((TCP_CLOSE) == (7), "TCP_CLOSE != 7");
51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
52 #else
53 # define TCP_CLOSE 7
54 #endif
55 #if defined(TCP_CLOSE_WAIT) || (defined(HAVE_DECL_TCP_CLOSE_WAIT) && HAVE_DECL_TCP_CLOSE_WAIT)
56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
57 static_assert((TCP_CLOSE_WAIT) == (8), "TCP_CLOSE_WAIT != 8");
58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
59 #else
60 # define TCP_CLOSE_WAIT 8
61 #endif
62 #if defined(TCP_LAST_ACK) || (defined(HAVE_DECL_TCP_LAST_ACK) && HAVE_DECL_TCP_LAST_ACK)
63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
64 static_assert((TCP_LAST_ACK) == (9), "TCP_LAST_ACK != 9");
65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
66 #else
67 # define TCP_LAST_ACK 9
68 #endif
69 #if defined(TCP_LISTEN) || (defined(HAVE_DECL_TCP_LISTEN) && HAVE_DECL_TCP_LISTEN)
70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
71 static_assert((TCP_LISTEN) == (10), "TCP_LISTEN != 10");
72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
73 #else
74 # define TCP_LISTEN 10
75 #endif
76 #if defined(TCP_CLOSING) || (defined(HAVE_DECL_TCP_CLOSING) && HAVE_DECL_TCP_CLOSING)
77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
78 static_assert((TCP_CLOSING) == (11), "TCP_CLOSING != 11");
79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
80 #else
81 # define TCP_CLOSING 11
82 #endif
83 #if defined(TCP_NEW_SYN_RECV) || (defined(HAVE_DECL_TCP_NEW_SYN_RECV) && HAVE_DECL_TCP_NEW_SYN_RECV)
84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
85 static_assert((TCP_NEW_SYN_RECV) == (12), "TCP_NEW_SYN_RECV != 12");
86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
87 #else
88 # define TCP_NEW_SYN_RECV 12
89 #endif
90 
91 #ifndef XLAT_MACROS_ONLY
92 
93 # ifndef IN_MPERS
94 
95 const struct xlat tcp_states[] = {
96  XLAT(TCP_ESTABLISHED),
97  XLAT(TCP_SYN_SENT),
98  XLAT(TCP_SYN_RECV),
99  XLAT(TCP_FIN_WAIT1),
100  XLAT(TCP_FIN_WAIT2),
101  XLAT(TCP_TIME_WAIT),
102  XLAT(TCP_CLOSE),
103  XLAT(TCP_CLOSE_WAIT),
104  XLAT(TCP_LAST_ACK),
105  XLAT(TCP_LISTEN),
106  XLAT(TCP_CLOSING),
107  XLAT(TCP_NEW_SYN_RECV),
108  XLAT_END
109 };
110 
111 # endif /* !IN_MPERS */
112 
113 #endif /* !XLAT_MACROS_ONLY */
114