Hi all 
   
  There are some one who looking for wirless code ......here is some wirless 
code if it helps have look...
   
  # ======================================================================
# Define options
# ======================================================================
set val(chan) Channel/WirelessChannel ;# channel type
set val(prop) Propagation/TwoRayGround ;# radio-propagationmodel
set val(netif) Phy/WirelessPhy ;# network interfacetype
set val(mac) Mac/802_11 ;# MAC type
set val(ifq) Queue/DropTail/PriQueue ;# interface queue type 
  ****************** I change this ifq value to different algorithms 
********************************* 
  
set val(ll) LL ;# link layer type
set val(ant) Antenna/OmniAntenna ;# antenna model
set val(ifqlen) 50 ;# max packet in ifq
set val(nn) 2 ;# number ofmobilenodes
set val(rp) DSDV ;# routing protocol 
  # ===================================nam ===================================
# Main Program
# ====================================================================== 
  #Open the output files
#set f0 [open out0.tr w]
#set f1 [open out1.tr w] 
  #
# Initialize Global Variables
# 
  set ns_ [new Simulator]
set tracefd [open trace/case1a.tr w]
set namtrace [open nam/case1a.nam w] 
  $ns_ use-newtrace 
  # set up topography object
set topo [new Topography] 
  $topo load_flatgrid 600 500 
  #set node_(0) [$ns_ node]
#set node_(1) [$ns_ node] 
  
$ns_ trace-all $tracefd
$ns_ namtrace-all-wireless $namtrace 600 600 
  #
# Create God
#
set god_ [create-god $val(nn)] 
  
#
# Create the specified number of mobilenodes [$val(nn)] and "attach" them
# to the channel. 
# Here two nodes are created : node(0) and node(1) 
  # configure node 
  $ns_ node-config -adhocRouting $val(rp) \
-llType $val(ll) \
-macType $val(mac) \
-ifqType $val(ifq) \
-ifqLen $val(ifqlen) \
-antType $val(ant) \
-propType $val(prop) \
-phyType $val(netif) \
-channelType $val(chan) \
-topoInstance $topo \
-agentTrace ON \
-routerTrace ON \
-macTrace OFF \
-movementTrace OFF 

for {set i 0} {$i < $val(nn) } {incr i} {
set node_($i) [$ns_ node] 
$node_($i) random-motion 0 ;# disable randommotion
} 
  #
# Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes
set sink [new Agent/TCPSink]
# 
  
$node_(0) set X_ 100.0
$node_(0) set Y_ 300.0
$node_(0) set Z_ 0.0 
  $node_(1) set X_ 500.0
$node_(1) set Y_ 300.0
$node_(1) set Z_ 0.0 
  for {set i 0} {$i < $val(nn)} {incr i} { 
  # 20 defines the node size in nam, must adjust it according to your scenario
# The function must be called after mobility model is defined

$ns_ initial_node_pos $node_($i) 40
} 
  # --------- start here-------- 
  #Create a CBR agent and attach it to node n0
set udp [new Agent/UDP]
$ns_ attach-agent $node_(0) $udp
#$udp set class_ 1
#$udp set fid_ 1 
  set lost0 [new Agent/LossMonitor]
#$ns_ attach-agent $node_(0) $lost0 
  set cbr [new Application/Traffic/CBR]
$cbr set packetSize_ 1000
#$cbr set interval_ 0.01
$cbr set rate_ 50000 Kb
$cbr attach-agent $udp 
  set udp2 [new Agent/UDP]
$ns_ attach-agent $node_(0) $udp2
#$udp2 set class_ 1
#$udp2 set fid_ 1 
  set cbr2 [new Application/Traffic/CBR]
$cbr2 set packetSize_ 1000
#$cbr set interval_ 0.01
$cbr2 set rate_ 60000 Kb
$cbr2 attach-agent $udp2
set null1 [new Agent/Null]
$ns_ attach-agent $node_(1) $null1
$ns_ connect $udp2 $null1 
  #Create a Null agent (a traffic sink) and attach it to node 
  set null0 [new Agent/Null]
