Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

node-bgpdump2

codeout15MIT0.1.1

NodeJS binding of bgpdump2

bgpdump, bgpdump2, mrt, routes, bgp, longest-match

readme

node-bgpdump2

Build Status

Description

NodeJS binding of bgpdump2.

Installation

npm install node-bgpdump2

Usage

var BGPDump = require('node-bgpdump2')
bgpdump = new BGPDump('path_to_rib.bz2')
console.log(bgpdump.lookup('8.8.8.8'))

Limitations

  • Only support IPv4
  • Only lookup option implemented

Copyright (c) 2015 Shintaro Kojima. Code released under the MIT license.

changelog

2015-03-25 Yasuhiro Ohara yasu@nttv6.jp

* src/bgpdump_file.c: support for gzip file.

2015-03-17 Yasuhiro Ohara yasu@nttv6.jp

* src/bgpdump_data.c: bug fix for udiffs of '(' prefixes.
* script/search_prefix_name.sh: resolve IP addr to AS Descr.

2015-03-14 Yasuhiro Ohara yasu@nttv6.jp

* script/compare-peer-with-others*.sh: scripts to compare
peer routes.
* src/bgpdump_option.[ch]: add, refactoring.
* src/bgpdump.c: udiff with table lookup.