[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug report
Hi,
I have a Segmentation Fault when I run the attached script.
If I change maxpkts_ to very small or very large value there
is no more problem.
Arnaud.
-------------------------------------------
set ns [new Simulator]
set n(1) [$ns node]
set n(2) [$ns node]
$ns duplex-link $n(1) $n(2) 1Mb 0.1s DropTail
set tcp_source1 [new Agent/TCP]
set tcp_sink1 [new Agent/TCPSink]
$ns attach-agent $n(1) $tcp_source1
$ns attach-agent $n(2) $tcp_sink1
$ns connect $tcp_source1 $tcp_sink1
Application/Traffic/CBR set maxpkts_ 50
set cbr [new Application/Traffic/CBR]
$cbr attach-agent $tcp_source1
$ns at 0 "$cbr start"
$ns at 100.0 "exit 0"
$ns run
-------------------------------------------
--
----------------------------------------------------------------------
Arnaud Legout
Institut Eurecom Phone : 00.33.4.93.00.26.61
2229, route des Cretes Fax : 00.33.4.93.00.26.27
BP 193 E-mail: [email protected]
06904 Sophia Antipolis cedex Web : http://www.eurecom.fr/~legout
FRANCE
----------------------------------------------------------------------