UNPKG

@gavinaiken/netflowv9

Version:

NetFlow Version 1,5,7,9 compatible library (with support for NetFlow v9 options template & data) for Node.JS. It also has experimental support for IPFIX (NetFlow v10).

14 lines (12 loc) 351 B
function nfInfoTemplates(rinfo) { if (typeof this.templates === 'undefined') { this.templates = {}; } var templates = this.templates; var id = rinfo.address + ':' + rinfo.port; if (typeof templates[id] === 'undefined') { this.templates[id] = {}; } return templates[id]; } module.exports = nfInfoTemplates;