(bug 1404) Bound user input in tutorial third.cc program

This commit is contained in:
Tom Henderson
2012-05-04 16:32:59 -07:00
parent 30649d9e7d
commit 820f31944f

View File

@@ -52,6 +52,13 @@ main (int argc, char *argv[])
cmd.Parse (argc,argv);
if (nWifi > 18)
{
std::cout << "Number of wifi nodes " << nWifi <<
" specified exceeds the mobility bounding box" << std::endl;
exit (1);
}
if (verbose)
{
LogComponentEnable ("UdpEchoClientApplication", LOG_LEVEL_INFO);