v1.0.0
prefixtool 1.0.0 - inspect, split and carve up IPv4 and IPv6 prefixes.
prefixtool 2001:db8::/52 -56 -64x2
Install
Download the archive for your platform below, unpack it, and put prefixtool on your PATH. Each archive ships with a .sha256 alongside it:
sha256sum -c prefixtool-v1.0.0-<target>.tar.gz.sha256
macOS
These binaries are ad-hoc signed but not notarized, so Gatekeeper will object to one that arrives with a quarantine flag. Unpacking from Terminal never sets that flag, so this just works:
tar xzf prefixtool-v1.0.0-<target>.tar.gz
./prefixtool --version
If you downloaded through a browser and hit "Apple could not verify...", the macOS archives bundle a script that sorts it out:
./macos-unquarantine.sh
It clears the quarantine flag, repairs the ad-hoc signature if it needs it, and runs the binary to prove the result works.
Or build it yourself:
cargo install --git https://github.com/jiphex/network-prefix-cli --tag v1.0.0
Binaries
prefixtool-v1.0.0-aarch64-apple-darwin.tar.gzprefixtool-v1.0.0-aarch64-unknown-linux-gnu.tar.gzprefixtool-v1.0.0-x86_64-apple-darwin.tar.gzprefixtool-v1.0.0-x86_64-unknown-linux-gnu.tar.gzprefixtool-v1.0.0-x86_64-unknown-linux-musl.tar.gzprefixtool-v1.0.0-x86_64-pc-windows-msvc.zip