Hi again,
I had a problem trying to change my agents ports. Does anyone know how
can I solve it?
Best regards,
Alexandre Malhão
#Setup a TCP connection
set tcp [new Agent/TCP]
$ns attach-agent $n0 $tcp
$tcp set agent_port_ 3
set sink [new Agent/TCPSink]
$ns attach-agent $n3 $sink
$sink set agent_port_ 4
$ns connect $tcp $sink
$tcp set fid_ 1
--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o87: no target for slot 4
_o87 type: Classifier/Port
content dump:
classifier _o87
0 offset
0 shift
2147483647 mask
2 slots
slot 0: _o86 (Agent/TCPSink)
slot 1: _o91 (Agent/Null)
---------- Finished standard no-slot{} default handler ----------