delian / node-sflow

Sflow module for Node.JS
GNU Lesser General Public License v3.0
9 stars 5 forks source link

Fix parsing flow records with enterprise set. #1

Closed kmpm closed 10 years ago

kmpm commented 10 years ago

pmacct (used by vyatta + vyos) is setting 8800 and 4300 as enterprise in sample records which makes this module crash without something to fix it.

If the enterprise in a record is >0 the flow will get type='unknown' and a data property with the raw buffer data.