avoid segfault

This commit is contained in:
Mathieu Lacage
2008-05-27 15:57:51 -07:00
parent eaf4fb4a6d
commit 20b1d65d07

View File

@@ -162,7 +162,7 @@ int main (int argc, char *argv[])
socket.SetPhysicalAddress (staDevs.Get (1)->GetAddress ());
socket.SetProtocol (1);
OnOffHelper onoff ("ns3::PacketSocket", Address (socket));
OnOffHelper onoff ("ns3::PacketSocketFactory", Address (socket));
onoff.SetAttribute ("OnTime", RandomVariableValue (ConstantVariable (42)));
onoff.SetAttribute ("OffTime", RandomVariableValue (ConstantVariable (0)));