https://github.com/CircuitCoder/cidr-calc
CIDR union / subtraction
https://github.com/CircuitCoder/cidr-calc
Last synced: 2 months ago
JSON representation
CIDR union / subtraction
- Host: GitHub
- URL: https://github.com/CircuitCoder/cidr-calc
- Owner: CircuitCoder
- Created: 2023-10-23T18:50:14.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-04T08:48:13.000Z (5 months ago)
- Last Synced: 2025-04-01T16:56:01.520Z (3 months ago)
- Language: Rust
- Homepage: https://circuitcoder.github.io/cidr-calc/
- Size: 228 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CIDR Calculator
[](https://crates.io/crates/cidr-calculator)
CIDR addition / subtraction calculator. Maybe useful for setting route tables when metrics are not available (e.g. wireguard next-hop)
```
> let univ = ::/0
> univ - 2001:da8::/56
[
::/3
2000::/16
2001::/21
2001:800::/22
2001:c00::/24
2001:d00::/25
2001:d80::/27
2001:da0::/29
2001:da8:0:100::/56
...
```