$ns_ attach-agent $node_(1) $null0
$ns_ attach-agent $node_(1) $lost0 
  #Connect the traffic sources with the traffic sink
$ns_ connect $udp $null0 
  # VBR traffic generating section
set udp3 [new Agent/UDP]
$ns_ attach-agent $node_(1) $udp3 
  set null3 [new Agent/Null]
$ns_ attach-agent $node_(0) $null3 
  $ns_ connect $udp3 $null3 
  set tfile [new Tracefile]
$tfile filename /root/vin/final/starwars.nsformat
set trace [new Application/Traffic/Trace]
$trace attach-tracefile $tfile
$trace attach-agent $udp3
# end of VBR 
  set tcp1 [new Agent/TCP]
$tcp1 set class_ 2
$tcp1 set fid_ 2
set sink1 [new Agent/TCPSink]
set ftp [new Application/FTP]
$ftp attach-agent $tcp1
$ns_ attach-agent $node_(0) $tcp1
$ns_ attach-agent $node_(1) $sink1
$ns_ connect $tcp1 $sink1 
  set tcp2 [new Agent/TCP]
set sink2 [new Agent/TCPSink]
set tel [new Application/Telnet]
$tel attach-agent $tcp2
$ns_ attach-agent $node_(0) $tcp2
$ns_ attach-agent $node_(1) $sink2
$ns_ connect $tcp2 $sink2 
  #Schedule events for the CBR agents
  $ns_ at 1.0 "$cbr start"
$ns_ at 35.5 "$cbr stop"
$ns_ at 3.0 "$ftp start" 
  #VBR
  $ns_ at 16.0 "$trace start"
$ns_ at 19.0 "$trace stop" 
  $ns_ at 22.0 "$trace start"
$ns_ at 26.0 "$trace stop" 
  
$ns_ at 4.0 "$cbr2 start"
$ns_ at 20.0 "$cbr2 stop" 
  $ns_ at 7.0 "$ftp produce 100"
$ns_ at 4.0 "$tel start"
$ns_ at 10.0 "$tel stop"
$ns_ at 14.0 "$ftp produce 100"
$ns_ at 20.0 "$ftp produce 100" 
  $ns_ at 33.0 "$ftp produce 200"
$ns_ at 36.0 "$ftp produce 200"

#-------------------------------------------------- 
  
#
# Tell nodes when the simulation ends
#
for {set i 0} {$i < $val(nn) } {incr i} {
$ns_ at 150.0 "$node_($i) reset";
}
$ns_ at 40.0 "stop"
$ns_ at 50.01 "puts \"NS EXITING...\" ; $ns_ halt" 
  proc stop {} {
global ns_ tracefd
$ns_ flush-trace
close $tracefd
} 
  
puts "Starting Simulation..."
$ns_ run
   
   
  Regards,
   
  Sayid
   
   
  
[EMAIL PROTECTED] wrote:
  Send Ns-users mailing list submissions to
ns-users@isi.edu

To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.isi.edu/mailman/listinfo/ns-users
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]

