some additional debugging for addressing conflicts
authorTom Henderson <tomh@tomh.org>
Tue, 08 Apr 2008 23:10:11 -0700
changeset 2894 a65404754cb7
parent 2893 ed9121115870
child 2895 f8523d79a0b7
some additional debugging for addressing conflicts
src/node/ipv4-address-generator.cc
--- a/src/node/ipv4-address-generator.cc	Mon Apr 07 21:39:40 2008 -0700
+++ b/src/node/ipv4-address-generator.cc	Tue Apr 08 23:10:11 2008 -0700
@@ -277,11 +277,11 @@
 //
       if (addr >= (*i).addrLow && addr <= (*i).addrHigh)
         {
-          NS_LOG_LOGIC ("Ipv4AddressGeneratorImpl::Add(): Address Collision"); 
+          NS_LOG_LOGIC ("Ipv4AddressGeneratorImpl::Add(): Address Collision: " << Ipv4Address (addr)); 
           if (!m_test) 
             {
               NS_ASSERT_MSG (0, 
-                "Ipv4AddressGeneratorImpl::Add(): Address Collision"); 
+                "Ipv4AddressGeneratorImpl::Add(): Address Collision: " << Ipv4Address (addr)); 
             }
           return false;
        }
@@ -308,11 +308,12 @@
               if (addr == (*j).addrLow)
                 {
                   NS_LOG_LOGIC ("Ipv4AddressGeneratorImpl::Add(): "
-                    "Address Collision"); 
+                    "Address Collision: " << Ipv4Address (addr)); 
                   if (!m_test)
                     {
                       NS_ASSERT_MSG (0, 
-                        "Ipv4AddressGeneratorImpl::Add(): Address Collision");
+                        "Ipv4AddressGeneratorImpl::Add(): "
+                     "Address Collision: " << Ipv4Address (addr));
                     }
                   return false;
                 }