face: Add ability to specify RIB flags for setInterestFilter and registerPrefix

Change-Id: I0976c74856970e0d68cbf46956cfa8d494f064d5
Refs: #1842
diff --git a/src/detail/face-impl.hpp b/src/detail/face-impl.hpp
index 187d7fa..2d23611 100644
--- a/src/detail/face-impl.hpp
+++ b/src/detail/face-impl.hpp
@@ -188,6 +188,7 @@
                  const shared_ptr<InterestFilterRecord>& filter,
                  const RegisterPrefixSuccessCallback& onSuccess,
                  const RegisterPrefixFailureCallback& onFailure,
+                 uint64_t flags,
                  const SignatureGenerator& signatureGenerator)
   {
     using namespace nfd;
@@ -199,19 +200,21 @@
        const SignatureGenerator&,
        const time::milliseconds&);
 
+    ControlParameters parameters;
+    parameters.setName(prefix);
+
     Registrator registrator, unregistrator;
     if (!m_face.m_isDirectNfdFibManagementRequested) {
       registrator = static_cast<Registrator>(&Controller::start<RibRegisterCommand>);
       unregistrator = static_cast<Registrator>(&Controller::start<RibUnregisterCommand>);
+
+      parameters.setFlags(flags);
     }
     else {
       registrator = static_cast<Registrator>(&Controller::start<FibAddNextHopCommand>);
       unregistrator = static_cast<Registrator>(&Controller::start<FibRemoveNextHopCommand>);
     }
 
-    ControlParameters parameters;
-    parameters.setName(prefix);
-
     RegisteredPrefix::Unregistrator bindedUnregistrator =
       bind(unregistrator, m_face.m_nfdController, parameters, _1, _2,
            signatureGenerator,