From f555c163f90c9de17ebcef8313f86404c5174ca9 Mon Sep 17 00:00:00 2001 From: mcr Date: Thu, 7 Oct 1999 23:47:09 +0000 Subject: Initial revision --- atime.awk | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 atime.awk (limited to 'atime.awk') diff --git a/atime.awk b/atime.awk new file mode 100644 index 00000000..b42dec24 --- /dev/null +++ b/atime.awk @@ -0,0 +1,18 @@ +$6 ~ /^ack/ && $5 !~ /[SFR]/ { + # given a tcpdump ftp trace, output one line for each ack + # in the form + # + # where is the time packet was acked (in seconds with + # zero at time of first packet) and is the tcp sequence + # number of the ack divided by 1024 (i.e., Kbytes acked). + # + # convert time to seconds + n = split ($1,t,":") + tim = t[1]*3600 + t[2]*60 + t[3] + if (! tzero) { + tzero = tim + OFS = "\t" + } + # get packet sequence number + printf "%7.2f\t%g\n", tim-tzero, $7/1024 + } -- cgit v1.2.1