ns-3
|
#include <msdu-standard-aggregator.h>
Public Member Functions | |
virtual bool | Aggregate (Ptr< const Packet > packet, Ptr< Packet > aggregatedPacket, Mac48Address src, Mac48Address dest) |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::MsduStandardAggregator. |
Standard MSDU aggregator
bool ns3::MsduStandardAggregator::Aggregate | ( | Ptr< const Packet > | packet, |
Ptr< Packet > | aggregatedPacket, | ||
Mac48Address | src, | ||
Mac48Address | dest | ||
) | [virtual] |
packet | Packet we have to insert into aggregatedPacket. |
aggregatedPacket | Packet that will contain packet, if aggregation is possible, |
src | Source address of packet. |
dest | Destination address of packet. |
This method performs an MSDU aggregation. Returns true if packet can be aggregated to aggregatedPacket, false otherwise.
Implements ns3::MsduAggregator.
References ns3::Packet::AddAtEnd(), ns3::Packet::AddHeader(), ns3::Packet::Copy(), ns3::Packet::GetSize(), and NS_LOG_FUNCTION.
TypeId ns3::MsduStandardAggregator::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::MsduStandardAggregator.
This object is accessible through the following paths with Config::Set and Config::Connect:
Attributes defined for this type:
No TraceSources defined for this type.
Reimplemented from ns3::MsduAggregator.
References ns3::TypeId::SetParent().