From 08cb5b4fbc941c606bbd5073e8094c5538873cd3 Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Fri, 26 Sep 2008 16:11:27 -1000 Subject: 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. --- src/ipcalc.1 | 27 +++++++++++++++++++++------ src/ipcalc.c | 3 ++- 2 files changed, 23 insertions(+), 7 deletions(-) (limited to 'src') 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 .nf Preston Brown + +.TP +IPv6 supported wedged in by David Cantrell .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 * Preston Brown + * David Cantrell */ -- cgit v1.2.1