35 .SetGroupName (
"TrafficControl")
89 NS_LOG_ERROR (
"MqQueueDisc cannot have internal queues");
mq is a classful multi-queue aware dummy scheduler.
WakeMode GetWakeMode(void) const
Return the wake mode adopted by this queue disc.
Smart pointer class similar to boost::intrusive_ptr.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
virtual bool DoEnqueue(Ptr< QueueDiscItem > item)
This function actually enqueues a packet into the queue disc.
virtual Ptr< QueueDiscItem > DoDequeue(void)
This function actually extracts a packet from the queue disc.
Used by queue discs with unlimited size.
MqQueueDisc()
MqQueueDisc constructor.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
virtual Ptr< const QueueDiscItem > DoPeek(void)
This function returns a copy of the next packet the queue disc will extract.
QueueDisc is an abstract base class providing the interface and implementing the operations common to...
WakeMode
Used to determine whether the queue disc itself or its children must be activated when a netdevice wa...
virtual bool CheckConfig(void)
Check whether the current configuration is correct.
uint32_t GetNInternalQueues(void) const
Get the number of internal queues.
virtual void InitializeParams(void)
Initialize parameters (if any) before the first packet is enqueued.
uint32_t GetNPacketFilters(void) const
Get the number of packet filters.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
QueueDiscSizePolicy
Enumeration of the available policies to handle the queue disc size.
#define NS_LOG_ERROR(msg)
Use NS_LOG to output a message of level LOG_ERROR.
static TypeId GetTypeId(void)
Get the type ID.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.