fw: add strategy notification for Interests dropped by LpReliability
add dropped Interest counter to faces
refs #3823
Change-Id: I9910b66932d74383203e8f3732bb45cade83b972
diff --git a/daemon/face/lp-reliability.hpp b/daemon/face/lp-reliability.hpp
index d1f4622..328edb0 100644
--- a/daemon/face/lp-reliability.hpp
+++ b/daemon/face/lp-reliability.hpp
@@ -67,6 +67,10 @@
LpReliability(const Options& options, GenericLinkService* linkService);
+ /** \brief signals on Interest dropped by reliability system for exceeding allowed number of retx
+ */
+ signal::Signal<LpReliability, Interest> onDroppedInterest;
+
/** \brief set options for reliability
*/
void
@@ -81,9 +85,11 @@
/** \brief observe outgoing fragment(s) of a network packet and store for potential retransmission
* \param frags fragments of network packet
+ * \param pkt encapsulated network packet
+ * \param isInterest whether the network packet is an Interest
*/
void
- handleOutgoing(std::vector<lp::Packet>& frags);
+ handleOutgoing(std::vector<lp::Packet>& frags, lp::Packet&& pkt, bool isInterest);
/** \brief extract and parse all Acks and add Ack for contained Fragment (if any) to AckQueue
* \param pkt incoming LpPacket
@@ -182,8 +188,13 @@
class NetPkt
{
public:
+ NetPkt(lp::Packet&& pkt, bool isInterest);
+
+ public:
std::vector<UnackedFrags::iterator> unackedFrags;
- bool didRetx = false;
+ lp::Packet pkt;
+ bool isInterest;
+ bool didRetx;
};
public: