NetAnim:Some RPs need non-null packets for RouteOutput

This commit is contained in:
John Abraham
2013-05-24 08:09:18 -07:00
parent 78b9cd962b
commit e220b67e28

View File

@@ -153,7 +153,7 @@ void AnimationInterface::RecursiveIpv4RoutePathSearch (std::string from, std::st
NS_LOG_WARN ("Routing protocol object not found");
return;
}
Ptr<Packet> pkt = 0;
Ptr<Packet> pkt = Create<Packet> ();
Ipv4Header header;
header.SetDestination (Ipv4Address (to.c_str ()));
Socket::SocketErrno sockerr;