examples/csma-broadcast.cc
changeset 4264 9d2e96c4e6e4
parent 4225 f1d873a81159
child 4309 bf8c338c7820
equal deleted inserted replaced
4263:fec2f830d015 4264:9d2e96c4e6e4
   105   sink.Install (c0.Get (1));
   105   sink.Install (c0.Get (1));
   106   sink.Install (c1.Get (1));
   106   sink.Install (c1.Get (1));
   107 
   107 
   108   // Also configure some tcpdump traces; each interface will be traced
   108   // Also configure some tcpdump traces; each interface will be traced
   109   // The output files will be named 
   109   // The output files will be named 
   110   // csma-broadcast.pcap-<nodeId>-<interfaceId>
   110   // csma-broadcast-<nodeId>-<interfaceId>.pcap
   111   // and can be read by the "tcpdump -tt -r" command 
   111   // and can be read by the "tcpdump -tt -r" command 
   112   CsmaHelper::EnablePcapAll ("csma-broadcast");
   112   CsmaHelper::EnablePcapAll ("csma-broadcast", false);
   113   std::ofstream ascii;
   113   std::ofstream ascii;
   114   ascii.open ("csma-broadcast.tr");
   114   ascii.open ("csma-broadcast.tr");
   115   CsmaHelper::EnableAsciiAll (ascii);
   115   CsmaHelper::EnableAsciiAll (ascii);
   116 
   116 
   117   NS_LOG_INFO ("Run Simulation.");
   117   NS_LOG_INFO ("Run Simulation.");