equal
deleted
inserted
replaced
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."); |