equal
deleted
inserted
replaced
189 socket.SetSingleDevice (ofdmDevices.Get (0)->GetIfIndex ()); |
189 socket.SetSingleDevice (ofdmDevices.Get (0)->GetIfIndex ()); |
190 socket.SetPhysicalAddress (ofdmDevices.Get (1)->GetAddress ()); |
190 socket.SetPhysicalAddress (ofdmDevices.Get (1)->GetAddress ()); |
191 socket.SetProtocol (1); |
191 socket.SetProtocol (1); |
192 |
192 |
193 OnOffHelper onoff ("ns3::PacketSocketFactory", Address (socket)); |
193 OnOffHelper onoff ("ns3::PacketSocketFactory", Address (socket)); |
194 onoff.SetAttribute ("OnTime", RandomVariableValue (ExponentialVariable (0.4))); |
194 onoff.SetAttribute ("OnTime", StringValue ("ns3::ExponentialRandomVariable[Mean=0.4]")); |
195 onoff.SetAttribute ("OffTime", RandomVariableValue (ExponentialVariable (0.1))); |
195 onoff.SetAttribute ("OffTime", StringValue ("ns3::ExponentialRandomVariable[Mean=0.1]")); |
196 onoff.SetAttribute ("DataRate", DataRateValue (DataRate ("0.4Mbps"))); |
196 onoff.SetAttribute ("DataRate", DataRateValue (DataRate ("0.4Mbps"))); |
197 onoff.SetAttribute ("PacketSize", UintegerValue (1500)); |
197 onoff.SetAttribute ("PacketSize", UintegerValue (1500)); |
198 |
198 |
199 ApplicationContainer apps = onoff.Install (ofdmNodes.Get (0)); |
199 ApplicationContainer apps = onoff.Install (ofdmNodes.Get (0)); |
200 apps.Start (Seconds (0.0)); |
200 apps.Start (Seconds (0.0)); |