Copyright (c) 2019 Mark Jamsek Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. netcalc 0.3 IPv4 & IPv6 CIDR Subnet Calculator Directory listing ----------------- README.txt - this readme netcalc.1 - man page netcalc.c - netcalc 0.3 source code netcalc.txt - netcalc 0.3 browser readable source code netcalc03.c - netcalc 0.3 source code* netcalc_macos - netcalc 0.3 macOS binary executable netcalc_macos.tar.gz - netcalc 0.3 tarball for macOS netcalc_openbsd - netcalc 0.3 OpenBSD binary executable netcalc_openbsd.tar.gz - netcalc 0.3 tarball for OpenBSD * first upload of netcalc 0.3 when file 'netcalc.c' was still version 0.2 Install ------- Use one of the following three options to install netcalc. 1. download netcalc.c and build manually OpenBSD ftp -S do https://jamsek.dev/resources/pub/netcalc/netcalc.c cc -Werror -Wall -o netcalc netcalc.c -lm doas mv netcalc /usr/local/sbin/ ftp -S do https://jamsek.dev/resources/pub/netcalc/netcalc.1 doas mv netcalc.1 /usr/local/man/man1/ macOS curl -O https://jamsek.dev/resources/pub/netcalc/netcalc.c cc -Werror -Wall -o netcalc netcalc.c sudo mv netcalc /usr/local/bin/ curl -O https://jamsek.dev/resources/pub/netcalc/netcalc.1 sudo mv netcalc.1 /usr/share/man/man1/ 2. download tarball and run make OpenBSD ftp -S do https://jamsek.dev/resources/pub/netcalc/netcalc_openbsd.tar.gz tar -zxvf netcalc_openbsd.tar.gz cd netcalc/src make doas cp obj/netcalc /usr/local/sbin/ doas cp ../doc/netcalc.1 /usr/local/man/man1/ macOS curl -O https://jamsek.dev/resources/pub/netcalc/netcalc_macos.tar.gz tar -zxvf netcalc_macos.tar.gz cd netcalc/src make sudo cp netcalc /usr/local/bin/ sudo cp ../doc/netcalc.1 /usr/share/man/man1/ 3. download binary executable OpenBSD ftp -S do https://jamsek.dev/resources/pub/netcalc/netcalc_openbsd chmod +x netcalc_openbsd doas mv netcalc_openbsd /usr/local/sbin/netcalc ftp -S do https://jamsek.dev/resources/pub/netcalc/netcalc.1 doas mv netcalc.1 /usr/local/man/man1/ macOS curl -O https://jamsek.dev/resources/pub/netcalc/netcalc_macos chmod +x netcalc_macos sudo mv netcalc_macos /usr/local/bin/netcalc curl -O https://jamsek.dev/resources/pub/netcalc/netcalc.1 sudo mv netcalc.1 /usr/share/man/man1/ Usage ----- run netcalc with no arguments for basic use or see the man page for more detail: man netcalc