aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2008-09-26 16:11:27 -1000
committerBill Nottingham <notting@redhat.com>2009-03-19 15:50:16 -0400
commit08cb5b4fbc941c606bbd5073e8094c5538873cd3 (patch)
tree7ed32ec0589a546b733ac21b33d62b9f189a5451
parentd91005f0d149124749ad6cc98bc42b4111900963 (diff)
downloadinitscripts-08cb5b4fbc941c606bbd5073e8094c5538873cd3.tar
initscripts-08cb5b4fbc941c606bbd5073e8094c5538873cd3.tar.gz
initscripts-08cb5b4fbc941c606bbd5073e8094c5538873cd3.tar.bz2
initscripts-08cb5b4fbc941c606bbd5073e8094c5538873cd3.tar.xz
initscripts-08cb5b4fbc941c606bbd5073e8094c5538873cd3.zip
Man page updates for ipcalc(1)
Make sure the ipcalc man page explains the -c, -4, and -6 options. Update some other things. Shamelessly add my name.
-rw-r--r--src/ipcalc.127
-rw-r--r--src/ipcalc.c3
2 files changed, 23 insertions, 7 deletions
diff --git a/src/ipcalc.1 b/src/ipcalc.1
index fd9b2121..30e0b20d 100644
--- a/src/ipcalc.1
+++ b/src/ipcalc.1
@@ -1,4 +1,4 @@
-.TH IPCALC 1 "April 30 2001" "Red Hat, Inc." RH \" -*- nroff -*-
+.TH IPCALC 1 "April 30 2001" "Red Hat, Inc." \" -*- nroff -*-
.SH NAME
ipcalc \- perform simple manipulation of IP addresses
.SH SYNOPSIS
@@ -15,11 +15,24 @@ netmask or a CIDR prefix as well.
.SH OPTIONS
.TP
.TP
-\fB\-b\fR, \fB\-\-broadcast\fR
+\fB\-c\fR, \fB\-\-check\fR
+Validate the IP address under the specified family. If no address
+family is specified, IPv4 is assumed.
+
+.TP
+\fB\-4\fR, \fB\-\-ipv4\fR
+Specify IPv4 address family (default).
+
+.TP
+\fB\-6\fR, \fB\-\-ipv6\fR
+Specify IPv6 address family.
+
+.TP
+\fB\-b\fR, \fB\-\-broadcast\fR
Display the broadcast address for the given IP address and netmask.
.TP
-\fB\-h\fR, \fB\-\-hostname\fR
+\fB\-h\fR, \fB\-\-hostname\fR
Display the hostname for the given IP address.
.TP
@@ -46,12 +59,14 @@ Don't ever display error messages.
Erik Troan <ewt@redhat.com>
.nf
Preston Brown <pbrown@redhat.com>
+
+.TP
+IPv6 supported wedged in by David Cantrell <dcantrell@redhat.com>
.fi
.SH "REPORTING BUGS"
-Report bugs to our bugtracking system:
-http://bugzilla.redhat.com/bugzilla.
+Report bugs at http://bugzilla.redhat.com/
.SH COPYRIGHT
-Copyright \(co 1997-2001 Red Hat, Inc.
+Copyright \(co 1997-2008 Red Hat, Inc.
.br
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
diff --git a/src/ipcalc.c b/src/ipcalc.c
index ede86145..e3a6a7f5 100644
--- a/src/ipcalc.c
+++ b/src/ipcalc.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997-2003 Red Hat, Inc. All rights reserved.
+ * Copyright (c) 1997-2008 Red Hat, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2,
@@ -17,6 +17,7 @@
* Authors:
* Erik Troan <ewt@redhat.com>
* Preston Brown <pbrown@redhat.com>
+ * David Cantrell <dcantrell@redhat.com>
*/