hello,everyone,i want to set an agent's address and port ,so i use
#$tcp0 set agent_port_ 888 #$tcp0 set dst_port_ 999 #$tcp0 set dst_addr_ 3 $sink0 set agent_port 999 $sink0 set agent_addr 3 $ns connect $tcp0 $sink0 but after simulating, i find in the .tr file ,the dst's port and addr is still "3.0", and not the 3.999,and in the c++ file,i still see the same result of the packets in the queue ,so if want to change the dst_port_ and dst_addr of a packet in the init stage,how need i do?