route-summarization 0.1.0

Aggregate IPv4/IPv6 CIDR prefixes into their minimal covering set, with SPF ip4:/ip6: support
Documentation
  • Coverage
  • 81.25%
    26 out of 32 items documented2 out of 26 items with examples
  • Size
  • Source code size: 113.7 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 360.3 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 1s Average build duration of successful builds.
  • all releases: 1s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • nabbi/route-summarization-rs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nabbi

CIDR Route Summarization (Rust)

aggregate-cidr collapses IPv4 and IPv6 prefixes into their minimal covering set, with optional SPF ip4: / ip6: input and output. No dependencies.

A Rust rewrite of nabbi/route-summarization (Perl), with that version's quirks fixed.

$ printf '10.0.0.0/24\n10.0.1.0/24\n2001:db8::1\n' | aggregate-cidr
10.0.0.0/23
2001:db8::1

To replace the Perl version in place, symlink it: ln -sf /usr/local/bin/aggregate-cidr /usr/local/bin/aggregateCIDR.pl (details and rollback).

Build

cargo build --release --locked     # target/release/aggregate-cidr
cargo test

Requires Rust 1.85 or newer.

Docs

License

GPL-3.0-or-later. See LICENSE and NOTICE, which also covers attribution for the original concept. The Perl version remains MIT.