http://140.116.72.80/~smallko/ns2/mflood.htm
相关代码如下: in tcl/lib/ns-mobilenode.tcl
2.26 > line 249 to 255
249 set dmux_ [$self demux] 250 set classifier_ [$self entry] 251 252 if { [Simulator set RouterTrace_] == "ON" } { 253 # 254 # Send Target 255 #
>******************
2.27
line 249 to 258
249 set dmux_ [$self demux] 250 set classifier_ [$self entry] 251 252 # let the routing agent know about the port dmux 253 $agent port-dmux $dmux_ 254 255 if { [Simulator set RouterTrace_] == "ON" } { 256 # 257 # Send Target 258 # >*******************
In line 253, it accesses "port-dmux".
This causes the Mflood protocol faiulre in 2.27, becaues it access a non-existing function called port-dmux on the Agent object. |