LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   ns2 (https://www.linuxquestions.org/questions/programming-9/ns2-4175626520/)

arezoo123 03-28-2018 09:03 AM

ns2
 
Hi,
I want to run a simple wireless tcl example but I encounter this error:

invalid command name "-llType"
while executing
"-llType $opt(ll) "

what is the problem with it?

knudfl 03-28-2018 09:32 AM

Examples copied from e.g. the Internet must often be edited.
One or more <space> after \ must be deleted.

Line distance / a line feed in the middle of a command must be corrected.
.. And invalid characters like “ ” must be edited to " "

Example
Code:

$ns_ node-config -mobileIP ON \
                -adhocRouting $opt(adhocRouting) \<space>  ← space must be deleted
                                        ← no line distance allowed
                -llType $opt(ll) \
                -macType $opt(mac) \


arezoo123 04-01-2018 01:58 AM

thank you so much,knudfl


All times are GMT -5. The time now is 07:22 PM.