23 #include "ns3/uinteger.h"
34 .SetGroupName (
"Wifi")
69 return (2 +
sizeof (
Time));
77 i.
Write ((
const uint8_t *)&duration,
sizeof(int64_t));
85 i.
Read ((uint8_t *)&duration, 8);
105 <<
" Remaining A-MPDU duration=" <<
m_duration;
void Write(const uint8_t *buffer, uint32_t size)
Simulation virtual time values and global simulation resolution.
uint8_t GetRemainingNbOfMpdus(void) const
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
void Print(std::ostream &os) const
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
Time MilliSeconds(uint64_t value)
Construct a Time in the indicated unit.
void(* Time)(Time oldValue, Time newValue)
TracedValue callback signature for Time.
TAG_BUFFER_INLINE uint8_t ReadU8(void)
uint32_t GetSerializedSize() const
AmpduTag()
Create a AmpduTag with the default =0 no Ampdu.
uint8_t m_nbOfMpdus
Remaining number of MPDUs in the A-MPDU.
The aim of the AmpduTag is to provide means for a MAC to specify that a packet includes A-MPDU since ...
tag a set of bytes in a packet
Every class exported by the ns3 library is enclosed in the ns3 namespace.
int64_t GetTimeStep(void) const
Get the raw time value, in the current resolution unit.
TAG_BUFFER_INLINE void WriteU8(uint8_t v)
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
void Deserialize(TagBuffer i)
void Serialize(TagBuffer i) const
Time Seconds(double value)
Construct a Time in the indicated unit.
void Read(uint8_t *buffer, uint32_t size)
static TypeId GetTypeId(void)
Get the type ID.
void SetRemainingNbOfMpdus(uint8_t nbofmpdus)
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Time GetRemainingAmpduDuration(void) const
Time m_duration
Remaining duration of the A-MPDU in nanoseconds.
void SetRemainingAmpduDuration(Time duration)