mgmt: add congestion marking parameters
refs #4465
Change-Id: I5090d93b59fe3fc425e5ce529c4f66b8211155dd
diff --git a/src/mgmt/nfd/face-status.hpp b/src/mgmt/nfd/face-status.hpp
index aa7accb..7835dba 100644
--- a/src/mgmt/nfd/face-status.hpp
+++ b/src/mgmt/nfd/face-status.hpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2013-2017 Regents of the University of California.
+ * Copyright (c) 2013-2018 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@@ -77,6 +77,28 @@
FaceStatus&
unsetExpirationPeriod();
+ time::nanoseconds
+ getBaseCongestionMarkingInterval() const
+ {
+ return m_baseCongestionMarkingInterval;
+ }
+
+ FaceStatus&
+ setBaseCongestionMarkingInterval(time::nanoseconds interval);
+
+ /** \brief get default congestion threshold (measured in bytes)
+ */
+ uint64_t
+ getDefaultCongestionThreshold() const
+ {
+ return m_defaultCongestionThreshold;
+ }
+
+ /** \brief set default congestion threshold (measured in bytes)
+ */
+ FaceStatus&
+ setDefaultCongestionThreshold(uint64_t threshold);
+
uint64_t
getNInInterests() const
{
@@ -151,6 +173,8 @@
private:
optional<time::milliseconds> m_expirationPeriod;
+ time::nanoseconds m_baseCongestionMarkingInterval;
+ uint64_t m_defaultCongestionThreshold;
uint64_t m_nInInterests;
uint64_t m_nInData;
uint64_t m_nInNacks;