use Ptr<> everywhere Object or NsUnknown are used
This commit is contained in:
1 parent
7102517ca9
commit
e70e445975
53 files changed
+379
-518
No files matched your search
@@ -43,9 +43,8 @@ Ipv4LoopbackInterface::DoCreateTraceResolver (TraceContext const &context)
|
||||
void
|
||||
Ipv4LoopbackInterface::SendTo (Packet packet, Ipv4Address dest)
|
||||
{
|
||||
IIpv4Private *ipv4 = m_node->QueryInterface<IIpv4Private> (IIpv4Private::iid);
|
||||
ipv4->Receive (packet, PeekDevice ());
|
||||
ipv4->Unref ();
|
||||
Ptr<IIpv4Private> ipv4 = m_node->QueryInterface<IIpv4Private> (IIpv4Private::iid);
|
||||
ipv4->Receive (packet, GetDevice ());
|
||||
}
|
||||
|
||||
}//namespace ns3
|
||||
Reference in new issue
Block a user