Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-09T14:42:58.000Z (2 months ago)
- Last Synced: 2024-11-09T15:31:48.305Z (2 months ago)
- Language: Rust
- Homepage: https://circuitcoder.github.io/cidr-calc/
- Size: 175 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CIDR Calculator
[![Crates.io Version](https://img.shields.io/crates/v/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
...
```