21 #include "ns3/packet.h"
22 #include "ns3/simulator.h"
23 #include "ns3/mgt-headers.h"
24 #include "ns3/dot11s-mac-header.h"
25 #include "ns3/hwmp-rtable.h"
26 #include "ns3/peer-link-frame.h"
27 #include "ns3/ie-dot11s-peer-management.h"
36 TestCase (
"Dot11sMeshHeader roundtrip serialization")
91 virtual void DoRun ();
123 dst (
"01:00:00:01:00:01"),
124 hop (
"01:00:00:01:00:03"),
128 expire (Seconds (10))
175 for (std::vector<Mac48Address>::const_iterator i =
precursors.begin (); i !=
precursors.end (); i++)
188 for (
unsigned i = 0; i <
precursors.size (); i++)
198 table = CreateObject<HwmpRtable> ();
214 TestCase (
"PeerLinkFrames (open, confirm, close) unit tests")
217 virtual void DoRun ();
280 :
TestSuite (
"devices-mesh-dot11s", UNIT)
uint32_t RemoveHeader(Header &header)
Deserialize and remove the header from the internal buffer.
keep track of time values and allow control of global simulation resolution
Unit test for HwmpRtable.
802.11s Peer link management frame
void SetPlinkFrameSubtype(uint8_t subtype)
Route lookup result, return type of LookupXXX methods.
std::vector< Mac48Address > precursors
static void Run(void)
Run the simulation until one of:
static EventId Schedule(Time const &time, MEM mem_ptr, OBJ obj)
Schedule an event to expire at the relative time "time" is reached.
void TestLookup()
Test Add apth and lookup path;.
a IEEE 802.11s Mesh ID 7.3.287 of 802.11s draft 3.0
virtual void DoRun()
Implementation to actually run this TestCase.
std::vector< std::pair< uint32_t, Mac48Address > > PrecursorList
Path precursor = {MAC, interface ID}.
#define NS_TEST_EXPECT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report if not.
static void Destroy(void)
Every event scheduled by the Simulator::insertAtDestroy method is invoked.
virtual void DoRun()
Implementation to actually run this TestCase.
void AddTestCase(TestCase *testCase) NS_DEPRECATED
Add an individual child TestCase case to this TestCase.
void SetPlinkFrameStart(PlinkFrameStartFields)
static Dot11sTestSuite g_dot11sTestSuite
Built-in self test for PeerLinkFrameStart.
void AddHeader(const Header &header)
Add header to this packet.
#define NS_TEST_ASSERT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report and abort if not.