|
|
| 182 |
onoff.SetAttribute ("OffTime", RandomVariableValue (ConstantVariable (0))); |
182 |
onoff.SetAttribute ("OffTime", RandomVariableValue (ConstantVariable (0))); |
| 183 |
ApplicationContainer apps = onoff.Install (staNodes[0].Get (0)); |
183 |
ApplicationContainer apps = onoff.Install (staNodes[0].Get (0)); |
| 184 |
apps.Start (Seconds (0.5)); |
184 |
apps.Start (Seconds (0.5)); |
| 185 |
apps.Stop (Seconds (3.0)); |
185 |
apps.Stop (Seconds (3000.0)); |
| 186 |
|
186 |
|
| 187 |
wifiPhy.EnablePcap ("wifi-wired-bridging", apDevices[0]); |
187 |
wifiPhy.EnablePcap ("wifi-wired-bridging", apDevices[0]); |
| 188 |
wifiPhy.EnablePcap ("wifi-wired-bridging", apDevices[1]); |
188 |
wifiPhy.EnablePcap ("wifi-wired-bridging", apDevices[1]); |
|
|
| 191 |
os.open ("wifi-wired-bridging.mob"); |
191 |
os.open ("wifi-wired-bridging.mob"); |
| 192 |
MobilityHelper::EnableAsciiAll (os); |
192 |
MobilityHelper::EnableAsciiAll (os); |
| 193 |
|
193 |
|
| 194 |
Simulator::Stop (Seconds (100.0)); |
194 |
Simulator::Stop (Seconds (5000.0)); |
| 195 |
Simulator::Run (); |
195 |
Simulator::Run (); |
| 196 |
Simulator::Destroy (); |
196 |
Simulator::Destroy (); |
| 197 |
} |
197 |
} |