equal
deleted
inserted
replaced
118 // Configure tracing of all enqueue, dequeue, and NetDevice receive events. |
118 // Configure tracing of all enqueue, dequeue, and NetDevice receive events. |
119 // Trace output will be sent to the file "csma-one-subnet.tr" |
119 // Trace output will be sent to the file "csma-one-subnet.tr" |
120 // |
120 // |
121 NS_LOG_INFO ("Configure Tracing."); |
121 NS_LOG_INFO ("Configure Tracing."); |
122 std::ofstream ascii; |
122 std::ofstream ascii; |
123 ascii.open ("csma-one-subnet.tr"); |
123 ascii.open ("csma-one-subnet.tr", std::ios_base::binary | std::ios_base::out); |
124 CsmaHelper::EnableAsciiAll (ascii); |
124 CsmaHelper::EnableAsciiAll (ascii); |
125 // |
125 // |
126 // Also configure some tcpdump traces; each interface will be traced. |
126 // Also configure some tcpdump traces; each interface will be traced. |
127 // The output files will be named: |
127 // The output files will be named: |
128 // csma-one-subnet-<nodeId>-<interfaceId>.pcap |
128 // csma-one-subnet-<nodeId>-<interfaceId>.pcap |