netcalc 0.3
Mark Jamsek <mark@jamsek.com>
IPv4 & IPv6 CIDR Subnet Calculator for OpenBSD and macOS written in C99
Build options for netcalc
:
- Makefile
- run
make
using theMakefile
provided for your platform
- run
- OpenBSD
cc -Werror -Wall -O3 -o netcalc netcalc.c -lm
- macOS
cc -Werror -Wall -O3 -o netcalc netcalc.c
$ netcalc
netcalc 0.3 IPv4 & IPv6 CIDR Subnet Calculator
usage: netcalc [-s subnets] ipaddr/prefix
e.g.: netcalc -s 4 192.168.0.1/24
netcalc 8c6b:dbfd:5c73:8f14:f815:a4a2:5dab:38b0/110