Browse code

Fix ipv6 compilation on FreeBSD and probably other systems with Kame-derived IPv6 stacks: IN6_IS_ADDR_MULTICAST() doesn't automagically casts its argument to struct in6_addr * there.

Maxim Sobolev authored on 07/07/2004 14:56:49
Showing 1 changed files
... ...
@@ -176,7 +176,7 @@ int is_mcast(struct ip_addr* ip)
176 176
 		return IN_MULTICAST(htonl(ip->u.addr32[0]));
177 177
 #ifdef USE_IPV6
178 178
 	} else if (ip->af==AF_INET6){
179
-		return IN6_IS_ADDR_MULTICAST(ip->u.addr);
179
+		return IN6_IS_ADDR_MULTICAST((struct in6_addr *)ip->u.addr);
180 180
 #endif /* USE_IPV6 */
181 181
 	} else {
182 182
 		LOG(L_ERR, "ERROR: is_mcast: Unsupported protocol family\n");