Package: ipcalc Version: 0.41-1 Severity: wishlist Tags: patch Hello,
I found that some features of ipcalc are not documented in the manpage. So here is a patch, that: * adds the long options; * adds missing options: --split, --range; * adds missing examples; * adds some formatting for the synopsis. Regards, -- Tanguy -- System Information: Debian Release: 5.0.5 APT prefers stable APT policy: (990, 'stable'), (60, 'testing'), (50, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-bpo.5-amd64 (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages ipcalc depends on: ii perl 5.10.1-8 Larry Wall's Practical Extraction ipcalc recommends no packages. ipcalc suggests no packages. -- no debconf information
--- ipcalc.1.old 2010-07-05 14:23:56.604527733 +0200
+++ ipcalc.1 2010-07-05 14:49:26.205599442 +0200
@@ -18,7 +18,7 @@
.SH NAME
ipcalc - An IP Netmask/broadcast/etc calculator
.SH SYNTAX
-\fB ipcalc \fR [-n|-h|-v|-help] <ADDRESS>[[/]<NETMASK>] [NETMASK]
+\fB ipcalc \fR [options] \fIADDRESS\fR[[/]\fINETMASK\fR] [\fINETMASK\fR]
.SH DESCRIPTION
\fBipcalc\fR takes an IP address and netmask and calculates
the resulting broadcast,
@@ -26,20 +26,26 @@
can design sub- and supernetworks. It is also intended to be a teaching tool
and presents the results as easy-to-understand binary values.
.TP
-\fB-n\fR
+\fB-n\fR, \fB--nocolor\fR
Don't display ANSI color codes
.TP
-\fB-b\fR
+\fB-b\fR, \fB--nobinary\fR
Suppress the bitwise output
.TP
-\fB-c\fR
+\fB-c\fR, \fB--class\fR
Just print bit-count-mask of given address
.TP
-\fB-h\fR
+\fB-h\fR, \fB--html\fR
Display results as HTML
.TP
-\fB-v\fR
+\fB-v\fR, \fB--version\fR
Print Version
+.TP
+\fB-s\fR, \fB--split\fR \fIn1\fR \fIn2\fR \fIn3\fR.
+Split into networks of size n1, n2, n3
+.TP
+\fB-r\fR, \fB--range\fR
+Deaggregate address range
.SH EXAMPLES
ipcalc 192.168.0.1/24
.PP
@@ -48,6 +54,16 @@
ipcalc 192.168.0.1 255.255.128.0 255.255.192.0
.PP
ipcalc 192.168.0.1 0.0.63.255
+.PP
+deaggregate address range
+.RS
+\fBipcalc <ADDRESS1> - <ADDRESS2>\fP
+.RE
+.PP
+split network to subnets where a b c fits in
+.RS
+\fBipcalc <ADDRESS>/<NETMASK> -s a b c\fP
+.RE
.SH AUTHOR
Written by Krischan Jodies <[email protected]>
.SH "SEE ALSO"
signature.asc
Description: Digital signature

