• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/tcp_states.in; do not edit. */
2 #if !(defined(TCP_ESTABLISHED) || (defined(HAVE_DECL_TCP_ESTABLISHED) && HAVE_DECL_TCP_ESTABLISHED))
3 # define TCP_ESTABLISHED 1
4 #endif
5 #if !(defined(TCP_SYN_SENT) || (defined(HAVE_DECL_TCP_SYN_SENT) && HAVE_DECL_TCP_SYN_SENT))
6 # define TCP_SYN_SENT 2
7 #endif
8 #if !(defined(TCP_SYN_RECV) || (defined(HAVE_DECL_TCP_SYN_RECV) && HAVE_DECL_TCP_SYN_RECV))
9 # define TCP_SYN_RECV 3
10 #endif
11 #if !(defined(TCP_FIN_WAIT1) || (defined(HAVE_DECL_TCP_FIN_WAIT1) && HAVE_DECL_TCP_FIN_WAIT1))
12 # define TCP_FIN_WAIT1 4
13 #endif
14 #if !(defined(TCP_FIN_WAIT2) || (defined(HAVE_DECL_TCP_FIN_WAIT2) && HAVE_DECL_TCP_FIN_WAIT2))
15 # define TCP_FIN_WAIT2 5
16 #endif
17 #if !(defined(TCP_TIME_WAIT) || (defined(HAVE_DECL_TCP_TIME_WAIT) && HAVE_DECL_TCP_TIME_WAIT))
18 # define TCP_TIME_WAIT 6
19 #endif
20 #if !(defined(TCP_CLOSE) || (defined(HAVE_DECL_TCP_CLOSE) && HAVE_DECL_TCP_CLOSE))
21 # define TCP_CLOSE 7
22 #endif
23 #if !(defined(TCP_CLOSE_WAIT) || (defined(HAVE_DECL_TCP_CLOSE_WAIT) && HAVE_DECL_TCP_CLOSE_WAIT))
24 # define TCP_CLOSE_WAIT 8
25 #endif
26 #if !(defined(TCP_LAST_ACK) || (defined(HAVE_DECL_TCP_LAST_ACK) && HAVE_DECL_TCP_LAST_ACK))
27 # define TCP_LAST_ACK 9
28 #endif
29 #if !(defined(TCP_LISTEN) || (defined(HAVE_DECL_TCP_LISTEN) && HAVE_DECL_TCP_LISTEN))
30 # define TCP_LISTEN 10
31 #endif
32 #if !(defined(TCP_CLOSING) || (defined(HAVE_DECL_TCP_CLOSING) && HAVE_DECL_TCP_CLOSING))
33 # define TCP_CLOSING 11
34 #endif
35 #if !(defined(TCP_NEW_SYN_RECV) || (defined(HAVE_DECL_TCP_NEW_SYN_RECV) && HAVE_DECL_TCP_NEW_SYN_RECV))
36 # define TCP_NEW_SYN_RECV 12
37 #endif
38 
39 #ifdef IN_MPERS
40 
41 # error static const struct xlat tcp_states in mpers mode
42 
43 #else
44 
45 static
46 const struct xlat tcp_states[] = {
47  XLAT(TCP_ESTABLISHED),
48  XLAT(TCP_SYN_SENT),
49  XLAT(TCP_SYN_RECV),
50  XLAT(TCP_FIN_WAIT1),
51  XLAT(TCP_FIN_WAIT2),
52  XLAT(TCP_TIME_WAIT),
53  XLAT(TCP_CLOSE),
54  XLAT(TCP_CLOSE_WAIT),
55  XLAT(TCP_LAST_ACK),
56  XLAT(TCP_LISTEN),
57  XLAT(TCP_CLOSING),
58  XLAT(TCP_NEW_SYN_RECV),
59  XLAT_END
60 };
61 
62 #endif /* !IN_MPERS */
63