mirror of
https://github.com/ktims/rs-aggregate.git
synced 2024-11-15 23:27:18 -08:00
Aggregate a list of IP prefixes into their minimum equivalent representation
.github/workflows | ||
src | ||
test-data | ||
tests | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
README.md |
rs-aggregate
rs-aggregate will aggregate an unsorted list of IP prefixes
Intended to be a drop-in replacement for aggregate6 with better performance.
Takes a list of whitespace-separated IPs or IP networks and aggregates them to their minimal representation.
Known discrepancies with aggregate6
rs-aggregate
accepts subnet and wilcard mask formats in addition to CIDR, ie all these are valid and equivalent:1.1.1.0/255.255.255.0
1.1.1.0/0.0.0.255
1.1.1.0/24
-m/--max-prefixlen
supports different maximums for each address family as ipv4,ipv6 format
Performance
Performance comparison of rs-aggregate
vs aggregate6
. A speedup of >100x is achieved on DFZ data.