face+mgmt: allow congestion marking parameters to be enabled and set
refs #4465
Change-Id: I9d49135ab32bacb2885b70031c573f7c8709ac1f
diff --git a/daemon/face/channel.hpp b/daemon/face/channel.hpp
index 1a5ed90..cdb7078 100644
--- a/daemon/face/channel.hpp
+++ b/daemon/face/channel.hpp
@@ -29,6 +29,8 @@
#include "channel-log.hpp"
#include "face.hpp"
+#include <boost/logic/tribool.hpp>
+
namespace nfd {
namespace face {
@@ -90,13 +92,17 @@
: persistency(ndn::nfd::FACE_PERSISTENCY_PERSISTENT)
, wantLocalFields(false)
, wantLpReliability(false)
+ , wantCongestionMarking(boost::logic::indeterminate)
{
}
public:
ndn::nfd::FacePersistency persistency;
+ ndn::optional<time::nanoseconds> baseCongestionMarkingInterval;
+ ndn::optional<uint64_t> defaultCongestionThreshold;
bool wantLocalFields;
bool wantLpReliability;
+ boost::logic::tribool wantCongestionMarking;
};
/** \brief invokes a callback when the face is closed