src/internet-stack/ipv4-l3-protocol.cc
changeset 4379 44c7757fb216
parent 4377 2a05a47dba22
parent 4366 1c3138bce75e
child 4472 e20a31541404
equal deleted inserted replaced
4378:3ad10f8db106 4379:44c7757fb216
   148 
   148 
   149 void 
   149 void 
   150 Ipv4L3Protocol::DoDispose (void)
   150 Ipv4L3Protocol::DoDispose (void)
   151 {
   151 {
   152   NS_LOG_FUNCTION (this);
   152   NS_LOG_FUNCTION (this);
   153   for (L4List_t::iterator i = m_protocols.begin(); i != m_protocols.end(); ++i)
   153  
       
   154   for (SocketList::iterator i = m_sockets.begin (); i != m_sockets.end (); ++i)
       
   155     {
       
   156       *i = 0;
       
   157     }
       
   158 
       
   159  for (L4List_t::iterator i = m_protocols.begin(); i != m_protocols.end(); ++i)
   154     {
   160     {
   155       *i = 0;
   161       *i = 0;
   156     }
   162     }
   157   m_protocols.clear ();
   163   m_protocols.clear ();
   158 
   164