--- a/src/applications/model/radvd.h Mon Aug 13 10:46:09 2012 -0700
+++ b/src/applications/model/radvd.h Mon Aug 13 16:08:13 2012 -0700
@@ -27,6 +27,7 @@
#include "ns3/application.h"
#include "ns3/socket.h"
+#include "ns3/random-variable-stream.h"
#include "radvd-interface.h"
@@ -73,6 +74,16 @@
*/
void AddConfiguration (Ptr<RadvdInterface> routerInterface);
+ /**
+ * Assign a fixed random variable stream number to the random variables
+ * used by this model. Return the number of streams (possibly zero) that
+ * have been assigned.
+ *
+ * \param stream first stream index to use
+ * \return the number of stream indices assigned by this model
+ */
+ int64_t AssignStreams (int64_t stream);
+
protected:
/**
* \brief Dispose the instance.
@@ -136,6 +147,11 @@
* \brief Event ID map.
*/
EventIdMap m_eventIds;
+
+ /**
+ * \brief Variable to provide jitter in advertisement interval
+ */
+ Ptr<UniformRandomVariable> m_jitter;
};
} /* namespace ns3 */