management: Fixing regression with ndnd prefix/face registration
The previous commit tried to introduce a cheat to obtain ``ndndid`` from
the name of the returned Data packet, requested using
'/%C1.M.S.localhost/%C1.M.SRV/ndnd/KEY'. The problem was that the
component in the Data packet contained an extra prefix (%C1.M.K%00),
which should have been stripped out.
Change-Id: I36ef2e566ea155dc86cd13412fc26cf7669dbf24
diff --git a/src/name.hpp b/src/name.hpp
index d58e485..0bfbdba 100644
--- a/src/name.hpp
+++ b/src/name.hpp
@@ -129,6 +129,18 @@
return *this;
}
+ /**
+ * Append a new component, copying from value of length valueLength.
+ * @return This name so that you can chain calls to append.
+ */
+ template<class InputIterator>
+ Name&
+ append(InputIterator begin, InputIterator end)
+ {
+ m_nameBlock.push_back(Component(begin, end));
+ return *this;
+ }
+
// /**
// * Append a new component, copying from value.
// * @return This name so that you can chain calls to append.