bin/asstatd.pl: parse_sflow: switching to RFC2863 ifIndex

This commit is contained in:
Alarig Le Lay 2021-10-26 22:20:15 +02:00
parent 412127ac7d
commit 5c32090035
No known key found for this signature in database
GPG Key ID: 7AFE62C6DF8BCDEC

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;
}