Fix bug 68. Implement IsMulticast

This commit is contained in:
Craig Dowell committed 2007-08-14 12:00:03 -07:00
1 parent a8615eb667
commit 3ce31e418b
1 file changed
+5 -2
+5 -2
View File
@@ -171,8 +171,11 @@ Ipv4Address::IsBroadcast (void) const
bool
Ipv4Address::IsMulticast (void) const
{
// XXX
return false;
//
// Multicast addresses are defined as ranging from 224.0.0.0 through
// 239.255.255.255 (which is E0000000 through EFFFFFFF in hex).
//
return (m_address >= 0xe0000000 && m_address <= 0xefffffff);
}
uint32_t