Re: [ns] 2 multicast group

2008-03-16 Thread Nur Aini Rakhmawati

I never implement MAODV
Just give you some solution
Perhaps you take a look the TCL file
I think there are some command to run multicast group

 ---

Nur Aini Rakhmawati
http://nuraini.net/

- Original Message 
From: king kouka [EMAIL PROTECTED]
To: ns-user ns-users@ISI.EDU
Sent: Sunday, March 16, 2008 8:59:34 PM
Subject: [ns] 2 multicast group


hello
  I am using MAODV code from Zhu and Kunz This implement only ONE multicast 
group ... How to run 2 or more groups ?

regards


  
_ 
Envoyez avec Yahoo! Mail. La boite email la plus appreciƩe au monde. 
http://mail.yahoo.fr




  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs



Re: [ns] Nodes not receiving broadcast message

2008-03-12 Thread Nur Aini Rakhmawati

in my protocol code, the addr_type is NS_AF_INET 
I define the port number as well
here is my broadcast code :

http://nuraini.net/2007/09/16/unicast-and-broadcat-packet-on-ns2/

it works for me :)
 
---
Nur Aini Rakhmawati
Touch the sky, Down to the earth
http://nuraini.net/

- Original Message 
From: SS Mukaka [EMAIL PROTECTED]
To: ns-users@ISI.EDU
Sent: Tuesday, March 11, 2008 10:16:50 PM
Subject: [ns] Nodes not receiving broadcast message


I want to send a broadcast message to neighbours I'm having a problem
because the nodes are not receiving the message if I put ih-daddr() =
IP_BROADCAST;
I have tested it by putting ih-daddr() = 1; and it worked... ie. node 1 was
able to receive the message.. Below is my code for sending and also for
receiving

void ReQuest::sendREQUEST()
{

  Packet* p = Packet::alloc();
  struct hdr_cmn* ch = HDR_CMN(p);
  struct hdr_ip* ih = HDR_IP(p);
  struct hdr_MyPacket* ah = HDR_MyPacket(p);
  ch-size() = IP_HDR_LEN + ah-size();
  ch-addr_type() = NS_AF_NONE;

  ih-daddr() = IP_BROADCAST;
  ih-saddr() = index;
  ah-MyPacket_type = ReQ;
  Scheduler::instance().schedule(target_, p, 0.0);
}

My receive function is as follows:

void ReQuest::recv(Packet* p, Handler*)
{
  struct hdr_cmn* ch = HDR_CMN(p);
  struct hdr_ip* ih = HDR_IP(p);
  struct hdr_MyPacket* ah = HDR_MyPacket(p);
  nsaddr_t src = ih-saddr();
  printf(Node %d receiving data packet from %d \n, index, src);

// processing packet
}

like i said,  nodes can only receive messages if i put the IP address of the
receipient but when i use IP_BROADCAST, nothing is received...

Thank you in advance





  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs



Re: [ns] make: *** No rule to make target `gen/version.o', needed by `ns'. Stop.

2008-03-11 Thread Nur Aini Rakhmawati

I found this problem before

http://nuraini.net/2007/09/14/make-no-rule-to-make-target/


- Original Message 
From: NS [EMAIL PROTECTED]
To: ns-users@ISI.EDU
Sent: Wednesday, March 12, 2008 12:08:25 AM
Subject: [ns] make: *** No rule to make target `gen/version.o', needed by `ns'. 
Stop.


Hi has anyone got any ideas? im stuck on the makefile on a new box
 This is the last bit any ideas please?

 g++ -c -Wall  -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR
 -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H
 -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H
 -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DNS_DIFFUSION
 -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE
 -Drng_test  -I. -I/Users/student3/ns/tclcl-1.19
 -I/Users/student3/ns/otcl-1.13 -I/Users/student3/ns/include
 -I/Users/student3/ns/include -I/usr/include/pcap -I./tcp -I./sctp
 -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile
 -I./trace -I./routing -I./tools -I./classifier -I./mcast
 -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr
 -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs
 -I./diffserv -I./satellite -I./wpan -o packmime/packmime_ranvar.o
 packmime/packmime_ranvar.cc
 make: *** No rule to make target `gen/version.o', needed by `ns'.  Stop.



 Thanking you
 Mark






  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping



Re: [ns] 'cout' doesnt print on the console

2008-03-05 Thread Nur Aini Rakhmawati

Hi,

Perhaps there is any IF condition that make it could not print your file
You could test it by putting cout on your constructor file

Suppose your constructor function in ourapp.cc is 

ourapp:ourapp()
{
cout  hello Aini :Dendl;
}
 
---
Nur Aini Rakhmawati
http://nuraini.net/


- Original Message 
From: jimit shah [EMAIL PROTECTED]
To: ns-users@ISI.EDU
Sent: Wednesday, March 5, 2008 7:11:23 PM
Subject: [ns] 'cout' doesnt print on the console


