Add NACK processing
diff --git a/model/ccnx-face.h b/model/ccnx-face.h
index 132ef36..397a5b0 100644
--- a/model/ccnx-face.h
+++ b/model/ccnx-face.h
@@ -175,6 +175,9 @@
*/
inline void
LeakBucket (const Time &interval);
+
+ inline void
+ LeakBucketByOnePacket ();
/**
* \brief Compare two faces. Only two faces on the same node could be compared.
@@ -252,6 +255,11 @@
m_bucket -= std::max (0.0, m_bucket-leak);
}
+void
+CcnxFace::LeakBucketByOnePacket ()
+{
+ m_bucket -= std::max (0.0, m_bucket-1.0);
+}
} // namespace ns3