Menu

#16 setdest fails to work

open
nobody
None
5
2006-03-06
2006-03-06
Anonymous
No

Package (e.g., ns-2, nam-1, etc.): setdest.cc

Version (e.g., ns-2.29): ns-2.29

Operating System: GNU/Linux 2.6.14.1 for PowerPC

Environment Variables (e.g., LD_LIBRARY_PATH,
TCL_LIBRARY, TK_LIBRARY, etc.):

LANG="ca_ES@euro"
LANGUAGE="ca_ES:ca:en_GB:en"
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"

Keywords: setdest "scenario generation"

Description of Problem:

When I try to generate some movement for the mobile
nodes, I get the "usage" screen. However, all the
options are correctly written. I have inserted a
"printf" line in the getopt part (line 277) and I get
the following:

xesc@osiris:~/pfc/ns2/src/indep-utils/cmu-scen-gen/setdest
$ make && ./setdest -v 1 -n 20 -p 2.0 -s 10.0 -t 200 -x
500 -y 500 -P 3
make: Nothing to be done for `all'.
ch = 'v'
ch = 'n'
ch = 'p'
ch = 's'
ch = 't'
ch = 'x'
ch = 'y'
ch = 'P'
ch = 'ÿ'

usage:

<original 1999 CMU version (version 1)>
./setdest -v <1> -n <nodes> -p <pause time> -M
<max speed>
-t <simulation time> -x <max X> -y <max Y>

OR
<modified 2003 U.Michigan version (version 2)>
./setdest -v <2> -n <nodes> -s <speed type> -m
<min speed> -M <max speed>
-t <simulation time> -P <pause type> -p
<pause time> -x <max X> -y <max Y>
(Refer to the script files
make-scen.csh and make-scen-steadystate.csh for detail.)

How Easily Reproducible: every time

Expected Results:

The expected results would be the node movements.

Additional Information:

I think the program doesn't work because it finds a "ÿ"
character. The problem is that I don't know how to get
rid of it. I think the actual problem is perhaps the
"getopt" function.

Submitter: Xesc Arbona (llistes_xesc@yahoo.es)

Discussion


Log in to post a comment.