33 .SetGroupName (
"Wifi")
68 return (2 +
sizeof (
Time));
76 i.
Write ((
const uint8_t *)&duration,
sizeof(int64_t));
84 i.
Read ((uint8_t *)&duration, 8);
104 <<
" Remaining A-MPDU duration=" <<
m_duration;
void Write(const uint8_t *buffer, uint32_t size)
Simulation virtual time values and global simulation resolution.
uint32_t GetSerializedSize() const
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
#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)
void Serialize(TagBuffer i) const
AmpduTag()
Create a AmpduTag with the default =0 no Ampdu.
uint8_t m_nbOfMpdus
Remaining number of MPDUs in the A-MPDU.
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
The aim of the AmpduTag is to provide means for a MAC to specify that a packet includes A-MPDU since ...
uint8_t GetRemainingNbOfMpdus(void) const
tag a set of bytes in a packet
Every class exported by the ns3 library is enclosed in the ns3 namespace.
TAG_BUFFER_INLINE void WriteU8(uint8_t v)
void Print(std::ostream &os) const
Time GetRemainingAmpduDuration(void) const
void Deserialize(TagBuffer i)
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 m_duration
Remaining duration of the A-MPDU in nanoseconds.
int64_t GetTimeStep(void) const
Get the raw time value, in the current resolution unit.
void SetRemainingAmpduDuration(Time duration)