Merge pull request #102 from alarig/master

bin/asstatd.pl: parse_sflow: removing snmpin/snmpout >= 1073741823 test
This commit is contained in:
Manuel Kasper 2021-10-29 21:34:46 +02:00 committed by GitHub
commit 0b9ea81503
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -578,10 +578,9 @@ sub parse_sflow {
next;
}
if ($snmpin >= 1073741823 || $snmpout >= 1073741823) {
# invalid interface index - could be dropped packet or internal
# (routing protocol, management etc.)
#print "Invalid interface index $snmpin/$snmpout\n";
if ($snmpin > 2147483647 || $snmpout > 2147483647) {
# invalid RFC 2863 ifIndex
print "Invalid interface index $snmpin/$snmpout\n";
next;
}