亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ns-mobilenode.tcl

?? ns2.31下的UWB(Ultra WideBand)實現(xiàn)
?? TCL
?? 第 1 頁 / 共 2 頁
字號:
# -*-	Mode:tcl; tcl-indent-level:8; tab-width:8; indent-tabs-mode:t -*-## Copyright (c) 1998-2000 Regents of the University of California.# All rights reserved.# # Redistribution and use in source and binary forms, with or without# modification, are permitted provided that the following conditions# are met:# 1. Redistributions of source code must retain the above copyright#    notice, this list of conditions and the following disclaimer.# 2. Redistributions in binary form must reproduce the above copyright#    notice, this list of conditions and the following disclaimer in the#    documentation and/or other materials provided with the distribution.# 3. All advertising materials mentioning features or use of this software#    must display the following acknowledgement:# 	This product includes software developed by the MASH Research# 	Group at the University of California Berkeley.# 4. Neither the name of the University nor of the Research Group may be#    used to endorse or promote products derived from this software without#    specific prior written permission.# # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF# SUCH DAMAGE.## $Header: /cvsroot/nsnam/ns-2/tcl/lib/ns-mobilenode.tcl,v 1.55 2005/09/22 18:34:03 haldar Exp $## Ported from CMU-Monarch project's mobility extensions -Padma, 10/98.## IT IS NOT ENCOURAGED TO SUBCLASSS MOBILENODE CLASS DEFINED IN THIS FILE#======================================================================# The ARPTable class#======================================================================ARPTable instproc init args {	eval $self next $args		;# parent class constructor}ARPTable set bandwidth_         0ARPTable set delay_             5us#======================================================================# The Node/MobileNodeNode class#======================================================================Node/MobileNode instproc init args {#  	# I don't care about address classifier; it's not my business#  	# All I do is to setup port classifier so we can do broadcast, #  	# and to set up interface stuff.#  	$self attach-node $node#  	$node port-notify $self	eval $self next $args	$self instvar nifs_ arptable_ X_ Y_ Z_ nodetype_	set X_ 0.0	set Y_ 0.0	set Z_ 0.0        set arptable_ ""                ;# no ARP table yet	set nifs_	0		;# number of network interfaces	# Mobile IP node processing        $self makemip-New$nodetype_}#----------------------------------------------------------------------# XXX Following are the last remnant of nodetype_. Need to be completely # removed, however, we need a better mechanism to distinguish vanilla # mobile node from MIP base station, and MIP mobile host.Node/MobileNode instproc makemip-NewMobile {} {}Node/MobileNode instproc makemip-NewBase {} {}Node/MobileNode instproc makemip-New {} {}Node/MobileNode instproc makemip-NewMIPBS {} {	$self instvar regagent_ encap_ decap_ agents_ id_	set dmux [new Classifier/Port/Reserve]	$dmux set mask_ 0x7fffffff	$dmux set shift_ 0	$self install-demux $dmux   	set regagent_ [new Agent/MIPBS $self]	$self attach $regagent_ [Node/MobileNode set REGAGENT_PORT]	$self attach-encap 	$self attach-decap}Node/MobileNode instproc attach-encap {} {	$self instvar encap_ 		set encap_ [new MIPEncapsulator]	$encap_ set mask_ [AddrParams NodeMask 1]	$encap_ set shift_ [AddrParams NodeShift 1]	#set mask 0x7fffffff	#set shift 0	set nodeaddr [AddrParams addr2id [$self node-addr]]	$encap_ set addr_ [expr ( ~([AddrParams NodeMask 1] << \			[AddrParams NodeShift 1]) & $nodeaddr )]	$encap_ set port_ 1	$encap_ target [$self entry]	$encap_ set node_ $self}Node/MobileNode instproc attach-decap {} {	$self instvar decap_ dmux_ agents_	set decap_ [new Classifier/Addr/MIPDecapsulator]	lappend agents_ $decap_	$decap_ set mask_ [AddrParams NodeMask 1]	$decap_ set shift_ [AddrParams NodeShift 1]	$dmux_ install [Node/MobileNode set DECAP_PORT] $decap_}Node/MobileNode instproc makemip-NewMIPMH {} {	$self instvar regagent_ 	set dmux [new Classifier/Port/Reserve]	$dmux set mask_ 0x7fffffff	$dmux set shift_ 0	$self install-demux $dmux	set regagent_ [new Agent/MIPMH $self]	$self attach $regagent_ [Node/MobileNode set REGAGENT_PORT]	$regagent_ set mask_ [AddrParams NodeMask 1]	$regagent_ set shift_ [AddrParams NodeShift 1] 	$regagent_ set dst_addr_ [expr (~0) << [AddrParams NodeShift 1]]	$regagent_ set dst_port_ 0	$regagent_ node $self}#----------------------------------------------------------------------Node/MobileNode instproc reset {} {	$self instvar arptable_ nifs_ netif_ mac_ ifq_ ll_ imep_        for {set i 0} {$i < $nifs_} {incr i} {		$netif_($i) reset		$mac_($i) reset		$ll_($i) reset		$ifq_($i) reset		if { [info exists opt(imep)] && $opt(imep) == "ON" } { 			$imep_($i) reset 		}	}	if { $arptable_ != "" } {		$arptable_ reset 	}}## Attach an agent to a node.  Pick a port and# bind the agent to the port number.# if portnumber is 255, default target is set to the routing agent#Node/MobileNode instproc add-target { agent port } {	$self instvar dmux_ imep_ toraDebug_ 	set ns [Simulator instance]	set newapi [$ns imep-support]	$agent set sport_ $port	# special processing for TORA/IMEP node	set toraonly [string first "TORA" [$agent info class]] 	if {$toraonly != -1 } {		$agent if-queue [$self set ifq_(0)]  ;# ifq between LL and MAC		#		# XXX: The routing protocol and the IMEP agents needs handles		# to each other.		#		$agent imep-agent [$self set imep_(0)]		[$self set imep_(0)] rtagent $agent	}		# Special processing for AODV	set aodvonly [string first "AODV" [$agent info class]] 	if {$aodvonly != -1 } {		$agent if-queue [$self set ifq_(0)]   ;# ifq between LL and MAC	}		#<zheng: add>	# Special processing for ZBR	#set zbronly [string first "ZBR" [$agent info class]] 	#if {$zbronly != -1 } {	#	$agent if-queue [$self set ifq_(0)]   ;# ifq between LL and MAC	#}	#</zheng: add>	if { $port == [Node set rtagent_port_] } {					# Ad hoc routing agent setup needs special handling		$self add-target-rtagent $agent $port		return	}	# Attaching a normal agent	set namfp [$ns get-nam-traceall]	if { [Simulator set AgentTrace_] == "ON" } {		#		# Send Target		#		if {$newapi != ""} {			set sndT [$self mobility-trace Send "AGT"]		} else {			set sndT [cmu-trace Send AGT $self]		}		if { $namfp != "" } {			$sndT namattach $namfp		}		$sndT target [$self entry]		$agent target $sndT		#		# Recv Target		#		if {$newapi != ""} {			set rcvT [$self mobility-trace Recv "AGT"]		} else {			set rcvT [cmu-trace Recv AGT $self]		}		if { $namfp != "" } {			$rcvT namattach $namfp		}		$rcvT target $agent		$dmux_ install $port $rcvT	} else {		#		# Send Target		#		$agent target [$self entry]		#		# Recv Target		#		$dmux_ install $port $agent	}}Node/MobileNode instproc add-target-rtagent { agent port } {	$self instvar imep_ toraDebug_ 	set ns [Simulator instance]	set newapi [$ns imep-support]	set namfp [$ns get-nam-traceall]	set dmux_ [$self demux]	set classifier_ [$self entry]	# let the routing agent know about the port dmux	$agent port-dmux $dmux_	if { [Simulator set RouterTrace_] == "ON" } {		#		# Send Target		#		if {$newapi != ""} {			set sndT [$self mobility-trace Send "RTR"]		} else {			set sndT [cmu-trace Send "RTR" $self]		}		if { $namfp != "" } {			$sndT namattach $namfp		}		if { $newapi == "ON" } {			$agent target $imep_(0)			$imep_(0) sendtarget $sndT			# second tracer to see the actual			# types of tora packets before imep packs them			if { [info exists toraDebug_] && $toraDebug_ == "ON"} {				set sndT2 [$self mobility-trace Send "TRP"]				$sndT2 target $imep_(0)				$agent target $sndT2			}		} else {  ;#  no IMEP			$agent target $sndT		}		$sndT target [$self set ll_(0)]		#		# Recv Target		#		if {$newapi != ""} {			set rcvT [$self mobility-trace Recv "RTR"]		} else {			set rcvT [cmu-trace Recv "RTR" $self]		}		if { $namfp != "" } {			$rcvT namattach $namfp		}		if {$newapi == "ON" } {			[$self set ll_(0)] up-target $imep_(0)			$classifier_ defaulttarget $agent			# need a second tracer to see the actual			# types of tora packets after imep unpacks them			# no need to support any hier node			if {[info exists toraDebug_] && $toraDebug_ == "ON" } {				set rcvT2 [$self mobility-trace Recv "TRP"]				$rcvT2 target $agent				$classifier_ defaulttarget $rcvT2			}		} else {			$rcvT target $agent			$classifier_ defaulttarget $rcvT			$dmux_ install $port $rcvT		}	} else {		#		# Send Target		#		# if tora is used		if { $newapi == "ON" } {			$agent target $imep_(0)			# second tracer to see the actual			# types of tora packets before imep packs them			if { [info exists toraDebug_] && $toraDebug_ == "ON"} {				set sndT2 [$self mobility-trace Send "TRP"]				$sndT2 target $imep_(0)				$agent target $sndT2			}			$imep_(0) sendtarget [$self set ll_(0)]					} else {  ;#  no IMEP			$agent target [$self set ll_(0)]		}    		#		# Recv Target		#		if {$newapi == "ON" } {			[$self set ll_(0)] up-target $imep_(0)			$classifier_ defaulttarget $agent			# need a second tracer to see the actual			# types of tora packets after imep unpacks them			# no need to support any hier node			if {[info exists toraDebug_] && $toraDebug_ == "ON" } {				set rcvT2 [$self mobility-trace Recv "TRP"]				$rcvT2 target $agent				[$self set classifier_] defaulttarget $rcvT2			}		} else {			$classifier_ defaulttarget $agent			$dmux_ install $port $agent		}	}}## The following setups up link layer, mac layer, network interface# and physical layer structures for the mobile node.#Node/MobileNode instproc add-interface { channel pmodel lltype mactype qtype qlen iftype anttype topo inerrproc outerrproc fecproc } {	$self instvar arptable_ nifs_ netif_ mac_ ifq_ ll_ imep_ inerr_ outerr_ fec_		set ns [Simulator instance]	set imepflag [$ns imep-support]	set t $nifs_	incr nifs_	set netif_($t)	[new $iftype]		;# interface	set mac_($t)	[new $mactype]		;# mac layer	set ifq_($t)	[new $qtype]		;# interface queue	set ll_($t)	[new $lltype]		;# link layer        set ant_($t)    [new $anttype]	$ns mac-type $mactype	set inerr_($t) ""	if {$inerrproc != ""} {		set inerr_($t) [$inerrproc]	}	set outerr_($t) ""	if {$outerrproc != ""} {		set outerr_($t) [$outerrproc]	}	set fec_($t) ""	if {$fecproc != ""} {		set fec_($t) [$fecproc]	}	set namfp [$ns get-nam-traceall]        if {$imepflag == "ON" } {              		# IMEP layer		set imep_($t) [new Agent/IMEP [$self id]]		set imep $imep_($t)		set drpT [$self mobility-trace Drop "RTR"]		if { $namfp != "" } {			$drpT namattach $namfp		}		$imep drop-target $drpT		$ns at 0.[$self id] "$imep_($t) start"   ;# start beacon timer        }	#	# Local Variables	#	set nullAgent_ [$ns set nullAgent_]	set netif $netif_($t)	set mac $mac_($t)	set ifq $ifq_($t)	set ll $ll_($t)	set inerr $inerr_($t)	set outerr $outerr_($t)	set fec $fec_($t)	#	# Initialize ARP table only once.	#	if { $arptable_ == "" } {		set arptable_ [new ARPTable $self $mac]		# FOR backward compatibility sake, hack only		if {$imepflag != ""} {			set drpT [$self mobility-trace Drop "IFQ"]		} else {			set drpT [cmu-trace Drop "IFQ" $self]		}		$arptable_ drop-target $drpT		if { $namfp != "" } {			$drpT namattach $namfp		}        }	#	# Link Layer	#	$ll arptable $arptable_	$ll mac $mac	$ll down-target $ifq	if {$imepflag == "ON" } {		$imep recvtarget [$self entry]		$imep sendtarget $ll		$ll up-target $imep        } else {		$ll up-target [$self entry]	}	#	# Interface Queue	#	$ifq target $mac	$ifq set limit_ $qlen

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕一区二区在线播放| 国产麻豆视频一区| 国产精品自拍一区| 精品视频在线看| 2023国产精品| 久久国产生活片100| 欧美性感一类影片在线播放| 国产日产欧美一区| 久久66热re国产| 欧美区在线观看| 一区二区三区精密机械公司| 久久66热偷产精品| 日韩一二三四区| 婷婷国产在线综合| 欧美性受极品xxxx喷水| 国产精品久久久99| 国产精品99久久不卡二区| 欧美人狂配大交3d怪物一区| 日韩毛片高清在线播放| 国产一区二区在线观看视频| 91精品麻豆日日躁夜夜躁| 一区二区三区在线高清| 91玉足脚交白嫩脚丫在线播放| 久久久综合激的五月天| 麻豆精品在线播放| 日韩三级电影网址| 久久er99热精品一区二区| 欧美肥胖老妇做爰| 亚洲成a人片在线观看中文| 欧美在线观看视频一区二区三区| 国产精品福利一区二区三区| 成人av网站在线观看免费| 亚洲一区二区三区中文字幕在线| 国产99久久久国产精品| 国产精品水嫩水嫩| av一区二区三区黑人| 中文字幕一区三区| 91免费视频网| 亚瑟在线精品视频| 欧美一区二区三区白人 | 欧美日本韩国一区二区三区视频| 亚洲精品乱码久久久久久日本蜜臀| 91网站视频在线观看| 亚洲精品网站在线观看| 色综合久久88色综合天天免费| 一区二区三区中文字幕电影| 欧美视频在线观看一区二区| 首页亚洲欧美制服丝腿| 日韩一区二区免费在线电影| 精品系列免费在线观看| 国产精品美女久久久久久久久久久 | 日本伦理一区二区| 一片黄亚洲嫩模| 欧美二区在线观看| 九九九精品视频| 欧美激情一区在线| 一本到一区二区三区| 婷婷亚洲久悠悠色悠在线播放| 日韩精品资源二区在线| 国产精品99久久久久久久vr| 亚洲另类在线制服丝袜| 欧美一区二区观看视频| 福利视频网站一区二区三区| 亚洲日本韩国一区| 精品国产一区二区三区不卡 | 美国十次了思思久久精品导航| 国产午夜亚洲精品羞羞网站| 一本大道久久精品懂色aⅴ| 日韩精品午夜视频| 欧美国产激情二区三区| 欧美日韩美少妇| 国产久卡久卡久卡久卡视频精品| 亚洲欧洲日产国码二区| 日韩午夜av电影| 91天堂素人约啪| 韩国v欧美v日本v亚洲v| 一区av在线播放| 中文字幕欧美日韩一区| 制服丝袜亚洲精品中文字幕| 成人av电影在线网| 久久99精品国产麻豆婷婷洗澡| 一区二区三区在线免费视频 | 精品乱码亚洲一区二区不卡| 99热在这里有精品免费| 九色综合狠狠综合久久| 一区二区视频免费在线观看| 国产丝袜欧美中文另类| 日韩一区二区中文字幕| 色偷偷成人一区二区三区91| 国产精品一区三区| 日韩中文字幕不卡| 一区二区免费在线播放| 国产偷v国产偷v亚洲高清| 91麻豆精品国产91久久久资源速度 | 综合电影一区二区三区 | 在线不卡中文字幕| 欧美在线观看视频一区二区三区| 不卡的av电影在线观看| 狠狠色2019综合网| 男女性色大片免费观看一区二区 | 欧美成人女星排行榜| 欧美日韩免费观看一区三区| 99精品偷自拍| 成人国产电影网| 国产69精品久久久久毛片 | 91小视频免费观看| av综合在线播放| 成人听书哪个软件好| 激情偷乱视频一区二区三区| 久久精品国产精品亚洲综合| 日韩极品在线观看| 亚洲chinese男男1069| 亚洲一区视频在线| 亚洲自拍偷拍av| 亚洲123区在线观看| 午夜精品福利在线| 首页欧美精品中文字幕| 免费欧美在线视频| 久久福利资源站| 激情六月婷婷久久| 风间由美一区二区三区在线观看| 国产精品影视在线| 99久久精品国产精品久久| 成人av高清在线| 91豆麻精品91久久久久久| 91美女视频网站| 欧美日韩一级黄| 日韩欧美国产一区二区三区 | 中文字幕在线观看不卡视频| 国产精品不卡在线观看| 亚洲人成网站精品片在线观看| 一区二区三区中文字幕电影 | 亚洲一区二区三区三| 亚洲一区二区在线播放相泽 | 一区二区成人在线视频 | 日韩一级免费观看| 久久只精品国产| 中文字幕在线观看不卡视频| 亚洲影院在线观看| 亚洲gay无套男同| 国产精品一区二区男女羞羞无遮挡| 成人精品视频一区二区三区| 91美女在线观看| 精品久久久久久久人人人人传媒 | 中文字幕欧美国产| 亚洲二区视频在线| 国产一区啦啦啦在线观看| 色综合天天性综合| 5566中文字幕一区二区电影 | 午夜一区二区三区在线观看| 五月天激情小说综合| 久久99国产精品麻豆| 色婷婷久久久久swag精品| 精品久久久久久最新网址| 最新中文字幕一区二区三区 | 五月天激情综合| 国产精品亚洲第一| 欧美精品久久一区| 国产精品欧美一区二区三区| 午夜欧美电影在线观看| 国产精品996| 欧美一区二区精品久久911| 中文字幕亚洲成人| 精品亚洲成a人| 欧美喷潮久久久xxxxx| 国产精品久久久久永久免费观看| 男女激情视频一区| 欧美三级日韩三级国产三级| 中文字幕乱码一区二区免费| 蜜桃视频在线观看一区| 91视视频在线直接观看在线看网页在线看| 欧美一区二区三区电影| 亚洲午夜精品在线| 丁香天五香天堂综合| 日韩三级av在线播放| 亚洲国产aⅴ成人精品无吗| 国产成人精品1024| 日韩午夜在线观看| 图片区小说区区亚洲影院| 99视频国产精品| 国产精品少妇自拍| 国产伦精品一区二区三区免费迷 | 一区免费观看视频| 成人综合激情网| 久久免费电影网| 国产美女视频91| 精品国产成人在线影院 | 日韩电影一区二区三区四区| 91色.com| 樱桃视频在线观看一区| jlzzjlzz亚洲女人18| 日本一区二区三区免费乱视频| 久久精品久久精品| www一区二区| 国产成人在线视频播放| 久久网站热最新地址| 精品无人码麻豆乱码1区2区| 日韩久久久精品| 国内外成人在线视频| 久久在线免费观看|