Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(720)

Unified Diff: src/aodv/model/aodv-routing-protocol.h

Issue 318610043: Add Tx and Rx Packet callbacks to AODV and DSDV (Bug #2345)
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/aodv/model/aodv-routing-protocol.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/aodv/model/aodv-routing-protocol.h
===================================================================
--- a/src/aodv/model/aodv-routing-protocol.h
+++ b/src/aodv/model/aodv-routing-protocol.h
@@ -97,6 +97,13 @@
*/
int64_t AssignStreams (int64_t stream);
+ /**
+ * TracedCallback signature for Packet transmit and receive events.
+ *
+ * \param [in] packet
+ */
+ typedef void (* PacketTxRxTracedCallback)(Ptr<const Packet>packet);
+
protected:
virtual void DoInitialize (void);
private:
@@ -274,6 +281,12 @@
Ptr<UniformRandomVariable> m_uniformRandomVariable;
/// Keep track of the last bcast time
Time m_lastBcastTime;
+
+ /// Rx packet trace.
+ TracedCallback <Ptr<const Packet>> m_rxPacketTrace;
+
+ /// Tx packet trace.
+ TracedCallback <Ptr<const Packet>> m_txPacketTrace;
};
}
« no previous file with comments | « no previous file | src/aodv/model/aodv-routing-protocol.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b