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