Skip to content

Commit

Permalink
[IM] ignore sflow CNTR records
Browse files Browse the repository at this point in the history
  • Loading branch information
nickhilliard committed Jun 7, 2019
1 parent f8614c7 commit e581965
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/runtime/sflow/sflow-to-rrd-handler
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@ while (<SFLOWTOOL>) {
# moment, but it's useful to collect it anyway
# FLOW,193.242.111.152,2,21,0013136f2fc0,0010a52f261f,0x0800,10,10,94.1.115.114,80.1.2.222,6,0x00,124,1863,750,0x18,179,165,1024
my @sample = split (/,/); # don't use regexp here for performance reasons
my (undef, $agent, $srcswport, $dstswport, $srcmac, $dstmac, $ethertype, $vlan, undef,
my ($sampletype, $agent, $srcswport, $dstswport, $srcmac, $dstmac, $ethertype, $vlan, undef,
$srcip, $dstip, $protocol, $tos, $ttl,
$srcport, $dstport, $tcpflags, $pktsize, $payloadsize, $samplerate) = @sample;

next unless ($sampletype eq 'FLOW');

if ($ethertype eq '0x0800') {
$ipprotocol = 4;
} elsif ($ethertype eq '0x86dd') {
Expand Down

0 comments on commit e581965

Please sign in to comment.