... | ... |
@@ -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"); |