Adding local prefix updating
diff --git a/src/contactpanel.cpp b/src/contactpanel.cpp
index 1fc62aa..e31602d 100644
--- a/src/contactpanel.cpp
+++ b/src/contactpanel.cpp
@@ -226,7 +226,7 @@
 }
 
 void
-ContactPanel::setLocalPrefix()
+ContactPanel::setLocalPrefix(int retry)
 {
   Ptr<Interest> interest = Ptr<Interest>(new Interest(Name("/local/ndn/prefix")));
   interest->setChildSelector(Interest::CHILD_RIGHT);
@@ -237,7 +237,8 @@
                                                   boost::bind(&ContactPanel::onLocalPrefixTimeout,
                                                               this,
                                                               _1, 
-                                                              _2),
+                                                              _2,
+                                                              10),
                                                   boost::bind(&ContactPanel::onLocalPrefixVerified,
                                                               this,
                                                               _1)));
@@ -256,10 +257,10 @@
 }
 
 void
-ContactPanel::onLocalPrefixTimeout(Ptr<Closure> closure, Ptr<Interest> interest)
+ContactPanel::onLocalPrefixTimeout(Ptr<Closure> closure, Ptr<Interest> interest, int retry)
 { 
-  string randomSuffix = getRandomString();
-  m_localPrefix = Name("/private/local"); 
+  if(retry > 0)
+    setLocalPrefix(retry - 1);
 }
 
 void