⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wlan-nav

📁 柯老师网站上找到的
💻
字号:
#!/bin/tcsh## Channel utilization:# works on a trace file produced by ns# outputs idle time and the collision time on the channel between# the first and the (possibly unfinished) last transmission# for now: assumes that all MACs are on a single channelif ( $#argv != 1 ) then  echo usage:  echo "      " $0 \<scenario\>  exit 1endifset scenario = $1set tracefile = $scenario.trset outfile = $scenario.navrm -f $outfileegrep "\-Nl MAC " $tracefile | gawk -v outfile=$outfile '{				\	if (($1 == "x") && ($29 == "BEACON")) {						\		print $3, 0.0 >> outfile;						\		print $3, 1.0 >> outfile;						\		nav = 1;								\	}										\	if ((nav == 1) && ($1 == "s")) {						\		print $3, 1.0 >> outfile;						\		print $3, 0.0 >> outfile;						\		nav = 0;								\	}										\}'

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -