@@ -97,62 +97,62 @@ declare sub IN6_SET_ADDR_LOOPBACK(byval as IN6_ADDR ptr)
9797declare sub IN6ADDR_SETANY( byval as SOCKADDR_IN6 ptr)
9898declare sub IN6ADDR_SETLOOPBACK( byval as SOCKADDR_IN6 ptr)
9999
100- private function IN6_IS_ADDR_UNSPECIFIED( byval a as const in6_addr ptr) as long
100+ private function IN6_IS_ADDR_UNSPECIFIED( byval a as const IN6_ADDR ptr) as long
101101 return -((((((((a->u.Word( 0 ) = 0 ) andalso (a->u.Word( 1 ) = 0 )) andalso (a->u.Word( 2 ) = 0 )) andalso (a->u.Word( 3 ) = 0 )) andalso (a->u.Word( 4 ) = 0 )) andalso (a->u.Word( 5 ) = 0 )) andalso (a->u.Word( 6 ) = 0 )) andalso (a->u.Word( 7 ) = 0 ))
102102end function
103103
104- private function IN6_IS_ADDR_LOOPBACK( byval a as const in6_addr ptr) as long
104+ private function IN6_IS_ADDR_LOOPBACK( byval a as const IN6_ADDR ptr) as long
105105 return -((((((((a->u.Word( 0 ) = 0 ) andalso (a->u.Word( 1 ) = 0 )) andalso (a->u.Word( 2 ) = 0 )) andalso (a->u.Word( 3 ) = 0 )) andalso (a->u.Word( 4 ) = 0 )) andalso (a->u.Word( 5 ) = 0 )) andalso (a->u.Word( 6 ) = 0 )) andalso (a->u.Word( 7 ) = &h0100 ))
106106end function
107107
108108#define IN6_IS_ADDR_MULTICAST(a) clng (-((a)->u.Byte( 0 ) = &hff ))
109109
110- private function IN6_IS_ADDR_LINKLOCAL( byval a as const in6_addr ptr) as long
110+ private function IN6_IS_ADDR_LINKLOCAL( byval a as const IN6_ADDR ptr) as long
111111 return -((a->u.Byte( 0 ) = &hfe ) andalso ((a->u.Byte( 1 ) and &hc0 ) = &h80 ))
112112end function
113113
114- private function IN6_IS_ADDR_SITELOCAL( byval a as const in6_addr ptr) as long
114+ private function IN6_IS_ADDR_SITELOCAL( byval a as const IN6_ADDR ptr) as long
115115 return -((a->u.Byte( 0 ) = &hfe ) andalso ((a->u.Byte( 1 ) and &hc0 ) = &hc0 ))
116116end function
117117
118- private function IN6_IS_ADDR_V4MAPPED( byval a as const in6_addr ptr) as long
118+ private function IN6_IS_ADDR_V4MAPPED( byval a as const IN6_ADDR ptr) as long
119119 return -((((((a->u.Word( 0 ) = 0 ) andalso (a->u.Word( 1 ) = 0 )) andalso (a->u.Word( 2 ) = 0 )) andalso (a->u.Word( 3 ) = 0 )) andalso (a->u.Word( 4 ) = 0 )) andalso (a->u.Word( 5 ) = &hffff ))
120120end function
121121
122- private function IN6_IS_ADDR_V4COMPAT( byval a as const in6_addr ptr) as long
122+ private function IN6_IS_ADDR_V4COMPAT( byval a as const IN6_ADDR ptr) as long
123123 return -(((((((a->u.Word( 0 ) = 0 ) andalso (a->u.Word( 1 ) = 0 )) andalso (a->u.Word( 2 ) = 0 )) andalso (a->u.Word( 3 ) = 0 )) andalso (a->u.Word( 4 ) = 0 )) andalso (a->u.Word( 5 ) = 0 )) andalso ((((a->u.Word( 6 ) = 0 ) andalso (a->u.Byte( 14 ) = 0 )) andalso ((a->u.Byte( 15 ) = 0 ) orelse (a->u.Byte( 15 ) = 1 ))) = 0 ))
124124end function
125125
126- private function IN6_IS_ADDR_MC_NODELOCAL( byval a as const in6_addr ptr) as long
126+ private function IN6_IS_ADDR_MC_NODELOCAL( byval a as const IN6_ADDR ptr) as long
127127 return -(IN6_IS_ADDR_MULTICAST(a) andalso ((a->u.Byte( 1 ) and &hf ) = 1 ))
128128end function
129129
130- private function IN6_IS_ADDR_MC_LINKLOCAL( byval a as const in6_addr ptr) as long
130+ private function IN6_IS_ADDR_MC_LINKLOCAL( byval a as const IN6_ADDR ptr) as long
131131 return -(IN6_IS_ADDR_MULTICAST(a) andalso ((a->u.Byte( 1 ) and &hf ) = 2 ))
132132end function
133133
134- private function IN6_IS_ADDR_MC_SITELOCAL( byval a as const in6_addr ptr) as long
134+ private function IN6_IS_ADDR_MC_SITELOCAL( byval a as const IN6_ADDR ptr) as long
135135 return -(IN6_IS_ADDR_MULTICAST(a) andalso ((a->u.Byte( 1 ) and &hf ) = 5 ))
136136end function
137137
138- private function IN6_IS_ADDR_MC_ORGLOCAL( byval a as const in6_addr ptr) as long
138+ private function IN6_IS_ADDR_MC_ORGLOCAL( byval a as const IN6_ADDR ptr) as long
139139 return -(IN6_IS_ADDR_MULTICAST(a) andalso ((a->u.Byte( 1 ) and &hf ) = 8 ))
140140end function
141141
142- private function IN6_IS_ADDR_MC_GLOBAL( byval a as const in6_addr ptr) as long
142+ private function IN6_IS_ADDR_MC_GLOBAL( byval a as const IN6_ADDR ptr) as long
143143 return -(IN6_IS_ADDR_MULTICAST(a) andalso ((a->u.Byte( 1 ) and &hf ) = &he ))
144144end function
145145
146- private function IN6ADDR_ISANY( byval a as const sockaddr_in6 ptr) as long
146+ private function IN6ADDR_ISANY( byval a as const SOCKADDR_IN6 ptr) as long
147147 return -((a->sin6_family = 23 ) andalso IN6_IS_ADDR_UNSPECIFIED( @a->sin6_addr))
148148end function
149149
150- private function IN6ADDR_ISLOOPBACK( byval a as const sockaddr_in6 ptr) as long
150+ private function IN6ADDR_ISLOOPBACK( byval a as const SOCKADDR_IN6 ptr) as long
151151 return -((a->sin6_family = 23 ) andalso IN6_IS_ADDR_LOOPBACK( @a->sin6_addr))
152152end function
153153
154- private sub IN6_SET_ADDR_UNSPECIFIED( byval a as in6_addr ptr)
155- memset( @a->u.Byte( 0 ), 0 , sizeof(in6_addr ))
154+ private sub IN6_SET_ADDR_UNSPECIFIED( byval a as IN6_ADDR ptr)
155+ memset( @a->u.Byte( 0 ), 0 , sizeof(IN6_ADDR ))
156156end sub
157157
158158private sub IN6_SET_ADDR_LOOPBACK( byval a as IN6_ADDR ptr)
0 commit comments