I have 3 linked files - 'ourapp.tcl', 'ourapp.h' and 'ourapp.cc' . I
have included all the necessary files in my  .cc file, including
iostream.h . But the 'cout' statements dont get printed onto the
console.   Can someone help me get around the problem? If 'cout'
doesnt work, what command can be used in order to print messages from
the .cc file onto the console? Do i need to include anymore header
files? Please help meIts urgent. I'm working on ns-2.27 on Red Hat
Linux 9.0 platform.

--
jjs






  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs



Re: [ns] problem with make

2007-08-08 Thread Nur Aini Rakhmawati

check this out 

http://nuraini.wordpress.com/2007/08/05/undefined-reference-to/
 
---
Nur Aini Rakhmawati
Touch the sky, Down to the earth
http://ai23.wordpress.com/

- Original Message 
From: jilly126 [EMAIL PROTECTED]
To: ns-users ns-users@ISI.EDU
Sent: Wednesday, August 8, 2007 8:37:27 AM
Subject: [ns] problem with make



Hello,
I am trying to add diffserv and mpls modules to ns2.29. When I execute I 
execute ./configure and make clean without problems, but when I execute 
make, the next error appears on my screen:

trace/trace.o(.text+0xe4): In function `Trace::Trace[not-in-charge](int)':
: undefined reference to `BaseTrace::BaseTrace[in-charge]()'
trace/trace.o(.text+0x240): In function `Trace::Trace[in-charge](int)':
: undefined reference to `BaseTrace::BaseTrace[in-charge]()'
common/agent.o(.text+0x14d4): In function `Agent::initpkt(Packet*) const':
: undefined reference to `NixNode::GetNodeObject(unsigned long)'
common/agent.o(.text+0x14f1): In function `Agent::initpkt(Packet*) const':
: undefined reference to `NixNode::GetNixVector(unsigned long)'
common/agent.o(.text+0x1502): In function `Agent::initpkt(Packet*) const':
: undefined reference to `NixVec::Reset()'
common/agent.o(.gnu.linkonce.t._ZN6hdr_nv6accessEP6Packet+0xb): In function 
`hdr_nv::access(Packet*)':
: undefined reference to `hdr_nv::offset_'
queue/errmodel.o(.gnu.linkonce.t._ZN7hdr_pgm6accessEPK6Packet+0xb): In function
`hdr_pgm::access(Packet const*)':
: undefined reference to `hdr_pgm::offset_'
queue/errmodel.o(.gnu.linkonce.t._ZN7hdr_lms6accessEP6Packet+0xb): In function 
`hdr_lms::access(Packet*)':
: undefined reference to `hdr_lms::offset_'
mac/mac-802_11.o(.gnu.linkonce.t._ZN10EventTraceC1Ev+0xd): In function 
`EventTrace::EventTrace[in-charge]()':
: undefined reference to `BaseTrace::BaseTrace[not-in-charge]()'
mac/mac-802_11.o(.gnu.linkonce.t._ZN10EventTraceC1Ev+0x19): In function 
`EventTrace::EventTrace[in-charge]()':
: undefined reference to `vtable for EventTrace'
common/node.o(.text+0x292): In function `Node::Node[not-in-charge]()':
: undefined reference to `NixNode::NixNode[in-charge]()'
common/node.o(.text+0x3fe): In function `Node::Node[in-charge]()':
: undefined reference to `NixNode::NixNode[in-charge]()'
common/node.o(.text+0x5e8): In function `Node::command(int, char const* 
const*)':
: undefined reference to `NixNode::PopulateObjects()'
common/node.o(.text+0x68d): In function `Node::command(int, char const* 
const*)':
: undefined reference to `NixNode::GetNixVector(unsigned long)'
common/node.o(.text+0x6e3): In function `Node::command(int, char const* 
const*)':
: undefined reference to `NixNode::AddAdj(unsigned long)'
common/node.o(.text+0x99d): In function `Node::route_notify(RoutingModule*)':
: undefined reference to `RoutingModule::route_notify(RoutingModule*)'
common/node.o(.text+0x9de): In function 
`Node::unreg_route_notify(RoutingModule*)':
: undefined reference to `RoutingModule::unreg_route_notify(RoutingModule*)'
common/node.o(.text+0xa68): In function `Node::set_table_size(int)':
: undefined reference to `RoutingModule::set_table_size(int)'
common/node.o(.text+0xa91): In function `Node::set_table_size(int, int)':
: undefined reference to `RoutingModule::set_table_size(int, int)'
trace/cmu-trace.o(.text+0x2825): In function `CMUTrace::nam_format(Packet*, 
int)':
: undefined reference to `Nam802_15_4::Nam_Status'
trace/cmu-trace.o(.text+0x284a): In function `CMUTrace::nam_format(Packet*, 
int)':
: undefined reference to `p802_15_4macSA(Packet*)'
trace/cmu-trace.o(.text+0x285e): In function `CMUTrace::nam_format(Packet*, 
int)':
: undefined reference to `p802_15_4macDA(Packet*)'
trace/cmu-trace.o(.text+0x28d1): In function `CMUTrace::nam_format(Packet*, 
int)':
: undefined reference to `findAttrLink(packet_t, int, int)'
trace/cmu-trace.o(.text+0x2905): In function `CMUTrace::nam_format(Packet*, 
int)':
: undefined reference to `findAttrLink(packet_t, int, int)'
trace/cmu-trace.o(.text+0x2c9e): In function `CMUTrace::nam_format(Packet*, 
int)':
: undefined reference to `Nam802_15_4::Nam_Status'
trace/cmu-trace.o(.text+0x2d3b): In function `CMUTrace::nam_format(Packet*, 
int)':
: undefined reference to `Nam802_15_4::Nam_Status'
trace/cmu-trace.o(.gnu.linkonce.t._ZN9Simulator8instanceEv+0x4): In function 
`Simulator::instance()':
: undefined reference to `Simulator::instance_'
trace/cmu-trace.o(.gnu.linkonce.t._ZN10hdr_lrwpan6accessEPK6Packet+0xb): In 
function `hdr_lrwpan::access(Packet const*)':
: undefined reference to `hdr_lrwpan::offset_'
collect2: ld returned 1 exit status
make: *** [ns] Error 1

