21 #ifndef WIFI_PREQ_INFORMATION_ELEMENT_H
22 #define WIFI_PREQ_INFORMATION_ELEMENT_H
26 #include "ns3/mac48-address.h"
27 #include "ns3/mesh-information-element-vector.h"
40 void SetFlags (
bool doFlag,
bool rfFlag,
bool usnFlag);
74 uint32_t dest_seq_number
129 virtual void Print (std::ostream& os)
const;
void SetPreqID(uint32_t id)
void SetFlags(bool doFlag, bool rfFlag, bool usnFlag)
friend bool operator==(const DestinationAddressUnit &a, const DestinationAddressUnit &b)
uint8_t GetHopCount() const
std::vector< Ptr< DestinationAddressUnit > > m_destinations
uint32_t GetLifetime() const
uint32_t m_originatorSeqNumber
bool operator==(const MeshHeader &a, const MeshHeader &b)
void SetDestSeqNumber(uint32_t dest_seq_number)
iterator in a Buffer instance
void SetLifetime(uint32_t lifetime)
Mac48Address m_originatorAddress
Mac48Address GetOriginatorAddress() const
void DecrementTtl()
Handle TTL and Metric:
Mac48Address m_destinationAddress
virtual void Print(std::ostream &os) const
In addition, a subclass may optionally override the following...
void IncrementMetric(uint32_t metric)
void SetDestCount(uint8_t dest_count)
virtual WifiInformationElementId ElementId() const
Own unique Element ID.
See 7.3.2.96 of 802.11s draft 2.07.
void ClearDestinationAddressElements()
Clear PREQ: remove all destinations.
virtual uint8_t DeserializeInformationField(Buffer::Iterator i, uint8_t length)
Deserialize information (i.e., the body of the IE, not including the Element ID and length octets) ...
uint32_t GetOriginatorSeqNumber() const
void SetOriginatorAddress(Mac48Address originator_address)
void SetOriginatorSeqNumber(uint32_t originator_seq_number)
void SetMetric(uint32_t metric)
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 DelDestinationAddressElement(Mac48Address dest_address)
Delete a destination address unit by destination.
virtual void SerializeInformationField(Buffer::Iterator i) const
Serialize information (i.e., the body of the IE, not including the Element ID and length octets) ...
bool IsNeedNotPrep() const
uint32_t GetDestSeqNumber() const
uint8_t GetDestCount() const
std::vector< Ptr< DestinationAddressUnit > > GetDestinationList()
Get all destinations, which are stored in PREQ:
void SetUnicastPreq()
SetProper flags which indicate that PREQ is unicast.
bool MayAddAddress(Mac48Address originator)
uint8_t m_maxSize
how many destinations we support
bool IsUnicastPreq() const
virtual uint8_t GetInformationFieldSize() const
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
uint32_t GetPreqID() const
Mac48Address GetDestinationAddress() const
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
uint8_t m_flags
Fields of information element:
uint32_t GetMetric() const
Describes an address unit in PREQ information element See 7.3.2.96 for more details.
void SetDestinationAddress(Mac48Address dest_address)
A template-based reference counting class.
friend bool operator==(const IePreq &a, const IePreq &b)
std::ostream & operator<<(std::ostream &os, const IeBeaconTiming &a)
void SetHopcount(uint8_t hopcount)