I am trying to find out how to add a new connector element to a single link. This element is a dropper. I can add it to every link (which isn't very useful) but can't manage to add it to a single link.
Thus far I have tried adding the following code to ns-link.tcl: SimpleLink instproc insert-drop {dropper} { $self instvar ttl_ $dropper target [$ttl_ target] $ttl target $dropper } I have then added an appropriate link in my simulation script using: set l1 [$ns simplex-link $n5 $n3 1Mb 5ms DropTail] I then create a new dropper and try to call the above function using: $l1 insert-drop $dropper_ After recompiling everything when I try and run NS I get the error message Invalid command name "_o26 _o46 _o70 _o94" while executing "$l1 insert-drop $dropper_" Any idea what I am doing wrong? Is there a better way of doing this? Toby Moncaster Future Communications Architecture Networks Research Centre BT Group Chief Technology Office _________________________________________________ t: (+44) (0) 1473 648734 m: (+44) (0) 7764 185416 British Telecommunications plc Registered office: 81 Newgate Street London EC1A 7AJ Registered in England no. 1800000 This electronic message contains information from British Telecommunications plc which may be privileged or confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone or email (to the numbers or address above) immediately. Activity and use of the British Telecommunications plc email system is monitored to secure its effective operation and for other lawful business purposes. Communications using this system will also be monitored and may be recorded to secure effective operation and for other lawful business purposes.