|
Lines 129-135
main (int argc, char *argv[])
|
Link Here
|
|---|
|
| 129 |
QueueDiscContainer qdiscs = tch.Install (devices); |
129 |
QueueDiscContainer qdiscs = tch.Install (devices); |
| 130 |
|
130 |
|
| 131 |
Ptr<QueueDisc> q = qdiscs.Get (1); |
131 |
Ptr<QueueDisc> q = qdiscs.Get (1); |
| 132 |
q->TraceConnectWithoutContext ("PacketsInQueue", MakeCallback (&TcPacketsInQueueTrace)); |
132 |
// q->TraceConnectWithoutContext ("PacketsInQueue", MakeCallback (&TcPacketsInQueueTrace)); |
|
|
133 |
// Alternatively: |
| 134 |
Config::ConnectWithoutContext ("/NodeList/1/$ns3::TrafficControlLayer/RootQueueDiscList/0/PacketsInQueue", MakeCallback (&TcPacketsInQueueTrace)); |
| 133 |
|
135 |
|
| 134 |
Ptr<NetDevice> nd = devices.Get (1); |
136 |
Ptr<NetDevice> nd = devices.Get (1); |
| 135 |
Ptr<PointToPointNetDevice> ptpnd = DynamicCast<PointToPointNetDevice> (nd); |
137 |
Ptr<PointToPointNetDevice> ptpnd = DynamicCast<PointToPointNetDevice> (nd); |