model+apps+utils+examples+ci+docs: Update code for changes in ns-2.23
- Replace removed RandomVariable with RandomVariableStream
- Replace deprecated usages of AddTraceSource
- Update changed LogComponent interface
ci: This commit also integrates a script for Jenkins and Travis CI to
clone NS-3 and pybindgen repositories, so the code can be built.
docs: Update to reflect new home of ndnSIM and related sources
Change-Id: Ic14e1269bf15366b0041fd670c577053b6704dc7
Refs: #3122, #3123
diff --git a/model/ndn-l3-protocol.cpp b/model/ndn-l3-protocol.cpp
index dd9f4dc..d45e84a 100644
--- a/model/ndn-l3-protocol.cpp
+++ b/model/ndn-l3-protocol.cpp
@@ -28,7 +28,6 @@
#include "ns3/object-vector.h"
#include "ns3/pointer.h"
#include "ns3/simulator.h"
-#include "ns3/random-variable.h"
#include "ndn-face.hpp"
@@ -70,21 +69,27 @@
.AddConstructor<L3Protocol>()
.AddTraceSource("OutInterests", "OutInterests",
- MakeTraceSourceAccessor(&L3Protocol::m_outInterests))
+ MakeTraceSourceAccessor(&L3Protocol::m_outInterests),
+ "ns3::ndn::L3Protocol::InterestTraceCallback")
.AddTraceSource("InInterests", "InInterests",
- MakeTraceSourceAccessor(&L3Protocol::m_inInterests))
+ MakeTraceSourceAccessor(&L3Protocol::m_inInterests),
+ "ns3::ndn::L3Protocol::InterestTraceCallback")
////////////////////////////////////////////////////////////////////
- .AddTraceSource("OutData", "OutData", MakeTraceSourceAccessor(&L3Protocol::m_outData))
- .AddTraceSource("InData", "InData", MakeTraceSourceAccessor(&L3Protocol::m_inData))
+ .AddTraceSource("OutData", "OutData", MakeTraceSourceAccessor(&L3Protocol::m_outData),
+ "ns3::ndn::L3Protocol::DataTraceCallback")
+ .AddTraceSource("InData", "InData", MakeTraceSourceAccessor(&L3Protocol::m_inData),
+ "ns3::ndn::L3Protocol::DataTraceCallback")
////////////////////////////////////////////////////////////////////
.AddTraceSource("SatisfiedInterests", "SatisfiedInterests",
- MakeTraceSourceAccessor(&L3Protocol::m_satisfiedInterests))
+ MakeTraceSourceAccessor(&L3Protocol::m_satisfiedInterests),
+ "ns3::ndn::L3Protocol::SatisfiedInterestsCallback")
.AddTraceSource("TimedOutInterests", "TimedOutInterests",
- MakeTraceSourceAccessor(&L3Protocol::m_timedOutInterests))
+ MakeTraceSourceAccessor(&L3Protocol::m_timedOutInterests),
+ "ns3::ndn::L3Protocol::TimedOutInterestsCallback")
;
return tid;
}