Bug 2148 - Ipv6Interface::SetUp doesn't re-create the Link-Local addresses
authorTommaso Pecorella <tommaso.pecorella@unifi.it>
Fri, 24 Jul 2015 08:59:57 +0200
changeset 11542 457d8732ca24
parent 11541 f53094838f22
child 11543 ec5dd7666b77
Bug 2148 - Ipv6Interface::SetUp doesn't re-create the Link-Local addresses
RELEASE_NOTES
src/internet/model/ipv6-interface.cc
--- a/RELEASE_NOTES	Sun Jul 26 14:01:43 2015 +0100
+++ b/RELEASE_NOTES	Fri Jul 24 08:59:57 2015 +0200
@@ -37,6 +37,7 @@
 - Bug 2136 - The usage of tid in wifi and wave module shall be "if (tid > 7)" rather than "if (tid >= 7)"
 - Bug 2132 - TCP RST packets were incorrectly formatted if no endpoints matched
 - Bug 2138 - SimpleNetDevice could send overlapped packets
+- Bug 2148 - Ipv6Interface::SetUp doesn't re-create the Link-Local addresses
 - Bug 2153 - Incorrect power limits in wifi power control algorithms
 - Bug 2154 - Incorrect power calculation in wifi power adaptation examples
 - Bug 2156 - Duplicate packets when using two level aggregation
--- a/src/internet/model/ipv6-interface.cc	Sun Jul 26 14:01:43 2015 +0100
+++ b/src/internet/model/ipv6-interface.cc	Fri Jul 24 08:59:57 2015 +0200
@@ -121,7 +121,7 @@
     {
       icmpv6 = proto->GetObject <Icmpv6L4Protocol> ();
     }
-  if (icmpv6)
+  if (icmpv6 && !m_ndCache)
     {
       m_ndCache = icmpv6->CreateCache (m_device, this);
     }
@@ -179,6 +179,7 @@
     {
       return;
     }
+  DoSetup ();
   m_ifup = true;
 }