22 #include "ns3/mesh-information-element-vector.h" 24 #include "ns3/ie-dot11s-beacon-timing.h" 25 #include "ns3/ie-dot11s-configuration.h" 26 #include "ns3/ie-dot11s-id.h" 27 #include "ns3/ie-dot11s-metric-report.h" 28 #include "ns3/ie-dot11s-peer-management.h" 29 #include "ns3/ie-dot11s-peering-protocol.h" 30 #include "ns3/ie-dot11s-perr.h" 31 #include "ns3/ie-dot11s-prep.h" 32 #include "ns3/ie-dot11s-preq.h" 33 #include "ns3/ie-dot11s-rann.h" 51 TestCase (
"Serialization test for all mesh information elements")
151 NS_TEST_ASSERT_MSG_EQ (vector, resultVector,
"Roundtrip serialization of all known information elements works");
uint32_t RemoveHeader(Header &header)
Deserialize and remove the header from the internal buffer.
void IncrementMetric(uint32_t metric)
Increment metric.
void SetDestinationAddress(Mac48Address dest_address)
Set destination address function.
void SetPreqID(uint32_t id)
Set path discovery id field.
Smart pointer class similar to boost::intrusive_ptr.
void SetTTL(uint8_t ttl)
Set remaining number of hops allowed for this element.
void SetOriginatorAddress(Mac48Address originator_address)
Set originator address value.
uint8_t GetTtl()
Get TTL value.
void SetOriginatorSeqNumber(uint32_t originator_seq_number)
Set originator sequence number function.
void SetDestSeqNumber(uint32_t dest_seq_number)
Set destination sequence number value.
structure of unreachable destination - address and sequence number
void SetFlags(uint8_t flags)
Set flags field.
void AddAddressUnit(HwmpProtocol::FailedDestination unit)
Add address unit function.
void SetFlags(uint8_t flags)
Set flags function.
void SetTtl(uint8_t ttl)
Set TTL function.
void SetOriginatorAddress(Mac48Address originator_address)
Set originator address function.
void SetLifetime(uint32_t lifetime)
Set lifetime in TUs for the forwarding information to be considered valid.
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
#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.
void SetPeerClose(uint16_t localLinkID, uint16_t peerLinkId, PmpReasonCode reasonCode)
Set peer close function.
uint32_t GetMetric()
Get metric value.
void DecrementTtl()
Decrement TTL function.
void SetTTL(uint8_t ttl)
Set TTL value to the remaining number of hops allowed.
void SetOriginatorAddress(Mac48Address originator_address)
Set originator address value.
void SetLifetime(uint32_t lifetime)
Set lifetime function.
void SetHopcount(uint8_t hopcount)
Set hop count value to number of hops from the originating root mesh STA to the mesh STA transmitting...
void SetOriginatorSeqNumber(uint32_t originator_seq_number)
Set originator sequence number.
void SetMetric(uint32_t metric)
Set metric function.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void AddDestinationAddressElement(bool doFlag, bool rfFlag, Mac48Address dest_address, uint32_t dest_seq_number)
Add a destination address unit: flags, destination and sequence number.
void SetMetric(uint32_t metric)
Set metric value to cumulative metric from originating root mesh STA to the mesh STA transmitting the...
Mac48Address destination
destination address
void SetPeerConfirm(uint16_t localLinkID, uint16_t peerLinkId)
Set peer confirm function.
Time Seconds(double value)
Construct a Time in the indicated unit.
void SetPeerOpen(uint16_t localLinkId)
Set peer open function.
void AddNeighboursTimingElementUnit(uint16_t aid, Time last_beacon, Time beacon_interval)
Add neighbors timing element unit.
void SetDestinationSeqNumber(uint32_t dest_seq_number)
Set destination sequence number function.
void SetHopcount(uint8_t hopcount)
Set hop count function.
void SetHopcount(uint8_t hopcount)
Set number of hops from originator to mesh STA transmitting this element.
void AddHeader(const Header &header)
Add header to this packet.