UNPKG

node-netflowv9

Version:

NetFlow Version 1,5,7,9 compatible library for Node.JS. It also support NetFlow v9 options template & data

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;