equal
deleted
inserted
replaced
222 // and can be read by the "tcpdump -r" command (use "-tt" option to |
222 // and can be read by the "tcpdump -r" command (use "-tt" option to |
223 // display timestamps correctly) |
223 // display timestamps correctly) |
224 PcapTrace pcaptrace ("tcp-large-transfer.pcap"); |
224 PcapTrace pcaptrace ("tcp-large-transfer.pcap"); |
225 pcaptrace.TraceAllIp (); |
225 pcaptrace.TraceAllIp (); |
226 |
226 |
227 Config::Connect ("/NodeList/*/ApplicationList/*/Rx", |
227 Config::ConnectWithoutContext ("/NodeList/*/ApplicationList/*/Rx", |
228 MakeCallback (&ApplicationTraceSink)); |
228 MakeCallback (&ApplicationTraceSink)); |
229 |
229 |
230 Simulator::StopAt (Seconds(1000)); |
230 Simulator::StopAt (Seconds(1000)); |
231 Simulator::Run (); |
231 Simulator::Run (); |
232 Simulator::Destroy (); |
232 Simulator::Destroy (); |