implement properly the refcounting rules for the capability getters
This commit is contained in:
1 parent
e5d10e4bf7
commit
77a1488dd2
13 files changed
+57
-27
No files matched your search
@@ -47,7 +47,9 @@ Ipv4LoopbackInterface::DoCreateTraceResolver (TraceContext const &context)
|
||||
void
|
||||
Ipv4LoopbackInterface::SendTo (Packet packet, Ipv4Address dest)
|
||||
{
|
||||
m_node->GetIpv4 ()->Receive (packet, PeekDevice ());
|
||||
Ipv4 *ipv4 = m_node->GetIpv4 ();
|
||||
ipv4->Receive (packet, PeekDevice ());
|
||||
ipv4->Unref ();
|
||||
}
|
||||
|
||||
}//namespace ns3
|
||||
Reference in new issue
Block a user