77 NS_LOG_FUNCTION(
this << a << b);
79 NetDeviceContainer container;
83 devA->SetDestinationNode(b);
89 queueA->SetAttribute(
"MaxSize",
90 QueueSizeValue(QueueSize(QueueSizeUnit::PACKETS,
m_maxPackets)));
91 devA->SetQueue(queueA);
95 devB->SetDestinationNode(a);
101 queueB->SetAttribute(
"MaxSize",
102 QueueSizeValue(QueueSize(QueueSizeUnit::PACKETS,
m_maxPackets)));
103 devB->SetQueue(queueB);
106 Ptr<NetDeviceQueueInterface> ndqiA = CreateObject<NetDeviceQueueInterface>();
107 ndqiA->GetTxQueue(0)->ConnectQueueTraces(queueA);
108 devA->AggregateObject(ndqiA);
109 Ptr<NetDeviceQueueInterface> ndqiB = CreateObject<NetDeviceQueueInterface>();
110 ndqiB->GetTxQueue(0)->ConnectQueueTraces(queueB);
111 devB->AggregateObject(ndqiB);
116 devB->Attach(channel);