peek: add --app-params and --app-params-file options
Change-Id: Ic1afb118d2e1a58d99d046e072a9df439e0020b3
diff --git a/tools/peek/ndnpeek/ndnpeek.cpp b/tools/peek/ndnpeek/ndnpeek.cpp
index ff7f7a0..7bcb137 100644
--- a/tools/peek/ndnpeek/ndnpeek.cpp
+++ b/tools/peek/ndnpeek/ndnpeek.cpp
@@ -24,6 +24,7 @@
*
* @author Jerald Paul Abraham <jeraldabraham@email.arizona.edu>
* @author Zhuo Li <zhuoli@email.arizona.edu>
+ * @author Davide Pesavento <davidepesa@gmail.com>
*/
#include "ndnpeek.hpp"
@@ -66,6 +67,9 @@
if (m_options.link) {
interest.setForwardingHint(m_options.link->getDelegationList());
}
+ if (m_options.applicationParameters) {
+ interest.setApplicationParameters(m_options.applicationParameters);
+ }
if (m_options.isVerbose) {
std::cerr << "INTEREST: " << interest << std::endl;