File: pkt.awk

package info (click to toggle)
ns2 2.35%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 78,796 kB
  • sloc: cpp: 172,923; tcl: 107,130; perl: 6,391; sh: 6,143; ansic: 5,846; makefile: 816; awk: 525; csh: 355
file content (19 lines) | stat: -rw-r--r-- 261 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
if ($4 != 0) {
  	if (($1 == src) && ($2 == dst) && ($4 == size)) {
		t=$3-time
		if ((t < 0.001) && ($4 > 500)) {
			if (($1 != preS) || ($2 != preD)) {
#				print $1, $2, $4
				print $4
				preS=$1
				preD=$2
			}
		}
	}
}
src=$1
dst=$2
time=$3
size=$4
}