aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1998-03-22 20:36:34 +0000
committerErik Troan <ewt@redhat.com>1998-03-22 20:36:34 +0000
commit01273ca3d0624813e7d1030b9ac94eb8156ae3da (patch)
treef811c8464cd70a49558cbe3c06dd7589234e33f7
parent4e2822fc434126830c8fc362e704f38acda94287 (diff)
downloadinitscripts-01273ca3d0624813e7d1030b9ac94eb8156ae3da.tar
initscripts-01273ca3d0624813e7d1030b9ac94eb8156ae3da.tar.gz
initscripts-01273ca3d0624813e7d1030b9ac94eb8156ae3da.tar.bz2
initscripts-01273ca3d0624813e7d1030b9ac94eb8156ae3da.tar.xz
initscripts-01273ca3d0624813e7d1030b9ac94eb8156ae3da.zip
added --netmask
-rw-r--r--src/ipcalc.124
1 files changed, 14 insertions, 10 deletions
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