BSD Ports

net/whatmask 1.2 NetBSD

Easily convert between three common subnet mask notations

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Categories
net
Package size
9.2 KiB, 21.8 KiB installed

Description

Whatmask is a small C program that will help you with network settings.

Whatmask can work in two modes. The first mode (which is how prior versions worked) is to invoke Whatmask with only a subnet mask as the argument. In this mode Whatmask will echo back the subnet mask in four formats, plus the number of useable addresses in the range.

Netmask Notations supported:

Name Example

CIDR /24 Netmask 255.255.255.0 Hex Netmask 0xffffff00 Wilcard Bits 0.0.0.255

In the other systems

SystemPortVersion
NetBSDnet/whatmask1.2
FreeBSDnet-mgmt/whatmask1.2_3
DragonFlynet-mgmt/whatmask1.2_3
MidnightBSDnet-mgmt/whatmask1.2
HardenedBSDnet-mgmt/whatmask1.2_3
GhostBSDnet-mgmt/whatmask1.2_3

Install

Binary package:

pkgin install whatmask

From pkgsrc:

cd /usr/pkgsrc/net/whatmask && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_641.2
NetBSD 10.1 aarch641.2
SmartOS / illumos x86_641.2
macOS 15 arm641.2

Dependencies

No port depends on this one.