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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
113
114
115
121
122
123
129
130
131
137
138
139
145
146
147
153
154
155
161
162
163
169
170
171
177
178
179
185
186
187
193
194
195
196
197
198
199
200
...
...
...
#define NX_SOURCE_CODE
#include "nx_api.h"
#include "nx_tcp.h"
...
...
UINT _nx_tcp_info_get(NX_IP *ip_ptr, ULONG *tcp_packets_sent, ULONG *tcp_bytes_sent,
ULONG *tcp_packets_received, ULONG *tcp_bytes_received,
ULONG *tcp_invalid_packets, ULONG *tcp_receive_packets_dropped,
ULONG *tcp_checksum_errors, ULONG *tcp_connections,
ULONG *tcp_disconnections, ULONG *tcp_connections_dropped,
ULONG *tcp_retransmit_packets)
{
tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER);
if (tcp_packets_sent)
{
*tcp_packets_sent = ip_ptr -> nx_ip_tcp_packets_sent;
}if (tcp_packets_sent) { ... }
if (tcp_bytes_sent)
{
*tcp_bytes_sent = ip_ptr -> nx_ip_tcp_bytes_sent;
}if (tcp_bytes_sent) { ... }
if (tcp_packets_received)
{
*tcp_packets_received = ip_ptr -> nx_ip_tcp_packets_received;
}if (tcp_packets_received) { ... }
if (tcp_bytes_received)
{
*tcp_bytes_received = ip_ptr -> nx_ip_tcp_bytes_received;
}if (tcp_bytes_received) { ... }
if (tcp_invalid_packets)
{
*tcp_invalid_packets = ip_ptr -> nx_ip_tcp_invalid_packets;
}if (tcp_invalid_packets) { ... }
if (tcp_receive_packets_dropped)
{
*tcp_receive_packets_dropped = ip_ptr -> nx_ip_tcp_receive_packets_dropped;
}if (tcp_receive_packets_dropped) { ... }
if (tcp_checksum_errors)
{
*tcp_checksum_errors = ip_ptr -> nx_ip_tcp_checksum_errors;
}if (tcp_checksum_errors) { ... }
if (tcp_connections)
{
*tcp_connections = ip_ptr -> nx_ip_tcp_connections;
}if (tcp_connections) { ... }
if (tcp_disconnections)
{
*tcp_disconnections = ip_ptr -> nx_ip_tcp_disconnections;
}if (tcp_disconnections) { ... }
if (tcp_connections_dropped)
{
*tcp_connections_dropped = ip_ptr -> nx_ip_tcp_connections_dropped;
}if (tcp_connections_dropped) { ... }
if (tcp_retransmit_packets)
{
*tcp_retransmit_packets = ip_ptr -> nx_ip_tcp_retransmit_packets;
}if (tcp_retransmit_packets) { ... }
tx_mutex_put(&(ip_ptr -> nx_ip_protection));
return(NX_SUCCESS);
}{ ... }