From 3e6a221126fc526bf9d56c6d27ba8a229e9deb47 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Tue, 8 Apr 2008 23:10:11 -0700 Subject: [PATCH] some additional debugging for addressing conflicts --- src/node/ipv4-address-generator.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/node/ipv4-address-generator.cc b/src/node/ipv4-address-generator.cc index eb24cb372..292407223 100644 --- a/src/node/ipv4-address-generator.cc +++ b/src/node/ipv4-address-generator.cc @@ -277,11 +277,11 @@ Ipv4AddressGeneratorImpl::AddAllocated (const Ipv4Address address) // 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 @@ Ipv4AddressGeneratorImpl::AddAllocated (const Ipv4Address address) 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; }