From 7ada490b2924ab46b19692a38ec21d91e2c94a76 Mon Sep 17 00:00:00 2001 From: Saswat K Mishra Date: Sun, 14 Feb 2016 17:59:04 +0530 Subject: [PATCH] fixed some places where reachable timer was being activated for permanent entries. this could've lead to consquent timeout of the timer upon which entry's status would've been marked to stale. --- src/internet/model/icmpv6-l4-protocol.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/internet/model/icmpv6-l4-protocol.cc b/src/internet/model/icmpv6-l4-protocol.cc index 37a4840..33cc12a 100644 --- a/src/internet/model/icmpv6-l4-protocol.cc +++ b/src/internet/model/icmpv6-l4-protocol.cc @@ -412,7 +412,10 @@ void Icmpv6L4Protocol::ReceiveLLA (Icmpv6OptionLinkLayerAddress lla, Ipv6Address cache->GetInterface ()->Send (*it, src); } } - entry->StartReachableTimer (); + if (!entry->IsPermanent) + { + entry->StartReachableTimer (); + } } } } @@ -724,7 +727,10 @@ void Icmpv6L4Protocol::HandleNA (Ptr packet, Ipv6Address const &src, Ipv entry->MarkReachable (lla.GetAddress ()); } } - entry->StartReachableTimer (); + if (!entry->IsPermanent ()) + { + entry->StartReachableTimer (); + } } else if (lla.GetAddress () != entry->GetMacAddress ()) { -- 2.1.4