tools: fix test-nexthopfaceid-consumer compilation errors
Change-Id: I605265ce609b1cde85347365466a4d57d5a26fc0
diff --git a/.gitignore b/.gitignore
index c97141c..986f9d6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,8 @@
*.pyc
-*/logs
-test_interest_loop/keys
-logs
-temp
+*.pyo
+/install_helpers/tools/generate-link-object
+/install_helpers/tools/test-nack-consumer
+/install_helpers/tools/test-nexthopfaceid-consumer
+/temp/
+/test_interest_loop/keys/
+logs/
diff --git a/install_helpers/tools/test-nexthopfaceid-consumer.cpp b/install_helpers/tools/test-nexthopfaceid-consumer.cpp
index 90ba6b6..7f5ade4 100644
--- a/install_helpers/tools/test-nexthopfaceid-consumer.cpp
+++ b/install_helpers/tools/test-nexthopfaceid-consumer.cpp
@@ -6,6 +6,8 @@
* Based on ndn-cxx example consumer
*/
+#include <ndn-cxx/face.hpp>
+#include <ndn-cxx/lp/nack.hpp>
#include <ndn-cxx/lp/tags.hpp>
#include <ndn-cxx/mgmt/nfd/controller.hpp>
@@ -23,12 +25,13 @@
nfd::ControlParameters params;
params.setFlagBit(nfd::BIT_LOCAL_FIELDS_ENABLED, enableLocalFields);
- ndn::nfd::Controller controller(m_face, m_keyChain);
- controller.start<ndn::nfd::FaceUpdateCommand>(params,
- nullptr,
- [] (const ndn::nfd::ControlResponse& resp) {
- throw std::runtime_error("Unable to toggle local fields");
- });
+ nfd::Controller controller(m_face, m_keyChain);
+ controller.start<nfd::FaceUpdateCommand>(params,
+ nullptr,
+ [] (const nfd::ControlResponse& resp) {
+ BOOST_THROW_EXCEPTION(
+ std::runtime_error("Unable to toggle local fields"));
+ });
m_face.processEvents();
// Now, send test case Interest