From 01273ca3d0624813e7d1030b9ac94eb8156ae3da Mon Sep 17 00:00:00 2001 From: Erik Troan Date: Sun, 22 Mar 1998 20:36:34 +0000 Subject: added --netmask --- src/ipcalc.1 | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/ipcalc.1 b/src/ipcalc.1 index c5153293..2a72aa3d 100644 --- a/src/ipcalc.1 +++ b/src/ipcalc.1 @@ -1,27 +1,31 @@ .TH IPCALC 1 "Red Hat Software" "RHS" \" -*- nroff -*- .SH NAME -ipcalc \- perform simple manipulation of ip addresses +ipcalc \- perform simple manipulation of IP addresses .SH SYNOPSIS .B ipcalc -\fI[--hostname] [--broadcast] [--network] \fBip \fI[netmask]\fR +\fI[--hostname] [--broadcast] [--network] [--netmask] \fBip \fI[netmask]\fR .SH DESCRIPTION -\fBipcalc\fR provides a simple way to find the broadcast address, network -address, or hostname for a given IP address and netmask (no netmask is -needed if only the hostname is requested). The various options specify -what information \fBipcalc\fR should display on standard out. Multiple -options may be specified. +\fBipcalc\fR provides a simple way to calculate IP information for a host. +The various options specify what information \fBipcalc\fR should display +on standard out. Multiple options may be specified. .SH OPTIONS .TP .IP \fI--broadcast\fR -Display the broadcast address for the given ip address and netmask. +Display the broadcast address for the given IP address and netmask. .IP \fI--hostname\fR -Display the hostname for the given ip address. +Display the hostname for the given IP address. + +.IP \fI--netmask\fR +Calculate the netmask for the given IP address. It assumes that the IP +address is in a complete Class A, B, or C network. Many networks do +not use the default netmasks, in which case an inappropriate value will +be returned. .IP \fI--network\fR -Display the network address for the given ip address and netmask. +Display the network address for the given IP address and netmask. .SH AUTHOR .nf -- cgit v1.2.1