clients: Change iterative-query-controller to use Link
Change-Id: I3b4fe73a467fb38c4fcde87481d1f84ec19c16c0
diff --git a/src/clients/query.cpp b/src/clients/query.cpp
index 4e7621b..9853672 100644
--- a/src/clients/query.cpp
+++ b/src/clients/query.cpp
@@ -47,6 +47,13 @@
m_zone = zone;
+ if (interest.hasLink()) {
+ m_link = interest.getLink().wireEncode();
+ } else {
+ m_link = Block();
+ }
+
+
size_t len = zone.size();
m_queryType = interest.getName().get(len);
@@ -64,7 +71,14 @@
.append(this->m_rrLabel)
.append(this->m_rrType);
- return Interest(name, m_interestLifetime);
+ Interest interest;
+ interest.setName(name);
+ interest.setInterestLifetime(m_interestLifetime);
+ if (m_link.hasWire()) {
+ interest.setLink(m_link);
+ }
+
+ return interest;
}
std::ostream&