bmf: firm up IsMulticast
authorFerry Huberts <f.huberts@mindef.nl>
Tue, 6 Dec 2011 12:08:47 +0000 (13:08 +0100)
committerFerry Huberts <f.huberts@mindef.nl>
Tue, 6 Dec 2011 12:10:54 +0000 (13:10 +0100)
Signed-off-by: Ferry Huberts <f.huberts@mindef.nl>
lib/bmf/src/Address.c

index ed3ac95..67e7499 100644 (file)
@@ -100,7 +100,7 @@ int IsMulticast(union olsr_ip_addr* ipAddress)
 {
   assert(ipAddress != NULL);
 
-  return (ntohl(ipAddress->v4.s_addr) & 0xF0000000) == 0xE0000000;
+  return IN_MULTICAST(ntohl(ipAddress->v4.s_addr));
 }
 
 /* -------------------------------------------------------------------------