LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-28-2018, 09:03 AM   #1
arezoo123
LQ Newbie
 
Registered: Mar 2018
Posts: 3

Rep: Reputation: Disabled
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?
 
Old 03-28-2018, 09:32 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 17,026

Rep: Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444
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 deletedno line distance allowed
                 -llType $opt(ll) \
                 -macType $opt(mac) \

Last edited by knudfl; 03-28-2018 at 09:39 AM.
 
Old 04-01-2018, 01:58 AM   #3
arezoo123
LQ Newbie
 
Registered: Mar 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
thank you so much,knudfl
 
  


Reply

Tags
ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Detection of sybil attack in wireless sensor network in ns2. I need help to simulate it in ns2 Miralimk Linux - Software 1 02-22-2016 12:36 PM
NS2: How to set idle(sleeping) time to a node in wireless network in ns2 pon Linux - Newbie 0 08-19-2014 06:45 PM
NS2: Require eap-sim authentication code for simulation in ns2.24 noamankhatib Linux - Software 0 04-29-2013 12:03 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration