20 #include "ns3/dot11s-installer.h"
21 #include "ns3/peer-management-protocol.h"
22 #include "ns3/hwmp-protocol.h"
23 #include "ns3/wifi-net-device.h"
24 #include "ns3/mesh-wifi-interface-mac.h"
27 using namespace dot11s;
28 NS_OBJECT_ENSURE_REGISTERED (Dot11sStack);
34 .AddConstructor<Dot11sStack> ()
35 .AddAttribute (
"Root",
36 "The MAC address of root mesh point.",
38 MakeMac48AddressAccessor (&Dot11sStack::m_root),
39 MakeMac48AddressChecker ());
58 pmp->SetMeshId (
"mesh");
59 bool install_ok = pmp->Install (mp);
66 install_ok = hwmp->Install (mp);
71 if (mp->GetAddress () == m_root)
77 pmp->SetPeerLinkStatusCallback (
MakeCallback (&HwmpProtocol::PeerLinkStatus, PeekPointer (hwmp)));
86 std::vector<Ptr<NetDevice> > ifaces = mp->GetInterfaces ();
87 for (std::vector<
Ptr<NetDevice> >::const_iterator i = ifaces.begin (); i != ifaces.end (); ++i)
108 std::vector<Ptr<NetDevice> > ifaces = mp->GetInterfaces ();
109 for (std::vector<
Ptr<NetDevice> >::const_iterator i = ifaces.begin (); i != ifaces.end (); ++i)
smart pointer class similar to boost::intrusive_ptr
#define NS_ASSERT(condition)
std::vector< Mac48Address > GetPeers(uint32_t interface) const
Get list of active peers of my given interface.
Hybrid wireless mesh protocol – a routing protocol of IEEE 802.11s draft.
void Report(const Ptr< MeshPointDevice > mp, std::ostream &)
Iterate through the referenced devices and protocols and print their statistics.
Hold together all Wifi-related objects.This class holds together ns3::WifiChannel, ns3::WifiPhy, ns3::WifiMac, and, ns3::WifiRemoteStationManager.
Callback< R > MakeCallback(R(T::*memPtr)(void), OBJ objPtr)
hold objects of type ns3::Mac48Address
static TypeId GetTypeId()
void ResetStats(const Ptr< MeshPointDevice > mp)
Reset the statistics on the referenced devices and protocols.
bool InstallStack(Ptr< MeshPointDevice > mp)
Install an 802.11s stack.
a base class which provides memory management and object aggregation
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Basic MAC of mesh point Wi-Fi interface. Its function is extendable through plugins mechanism...
802.11s Peer Management Protocol model