A simple MRT parser written in Ruby, which uses the BinData library.

Marek Küthe ddfd06ae07 forked from https://codeberg.org/mark22k/BgpLookup/commit/975c1c1a7496df3f08aa7c445ea049351113b73d 10 months ago
.gitignore ddfd06ae07 forked from https://codeberg.org/mark22k/BgpLookup/commit/975c1c1a7496df3f08aa7c445ea049351113b73d 10 months ago
.rubocop.yml ddfd06ae07 forked from https://codeberg.org/mark22k/BgpLookup/commit/975c1c1a7496df3f08aa7c445ea049351113b73d 10 months ago
LICENSE ddfd06ae07 forked from https://codeberg.org/mark22k/BgpLookup/commit/975c1c1a7496df3f08aa7c445ea049351113b73d 10 months ago
README.md ddfd06ae07 forked from https://codeberg.org/mark22k/BgpLookup/commit/975c1c1a7496df3f08aa7c445ea049351113b73d 10 months ago
main.rb ddfd06ae07 forked from https://codeberg.org/mark22k/BgpLookup/commit/975c1c1a7496df3f08aa7c445ea049351113b73d 10 months ago
parser.rb ddfd06ae07 forked from https://codeberg.org/mark22k/BgpLookup/commit/975c1c1a7496df3f08aa7c445ea049351113b73d 10 months ago

README.md

MrtParser

A simple MRT parser written in Ruby, which uses the BinData library.

This MRI parser is slow and very memory intensive. It is not recommended to use it. I personally recommend ubgpsuite.

An example script (main.rb) which determines prefixes and the ASNs it advertises as well as the relations between the ASNs is included. The script stores this data in memory to outputs a summary at the end.