examples/csma-multicast.cc
changeset 4264 9d2e96c4e6e4
parent 4225 f1d873a81159
child 4435 54cb46af8003
equal deleted inserted replaced
4263:fec2f830d015 4264:9d2e96c4e6e4
   169   ascii.open ("csma-multicast.tr");
   169   ascii.open ("csma-multicast.tr");
   170   CsmaHelper::EnableAsciiAll (ascii);
   170   CsmaHelper::EnableAsciiAll (ascii);
   171 
   171 
   172   // Also configure some tcpdump traces; each interface will be traced.
   172   // Also configure some tcpdump traces; each interface will be traced.
   173   // The output files will be named:
   173   // The output files will be named:
   174   //     csma-multicast.pcap-<nodeId>-<interfaceId>
   174   //     csma-multicast-<nodeId>-<interfaceId>.pcap
   175   // and can be read by the "tcpdump -r" command (use "-tt" option to
   175   // and can be read by the "tcpdump -r" command (use "-tt" option to
   176   // display timestamps correctly)
   176   // display timestamps correctly)
   177   CsmaHelper::EnablePcapAll ("csma-multicast");
   177   CsmaHelper::EnablePcapAll ("csma-multicast", false);
   178   //
   178   //
   179   // Now, do the actual simulation.
   179   // Now, do the actual simulation.
   180   //
   180   //
   181   NS_LOG_INFO ("Run Simulation.");
   181   NS_LOG_INFO ("Run Simulation.");
   182   Simulator::Run ();
   182   Simulator::Run ();