equal
deleted
inserted
replaced
99 apps = sink.Install (c.Get (3)); |
99 apps = sink.Install (c.Get (3)); |
100 apps.Start (Seconds (0.0)); |
100 apps.Start (Seconds (0.0)); |
101 apps.Stop (Seconds (11.0)); |
101 apps.Stop (Seconds (11.0)); |
102 |
102 |
103 NS_LOG_INFO ("Configure Tracing."); |
103 NS_LOG_INFO ("Configure Tracing."); |
104 // first, pcap tracing. |
104 // first, pcap tracing in non-promiscuous mode |
105 csma.EnablePcapAll ("csma-raw-ip-socket"); |
105 csma.EnablePcapAll ("csma-raw-ip-socket", false); |
106 // then, print what the packet sink receives. |
106 // then, print what the packet sink receives. |
107 Config::ConnectWithoutContext ("/NodeList/3/ApplicationList/0/$ns3::PacketSink/Rx", |
107 Config::ConnectWithoutContext ("/NodeList/3/ApplicationList/0/$ns3::PacketSink/Rx", |
108 MakeCallback (&SinkRx)); |
108 MakeCallback (&SinkRx)); |
109 |
109 |
110 Packet::EnablePrinting (); |
110 Packet::EnablePrinting (); |