Greg Sarsons wrote:
>
> Hopefully someone can point/help me out. What is below is an extract of
> packet capture ... similar to tcpdump. What I want to do is to
> determine the amount of traffic a port has on it. I just plan on
> redirecting the output to this program.
>
> My thoughts are to
Here is a shot,. Unsure what to do when you find a icmp(in this becomes port
0), but would need to address this since you talk about but don't say what you want to
do:
#!perl -w
my %MyHash = ();
my $MyPort;
my $MyType;
my $MyLen;
my ( $MyLine1, $MyLine2, $MyLine3) ;
while ( ) {
ch