You can reach the person managing the list at
[EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Ns-users digest..."


Today's Topics:

1. Fwd: Simple Simulation (Oben Kandamar)
2. Help needed with DiffServ. (Anubhav Visen)
3. Error when compile NS2.1b7a. Very Urgent, pls help me (tran huong)
4. movie in ns2 formate (minaxi rawat)
5. Re: NAM trace file -e option (Ilyes Gouta)
6. I am a new NS2 user, need help (Chams D)
7. Re: movie in ns2 formate (Chih-Heng)
8. Which ad hoc routing protocol is used in 802.11? (jeevesh sharma)
9. Address confusion !!?? (Chams D)
10. Getting Error : Classfier::no-slot{} default handler
(tcl/lib/ns-lib.tcl) (raja priya)
11. Re: Compiling NS2.29.2 on FC5 (Ilyes Gouta)
12. How to change seed in NS2 (malin nadine)
13. help regarding for awk file (rahul barche)
14. need urgent help (malin nadine)
15. Re: Address confusion !!?? (Mohammad Abdul Awal)
16. Re: help regarding for awk file (Mohammad Abdul Awal)
17. Which is the final file/code that handles a packet at the
destination? (Ahsa)
18. Need information abt working of Pcap. (anil reddy)
19. Re: Compiling NS2.29.2 on FC5 (Daniel Mahrenholz)
20. Re: Can we change the transmission range of the node during
the simulation? (Hajer FERJANI)
21. Re: modify node no of nodes in tcl script codes (Hajer FERJANI)
22. Re: Compiling NS2.29.2 on FC5 (Tom Henderson)
23. How catch Parameters of 802.11 wireless Network Card?
(hamid reza)
24. Re: Floating point exception in NS-2 (Arkaitz Bitorika)
25. Urgent help ,in Make (rakesh tripathi)
26. Re: How to change seed in NS2 (Ghirmay Desta)
27. Strange Erro (Vinod)
28. Uni directional links in dsr (Sivakumar Kulasekaran)
29. How to access c++ variable from tcl (Chams D)


----------------------------------------------------------------------

Message: 1
Date: Tue, 25 Apr 2006 12:08:42 -0700 (PDT)
From: Oben Kandamar 
Subject: [ns] Fwd: Simple Simulation
To: ns-users@ISI.EDU
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=iso-8859-1



Hi everybody,
I'm a beginner ns user.
I have problems with my code.
I need a wireless ns-2 simulation code with two nodes and another one with two 
parallel connections both forming nam and trace files. (with no movement) I 
will measure throughput values.
The important point is that I need both tr and nam output.
This is my term work and I have very limited time.
Is there any site that I should look for the code?

Any URGENT help is appreciated
Thanks in advance



---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2?/min or less.

------------------------------

Message: 2
Date: Tue, 25 Apr 2006 14:39:23 -0500
From: "Anubhav Visen" 
Subject: [ns] Help needed with DiffServ.
To: 
Message-ID: 
Content-Type: text/plain; charset="iso-8859-1"

Hi, 

I am trying to implement diffserv in a really complex topology. When I 
implement several queues on the same edge router to different core routers, I 
receive an error that says "The policy object doesn't exist, ERROR!!!" and 
"ERROR: No Policy Table entry found for Source 4-Destination 11." even though 
there is a polocy.

Please help.

Thanks,
Anubhav
_________________________________________________________________
Join the next generation of Hotmail and you could win the adventure of a 
lifetime
http://www.imagine-msn.com/minisites/sweepstakes/mail/register.aspx

------------------------------

Message: 3
Date: Wed, 26 Apr 2006 08:14:58 +0700 (ICT)
From: tran huong 
Subject: [ns] Error when compile NS2.1b7a. Very Urgent, pls help me
To: ns-users@ISI.EDU
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=utf-8

Hi everyone,
I got this error when i compile NS2.1b7a with NS
extension.

/ns-allinone-2/ns-allinone-2.1b7a/lib/libtcl8.3.a(tclUnixPipe.o)(.text+0
xe2): In function `TclpCreateTempFile':
: the use of `tmpnam' is dangerous, better use
`mkstemp'
for i in indep-utils/cmu-scen-gen/setdest
indep-utils/webtrace-conv/dec indep-ut
ils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr
indep-utils/webtrace-conv/
ucb; do ( cd $i; make all; ) done
make[1]: Entering directory
`/ns-allinone-2/ns-allinone-2.1b7a/ns-2.1b7a
/indep-utils/cmu-scen-gen/setdest'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/ns-allinone-2/ns-allinone-2.1b7a/ns-2.1b7a/
indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory
`/ns-allinone-2/ns-allinone-2.1b7a/ns-2.1b7a
/indep-utils/webtrace-conv/dec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/ns-allinone-2/ns-allinone-2.1b7a/ns-2.1b7a/
indep-utils/webtrace-conv/dec'
make[1]: Entering directory
`/ns-allinone-2/ns-allinone-2.1b7a/ns-2.1b7a
/indep-utils/webtrace-conv/epa'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/ns-allinone-2/ns-allinone-2.1b7a/ns-2.1b7a/
indep-utils/webtrace-conv/epa'
make[1]: Entering directory
`/ns-allinone-2/ns-allinone-2.1b7a/ns-2.1b7a
/indep-utils/webtrace-conv/nlanr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/ns-allinone-2/ns-allinone-2.1b7a/ns-2.1b7a/
indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory
`/ns-allinone-2/ns-allinone-2.1b7a/ns-2.1b7a
/indep-utils/webtrace-conv/ucb'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/ns-allinone-2/ns-allinone-2.1b7a/ns-2.1b7a/
indep-utils/webtrace-conv/ucb'

Pls help me to fix this error.
Any help would be appreciated.
Thank a bunch.
regards,







________________________________________________________ 
B?n c? s? d?ng Yahoo! kh?ng? 
H?y xem th? trang ch? Yahoo! Vi?t Nam! 
http://vn.yahoo.com



------------------------------

Message: 4
Date: Wed, 26 Apr 2006 08:08:47 +0100 (BST)
From: minaxi rawat 
Subject: [ns] movie in ns2 formate
To: aug , "[EMAIL PROTECTED]"
, "[EMAIL PROTECTED]" , ns
, "[EMAIL PROTECTED]"
, "[EMAIL PROTECTED]"

Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=iso-8859-1

hi
can any one work on video signal. please send me the link for video signal 
(jurassic park, star war )in ns2 formate as soon as possible. and how i attact 
this to the source. 


---------------------------------
Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.

------------------------------

Message: 5
Date: Wed, 26 Apr 2006 11:19:06 +0200
From: "Ilyes Gouta" 
Subject: Re: [ns] NAM trace file -e option
To: ns-users@ISI.EDU
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1

Hi,

210 bytes is the total size of the packet. This includes the size of
all the headers (RTP/UDP/IP/...) + the size of the payload. You'll
have to use the protocol's access methods to query for the real size
of the payload. However if you're simulating CBR stuff over RTP then
all your calculations would be simplified since the payload size is
likely to be constant through the time (think of an MP3 frame or an
MPEG TS packet, etc.).

Regards,
Ilyes Gouta.

On 4/25/06, Faisal Siddiqui wrote:
>
> Hi,
>
> I am a bit confused with the -e option in the NAM trace file. I believe it
> means the size of the packet. The wording "size of the packet" is throwing
> me off. Does it means the size of the packet header that we are using in our
> script or is it something else. For instance, when I simulate my script with
> the RTP agents, it tells me the size of the rtp packet header is 210 bytes.
> But when I look in the code and count the number of bytes that the packet
> reserves, it is as follows:
>
> ########################
> struct hdr_rtp {
> u_int32_t srcid_; // 4 bytes
> int seqno_; // 4 bytes
> u_int16_t flags_; // 2 bytes
> static int offset_; // 4 bytes
> inline static int& offset() {} // 4 bytes
> inline static hdr_rtp* access() {} // 4 bytes
> u_int32_t& srcid() {} // 4 bytes
> int& seqno() {} // 4 bytes
> u_int16_t& flags() {} // 4 bytes
> };
> ########################
>
> So from here, the size of the RTP packet header is only 34 bytes.
>
> Why does in the trace file with -e option, we get the size of the packet as
> 210 bytes?
>
> Any help is highly appreciated.
>
> Thanks,
> - Faisal
>



------------------------------

Message: 6
Date: Wed, 26 Apr 2006 03:28:40 -0700 (PDT)
From: Chams D 
Subject: [ns] I am a new NS2 user, need help
To: ns-users@ISI.EDU
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=iso-8859-1

Hi,
I am working on my bachelor thesis work with the NS2,
and I want to create a new command that sends 1 packet
to a specific node, by giving the address of this node
as an argument to this function. could you please help
me.
thank you in advance

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



------------------------------

Message: 7
Date: Wed, 26 Apr 2006 18:36:46 +0800
From: Chih-Heng, Ke (???) 
Subject: Re: [ns] movie in ns2 formate
To: "minaxi rawat" , "aug"
, , , "ns"
, "[EMAIL PROTECTED]"
, 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="utf-8"

http://140.116.72.80/~smallko/ns2/myEvalvidNT.htm

Try my work. If there is any suggestion, please let me know.

BRs,
Ke
----- Original Message ----- 
From: minaxi rawat 
To: aug ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; ns ; [EMAIL PROTECTED] ; 
[EMAIL PROTECTED] 
Sent: Wednesday, April 26, 2006 3:08 PM
Subject: [ns] movie in ns2 formate



hi
can any one work on video signal. please send me the link for video signal 
(jurassic park, star war )in ns2 formate as soon as possible. and how i attact 
this to the source. 


---------------------------------
Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.


------------------------------

Message: 8
Date: Wed, 26 Apr 2006 11:46:42 +0100 (BST)
From: jeevesh sharma 
Subject: [ns] Which ad hoc routing protocol is used in 802.11?
To: NS USERS 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=iso-8859-1

Hi All,
Which ad hoc routing protocol is used in 802.11? I can't find any information 
about this. Can any one help me?
Thanks a lot.
Best regards.

jeevesh kumar


---------------------------------
Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.

------------------------------

Message: 9
Date: Wed, 26 Apr 2006 04:00:02 -0700 (PDT)
From: Chams D 
Subject: [ns] Address confusion !!??
To: ns-users@ISI.EDU
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=iso-8859-1

Hi,
Can anyone, tell me what is the difference between
this 2 types of addresses :
ns_addr_t and nsaddr_t

thanx
Best regards

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



------------------------------

Message: 10
Date: Wed, 26 Apr 2006 04:03:12 -0700 (PDT)
From: raja priya 
Subject: [ns] Getting Error : Classfier::no-slot{} default handler
(tcl/lib/ns-lib.tcl)
To: NS 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=iso-8859-1

Dear all,

I tried creating a new simple Agent which broadcasts the packets with its 
fields set statically. I created a linear static topology just to set if the 
broadcast works. The topology is like
0 1 2

Part of my tcl script is 
set p0 [new Agent/Ant]
$node_(0) attach $p0
set p1 [new Agent/Ant]
$node_(1) attach $p1
set p2 [new Agent/Ant]
$node_(1) attach $p2
$ns at 1.0 "$p0 broadcast"
$ns at 1.5 "$p0 broadcast"
$ns at 2.0 "$p1 broadcast"

Now when 0 broadcasts it is correctly received by 1. when 1 broadcasts, it 
should be received by both 0 and 2 since both are within 1's tranmission 
range(???). Now i get the following output :

num_nodes is set 3
INITIALIZE THE LIST xListHead
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
Node 1 received broadcast from 0 with no of neighbors 10
Node 1 received broadcast from 0 with no of neighbors 10
Node 0 received broadcast from 1 with no of neighbors 10
--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o74: no target for slot 0
_o74 type: Classifier/Port
content dump:
classifier _o74
0 offset
0 shift
2147483647 mask
1 slots
slot 255: _o76 (CMUTrace/Recv)
---------- Finished standard no-slot{} default handler ----------

The problem is node2 is not receiving anything and it is showing some error. 
Please help me in fixing this problem. I need this to proceed with my final 
year engineering project. Please help me please...

Regards
S.Rajapriya



---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2?/min or less.

------------------------------

Message: 11
Date: Wed, 26 Apr 2006 13:03:18 +0200
From: "Ilyes Gouta" 
Subject: Re: [ns] Compiling NS2.29.2 on FC5
To: ns-users@ISI.EDU
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1

Hi,

Yeah, FC5 comes with a brand new GCC compiler (the 4.0.x series). This
is the source of all the trouble. I did the same from Tcl/Tk and I was
able to get it up and building. However, I got some other issues w/
OTcl/TclCl related to some shell incompatibilities (expression
evaluation) and then I gave up since a release is meant to run
flawlessly out of the box and it's not up to the users to fix it. I
hope it gets fixed by the next pending NS 2.30 release.

Regards,
Ilyes Gouta.

On 4/26/06, Alex Triffitt wrote:
>
>
>
> I had exactly the same problem and had to give up. I got as far as updating
> the all-in-one package files of TCL and TK so they were version 8.4.13 and
> updated the install file. I then corrected some syntax errors in the
> otcl1.11/configure and otcl1.11/configure.in as per the instruction here:
> http://sourceforge.net/mailarchive/forum.php?thread_id=10098188&forum_id=22760
> Then I had compilation errors with NS which no one seemed to be able to help
> with and it appears that because FC5 comes with the latest GCC compiler it
> doesn't like some of the NS compile commands somehow. Down grading the GCC
> compiler was too much of a head ache so I installed cygwin and now I happily
> run NS in windows. Let me know if you do manage to get it compiled in FC5
> I'd be very interested to try it again
>
> Alex
>
>



------------------------------

Message: 12
Date: Wed, 26 Apr 2006 13:09:19 +0200 (CEST)
From: malin nadine 
Subject: [ns] How to change seed in NS2
To: ns-users@ISI.EDU
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=iso-8859-1

Hello every one

I have used these commands to change the seed in
ns-2:

set val(seed) 0.0


but when I run the same simulation many times, I got
the same 
sesults.


is there any help

Thanks in advence

Nadine






___________________________________________________________________________ 
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos 
services pr?f?r?s : v?rifiez vos nouveaux mails, lancez vos recherches et 
suivez l'actualit? en temps r?el. 
Rendez-vous sur http://fr.yahoo.com/set



------------------------------

Message: 13
Date: 26 Apr 2006 11:25:26 -0000
From: "rahul barche" 
Subject: [ns] help regarding for awk file
To: "ns_users_request" , "ns_users"

Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=iso-8859-1


i m working on simulation of adhoc networks. i want throughput & Delay 
calculation awk program for trace file analysis.
thanks

------------------------------

Message: 14
Date: Wed, 26 Apr 2006 13:34:57 +0200 (CEST)
From: malin nadine 
Subject: [ns] need urgent help
To: ns-users@ISI.EDU
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=iso-8859-1


Hi 


In file packet.h , I have added the following line:

typedef set addr_set_t;

When I compile NS, I have the following error:


*****************************************

In file included from tcp-full.cc:91:
template.h:96: redefinition of `template 
void swap(Type &, Type &)'
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/../../../../include/g++-3/stl_algobase.h:78:
`template void swap(_Tp &, _Tp &)'
previously declared here
template.h:96: redefinition of `void swap(Type &, Type
&)'
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/../../../../include/g++-3/stl_algobase.h:78:
`void swap(_Tp &, _Tp &)' previously defined here
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/../../../../include/g++-3/stl_relops.h:
In function `bool operator >=(const
TracedInt &, const TracedInt &)':
tcp-full.cc:1040: instantiated from here
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/../../../../include/g++-3/stl_relops.h:53:
no match for `const TracedInt & < const TracedInt &'
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/../../../../include/g++-3/stl_relops.h:53:
candidates are: operator <(int, int) 
make: *** [tcp-full.o] Erreur 1

****************************************

What is the origine of this error....Is there any one
hwo can help me

Thanks in advans 
nadine







___________________________________________________________________________ 
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos 
services pr?f?r?s : v?rifiez vos nouveaux mails, lancez vos recherches et 
suivez l'actualit? en temps r?el. 
Rendez-vous sur http://fr.yahoo.com/set



------------------------------

Message: 15
Date: Wed, 26 Apr 2006 14:22:24 +0200
From: "Mohammad Abdul Awal" 
Subject: Re: [ns] Address confusion !!??
To: "Chams D" , 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

ns_addr_t is a structure like below.
struct ns_addr_t{
int32_t nsaddr_t;
int32_t nsmask_t;
.......
};

nsaddr_t is a 32 bit integer like below.
typedef int32_t nsaddr_t;

for details, please have a look in ~/ns-2.2x/config.h

Regards,
Abdul Awal.

----- Original Message ----- 
From: "Chams D" 
To: 
Sent: Wednesday, April 26, 2006 1:00 PM
Subject: [ns] Address confusion !!??



Hi,
Can anyone, tell me what is the difference between

=== message truncated ===


                    
     





                        
---------------------------------
Yahoo! Mail goes everywhere you do.  Get it on your phone.

Reply via email to