12#include "ns3/nstime.h"
13#include "ns3/pointer.h"
14#include "ns3/simulator.h"
15#include "ns3/string.h"
27 TypeId(
"ns3::SixLowPanSimpleFlooding")
29 .SetGroupName(
"SixLowPan")
31 .AddAttribute(
"MeshUnderJitter",
32 "The jitter (in ms) before each mesh-under rebroadcast. "
33 "Same name and default as the historical SixLowPanNetDevice "
34 "attribute, preserving backward-compatible behavior.",
35 StringValue(
"ns3::UniformRandomVariable[Min=0.0|Max=10.0]"),
a polymophic address class
Smart pointer class similar to boost::intrusive_ptr.
static EventId Schedule(const Time &delay, FUNC f, Ts &&... args)
Schedule an event to expire after delay.
Callback< void, Ptr< Packet > > ForwardCallback
Callback used by a policy to forward a packet.
SixLowPanMeshUnderRouting()
void DoDispose() override
Destructor implementation.
Default mesh-under forwarding policy: unconditional rebroadcast with jitter.
SixLowPanSimpleFlooding()
~SixLowPanSimpleFlooding() override
static TypeId GetTypeId()
Get the type ID.
int64_t AssignStreams(int64_t stream) override
Assign a fixed random stream number to RNGs used by the policy.
void OnPacketForward(Ptr< Packet > packet, const Address &originator, uint8_t seqNo, uint8_t hopsLeft, ForwardCallback forwardCb) override
Decide whether (and when) to forward a new mesh-under packet.
Ptr< RandomVariableStream > m_jitter
Random variable (in milliseconds) used to schedule each rebroadcast.
void DoDispose() override
Destructor implementation.
Hold variables of type string.
Simulation virtual time values and global simulation resolution.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Ptr< const AttributeAccessor > MakePointerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
Ptr< AttributeChecker > MakePointerChecker()
Create a PointerChecker for a type.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Time MilliSeconds(uint64_t value)
Construct a Time in the indicated unit.
Every class exported by the ns3 library is enclosed in the ns3 namespace.