specify unsigned integer literal (fix compiler warning)
This commit is contained in:
@@ -319,7 +319,7 @@ int main (int argc, char *argv[])
|
||||
serverApp.Stop (Seconds (simulationTime+1));
|
||||
|
||||
UdpClientHelper myClient (staNodeInterface.GetAddress (0), 9);
|
||||
myClient.SetAttribute ("MaxPackets", UintegerValue (4294967295));
|
||||
myClient.SetAttribute ("MaxPackets", UintegerValue (4294967295u));
|
||||
myClient.SetAttribute ("Interval", TimeValue (Time ("0.00002"))); //packets/s
|
||||
myClient.SetAttribute ("PacketSize", UintegerValue (payloadSize));
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@ int main (int argc, char *argv[])
|
||||
serverApp.Stop (Seconds (simulationTime+1));
|
||||
|
||||
UdpClientHelper myClient (StaInterface.GetAddress (0), 9);
|
||||
myClient.SetAttribute ("MaxPackets", UintegerValue (4294967295));
|
||||
myClient.SetAttribute ("MaxPackets", UintegerValue (4294967295u));
|
||||
myClient.SetAttribute ("Interval", TimeValue (Time ("0.00002"))); //packets/s
|
||||
myClient.SetAttribute ("PacketSize", UintegerValue (payloadSize));
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@ int main (int argc, char *argv[])
|
||||
serverApp.Stop (Seconds (simulationTime+1));
|
||||
|
||||
UdpClientHelper myClient (StaInterface.GetAddress (0), 9);
|
||||
myClient.SetAttribute ("MaxPackets", UintegerValue (4294967295));
|
||||
myClient.SetAttribute ("MaxPackets", UintegerValue (4294967295u));
|
||||
myClient.SetAttribute ("Interval", TimeValue (Time ("0.00002"))); //packets/s
|
||||
myClient.SetAttribute ("PacketSize", UintegerValue (payloadSize));
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ int main (int argc, char *argv[])
|
||||
serverApp.Stop (Seconds (simulationTime));
|
||||
|
||||
UdpClientHelper client (staNodeInterface.GetAddress (0), 9);
|
||||
client.SetAttribute ("MaxPackets", UintegerValue (4294967295));
|
||||
client.SetAttribute ("MaxPackets", UintegerValue (4294967295u));
|
||||
client.SetAttribute ("Interval", TimeValue (Time ("0.00002"))); //packets/s
|
||||
client.SetAttribute ("PacketSize", UintegerValue (1472)); //bytes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user