mirror of
https://github.com/manuelkasper/AS-Stats.git
synced 2025-02-20 11:44:12 +08:00
Support extendedflow
Signed-off-by: jack <jack@k-net.pro>
This commit is contained in:
parent
523578f432
commit
fc940ce20f
@ -503,8 +503,19 @@ sub parse_sflow {
|
||||
# only process standard structures
|
||||
next if ($sFlowSample->{'sampleTypeEnterprise'} != 0);
|
||||
|
||||
# only process normal flow samples
|
||||
next if ($sFlowSample->{'sampleTypeFormat'} != 1);
|
||||
my $snmpin;
|
||||
my $snmpout;
|
||||
if ($sFlowSample->{'sampleTypeFormat'} == 1) {
|
||||
$snmpin = $sFlowSample->{'inputInterface'};
|
||||
$snmpout = $sFlowSample->{'outputInterface'};
|
||||
} elsif ($sFlowSample->{'sampleTypeFormat'} == 3) {
|
||||
next if $sFlowSample->{'inputInterfaceFormat'} != 0;
|
||||
next if $sFlowSample->{'outputInterfaceFormat'} != 0;
|
||||
$snmpin = $sFlowSample->{inputInterfaceValue};
|
||||
$snmpout = $sFlowSample->{outputInterfaceValue};
|
||||
} else {
|
||||
next;
|
||||
}
|
||||
|
||||
my $snmpin = $sFlowSample->{'inputInterface'};
|
||||
my $snmpout = $sFlowSample->{'outputInterface'};
|
||||
|
Loading…
x
Reference in New Issue
Block a user