Module: sip-router
Branch: ser_core_cvs
Commit: 8a2ca52622339af82946df172a3300d0b38297d7
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8a2ca52…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Tue Dec 16 14:34:04 2008 +0000
core: fix build on Darwin
Author: Alfred Heggestad <aeh(a)db.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
---
ip_addr.c | 2 +-
ip_addr.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ip_addr.c b/ip_addr.c
index e17a69d..3efdeb9 100644
--- a/ip_addr.c
+++ b/ip_addr.c
@@ -190,7 +190,7 @@ int is_mcast(struct ip_addr* ip)
return IN_MULTICAST(htonl(ip->u.addr32[0]));
#ifdef USE_IPV6
} else if (ip->af==AF_INET6){
- return IN6_IS_ADDR_MULTICAST(&ip->u.addr32[0]);
+ return IN6_IS_ADDR_MULTICAST((struct in6_addr*)ip->u.addr32);
#endif /* USE_IPV6 */
} else {
LOG(L_ERR, "ERROR: is_mcast: Unsupported protocol family\n");
diff --git a/ip_addr.h b/ip_addr.h
index 6849a87..fdaf6f3 100644
--- a/ip_addr.h
+++ b/ip_addr.h
@@ -242,7 +242,7 @@ inline static int ip_addr_loopback(struct ip_addr* ip)
return ip->u.addr32[0]==htonl(INADDR_LOOPBACK);
#ifdef USE_IPV6
else if (ip->af==AF_INET6)
- return IN6_IS_ADDR_LOOPBACK(&ip->u.addr32[0]);
+ return IN6_IS_ADDR_LOOPBACK((struct in6_addr*)ip->u.addr32);
#endif /* USE_IPV6 */
return 0;
}