Can you help me?
Thanks in advance.
Best regards,




jilly126
2007-08-07





   

Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for 
today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  



Re: [ns] No rule to make target `VERSION', needed by `gen/version.c'

2007-03-29 Thread Nur Aini Rakhmawati

case sensitive !!

http://ai23.wordpress.com/2006/11/14/make-no-rule-to-make-target/


 ---
Nur Aini Rakhmawati
Touch the sky, Down to the earth
http://ai23.wordpress.com/


- Original Message 
From: Jayavignesh Thyagarajan [EMAIL PROTECTED]
To: ns-users@ISI.EDU
Sent: Thursday, March 29, 2007 11:49:00 PM
Subject: [ns] No rule to make target `VERSION', needed by `gen/version.c'


Hi,

   I tried installing ns2.1b7 but when installing ns an error occurs
stating

make: *** No rule to make target `VERSION', needed by `gen/version.c'

Stop: Ns failed..


Please give me a solution... Its urgent.../.

Jayavignesh
(Final year Engineering student)


 

8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news



Re: [ns] problem in running example given in installed files

2007-02-22 Thread Nur Aini Rakhmawati

couldn't read file ../mobility/scene/cbr-3-test: no such file or directory 
-- this file is not found, make sure path of file


 
---
Nur Aini Rakhmawati
Touch the sky, Down to the earth
http://ai23.wordpress.com/

- Original Message 
From: harpreet [EMAIL PROTECTED]
To: ns-users@ISI.EDU
Sent: Thursday, February 22, 2007 11:42:32 PM
Subject: [ns] problem in running example given in installed files



hi
i am trying to rum wireless example in ns 2.1b9a. this gives me error 

$ ns wireless1.tcl
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
couldn't read file ../mobility/scene/cbr-3-test: no such file or directory
while executing
source.orig ../mobility/scene/cbr-3-test
(uplevel body line 1)
invoked from within
uplevel source.orig [list $fileName]
invoked from within
if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig [list $fileName]
...
(procedure source line 8)
invoked from within
source $val(cp)
(file wireless1.tcl line 121)

i am working in this to run umts-fdd model because its written in its manual 
that its patch is executable in ns2.1b9a. but it also gives me error. can u 
please tell how to patch the file. and how to correct the above problem.


harpreet singh





 

TV dinner still cooling? 
Check out Tonight's Picks on Yahoo! TV.
http://tv.yahoo.com/



Re: [ns] ns-2.29 under cygwin

2006-12-20 Thread Nur Aini Rakhmawati

change this line

system=MP-RAS-`awk '{print }' /etc/.relid'`

become

system=MP-RAS-`awk '{print }' /etc/.relid`

you can find this in configure file

- Original Message 
From: s. gazal [EMAIL PROTECTED]
To: ns-users@ISI.EDU
Sent: Wednesday, December 20, 2006 4:04:12 AM
Subject: [ns] ns-2.29 under cygwin




Dear all ,
I was trying to install ns-2.29 under windows XP, while I faced the follwing
  problem :
checking  system  version  (for  dynamic  loading)...  ./configure:  line
7624:  syntax
error  near  unexpected  token  ')'
./configure:  line  7624:  '  OSF*)'
tcl8.3.2  configuration  failed!  Exiting  ...
Tcl  is  not  part  of  the  ns  project.  Please  see  www.Scriptics.com
to  see
if  they  have  a  fix  for  your  problem.

please , can anyone help me solving this problem?
thanks in advance
sahar

_
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/





__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com