From 496e9a3fc8e03db3bc1a33d7afc4f8e47be7440d Mon Sep 17 00:00:00 2001 From: hjp Date: Thu, 28 Jul 2005 09:34:05 +0000 Subject: [PATCH] Fixed parsing of TCP packets. --- tcpdump_tools/tcpdump_sum2.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tcpdump_tools/tcpdump_sum2.pl b/tcpdump_tools/tcpdump_sum2.pl index a52210b..3e2874a 100755 --- a/tcpdump_tools/tcpdump_sum2.pl +++ b/tcpdump_tools/tcpdump_sum2.pl @@ -34,15 +34,15 @@ while (<>) { $sum{$con}->[$secs] += $3; - } elsif ($rest =~ m/^. ack (\d+) win (\d+) \(DF\)/) { + } elsif ($rest =~ m/^. ack (\d+) win (\d+) .*\(DF\)/) { # tcp ack } else { - #print stderr "unparseable2: $_"; + print stderr "unparseable2: $_"; } } else { - #print stderr "unparseable1: $_"; + print stderr "unparseable1: $_"; } }