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
89
90
92
93
103
104
105
106
107
108
...
...
...
#define NX_SOURCE_CODE
#include "nx_api.h"
#include "nx_igmp.h"
#ifndef NX_DISABLE_IPV4...
...
UINT _nx_igmp_multicast_check(NX_IP *ip_ptr, ULONG group, NX_INTERFACE *nx_interface)
{
UINT i;
if (group == NX_ALL_HOSTS_ADDRESS)
{
return(NX_TRUE);
}if (group == NX_ALL_HOSTS_ADDRESS) { ... }
/* ... */
for (i = 0; i < NX_MAX_MULTICAST_GROUPS; i++)
{
if ((ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_list == group) &&
(nx_interface == ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_interface_list))
{
return(NX_TRUE);
}if ((ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_list == group) && (nx_interface == ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_interface_list)) { ... }
}for (i = 0; i < NX_MAX_MULTICAST_GROUPS; i++) { ... }
return(NX_FALSE);
}{ ... }
#endif/* ... */