aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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