cleanup raw sockets on Ipv4L3Protocol shutdown

This commit is contained in:
Craig Dowell
2009-04-17 10:15:11 -07:00
parent e2983b9958
commit e22cd479c4

View File

@@ -150,7 +150,13 @@ void
Ipv4L3Protocol::DoDispose (void)
{
NS_LOG_FUNCTION (this);
for (L4List_t::iterator i = m_protocols.begin(); i != m_protocols.end(); ++i)
for (SocketList::iterator i = m_sockets.begin (); i != m_sockets.end (); ++i)
{
*i = 0;
}
for (L4List_t::iterator i = m_protocols.begin(); i != m_protocols.end(); ++i)
{
*i = 0;
}