diff -r f577cc35732a src/netanim/model/animation-interface.cc --- a/src/netanim/model/animation-interface.cc Sun Oct 02 04:38:54 2016 +0200 +++ b/src/netanim/model/animation-interface.cc Sat Oct 01 22:33:59 2016 -0700 @@ -42,6 +42,7 @@ #include "ns3/wimax-mac-header.h" #include "ns3/wifi-net-device.h" #include "ns3/wifi-mac.h" +#include "ns3/wave-net-device.h" #include "ns3/constant-position-mobility-model.h" #include "ns3/lte-ue-phy.h" #include "ns3/lte-enb-phy.h" @@ -778,13 +779,14 @@ AnimPacketInfo pktInfo (ndev, Simulator::Now ()); AddPendingPacket (protocolType, gAnimUid, pktInfo); - Ptr netDevice = DynamicCast (ndev); - if (netDevice) + Ptr wifiNetDevice = DynamicCast (ndev); + Ptr waveNetDevice = DynamicCast (ndev); + if (wifiNetDevice || waveNetDevice) { - Mac48Address nodeAddr = netDevice->GetMac ()->GetAddress (); + Mac48Address nodeAddr = Mac48Address::ConvertFrom (ndev->GetAddress ()); + Ptr n = wifiNetDevice->GetNode (); std::ostringstream oss; oss << nodeAddr; - Ptr n = netDevice->GetNode (); NS_ASSERT (n); m_macToNodeIdMap[oss.str ()] = n->GetId (); NS_LOG_INFO ("Added Mac" << oss.str () << " node:" <