1
10
13
14
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
...
...
...
#define NX_SOURCE_CODE
#include "nx_api.h"
#include "nx_tcp.h"
#include "nx_ipv6.h"
...
...
VOID _nx_tcp_socket_block_cleanup(NX_TCP_SOCKET *socket_ptr)
{
socket_ptr -> nx_tcp_socket_connect_ip.nxd_ip_version = 0;
#ifdef FEATURE_NX_IPV6
SET_UNSPECIFIED_ADDRESS(socket_ptr -> nx_tcp_socket_connect_ip.nxd_ip_address.v6);/* ... */
#else
socket_ptr -> nx_tcp_socket_connect_ip.nxd_ip_address.v4 = 0;
#endif
socket_ptr -> nx_tcp_socket_connect_port = 0;
socket_ptr -> nx_tcp_socket_zero_window_probe_has_data = NX_FALSE;
socket_ptr -> nx_tcp_socket_timeout = 0;
socket_ptr -> nx_tcp_socket_duplicated_ack_received = 0;
socket_ptr -> nx_tcp_socket_fast_recovery = NX_FALSE;
if (socket_ptr -> nx_tcp_socket_client_type)
{
NX_TRACE_IN_LINE_INSERT(NX_TRACE_INTERNAL_TCP_STATE_CHANGE, socket_ptr -> nx_tcp_socket_ip_ptr, socket_ptr, socket_ptr -> nx_tcp_socket_state, NX_TCP_CLOSED, NX_TRACE_INTERNAL_EVENTS, 0, 0);
socket_ptr -> nx_tcp_socket_state = NX_TCP_CLOSED;
}if (socket_ptr -> nx_tcp_socket_client_type) { ... }
else
{
NX_TRACE_IN_LINE_INSERT(NX_TRACE_INTERNAL_TCP_STATE_CHANGE, socket_ptr -> nx_tcp_socket_ip_ptr, socket_ptr, socket_ptr -> nx_tcp_socket_state, NX_TCP_LISTEN_STATE, NX_TRACE_INTERNAL_EVENTS, 0, 0);
socket_ptr -> nx_tcp_socket_state = NX_TCP_LISTEN_STATE;
}else { ... }
}{ ... }