1.1 --- a/src/devices/emu/emu-net-device.cc Thu Oct 30 15:27:15 2008 -0700
1.2 +++ b/src/devices/emu/emu-net-device.cc Thu Oct 30 15:34:02 2008 -0700
1.3 @@ -850,7 +850,17 @@
1.4 Address
1.5 EmuNetDevice::MakeMulticastAddress (Ipv4Address multicastGroup) const
1.6 {
1.7 - return Mac48Address ("01:00:5e:00:00:00");
1.8 + NS_LOG_FUNCTION (multicastGroup);
1.9 +
1.10 + Mac48Address addr = Mac48Address::GetMulticast (multicastGroup);
1.11 +
1.12 + //
1.13 + // Implicit conversion (operator Address ()) is defined for Mac48Address, so
1.14 + // use it by just returning the EUI-48 address which is automagically converted
1.15 + // to an Address.
1.16 + //
1.17 + NS_LOG_LOGIC ("Multicast address is " << addr);
1.18 + return addr;
1.19 }
1.20
1.21 bool