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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
...
...
...
#define NX_SOURCE_CODE
#include "nx_api.h"
#include "nx_tcp.h"
#include "nx_arp.h"
#include "nx_icmpv6.h"
...
...
VOID _nx_ip_deferred_link_status_process(NX_IP *ip_ptr)
{
UINT i;
NX_IP_DRIVER driver_request;
ULONG link_up;
if (ip_ptr -> nx_ip_link_status_change_callback == NX_NULL)
{
return;
}if (ip_ptr -> nx_ip_link_status_change_callback == NX_NULL) { ... }
for (i = 0; i < NX_MAX_PHYSICAL_INTERFACES; i++)
{
if ((ip_ptr -> nx_ip_interface[i].nx_interface_valid) &&
(ip_ptr -> nx_ip_interface[i].nx_interface_link_status_change))
{
ip_ptr -> nx_ip_interface[i].nx_interface_link_status_change = NX_FALSE;
driver_request.nx_ip_driver_ptr = ip_ptr;
driver_request.nx_ip_driver_command = NX_LINK_GET_STATUS;
driver_request.nx_ip_driver_interface = &(ip_ptr -> nx_ip_interface[i]);
driver_request.nx_ip_driver_return_ptr = &link_up;
(ip_ptr -> nx_ip_interface[i].nx_interface_link_driver_entry)(&driver_request);
ip_ptr -> nx_ip_link_status_change_callback(ip_ptr, i, link_up);
}if ((ip_ptr -> nx_ip_interface[i].nx_interface_valid) && (ip_ptr -> nx_ip_interface[i].nx_interface_link_status_change)) { ... }
}for (i = 0; i < NX_MAX_PHYSICAL_INTERFACES; i++) { ... }
}{ ... }