Package: iproute
Severity: wishlist
Tags: patch

I've put together a couple of manpages for some commands in the iproute
package based on the sgml docs. (arpd and rtacct)
I've unfortunately not received any reply to my request of getting these
added upstream, so that's why I'm asking for inclusion in the debian package.

First off, the current manpages in debian/man/* seems to be available already
in the upstream source so please remove these duplicates.

Then please add the two attached manpages to debian/man/.

Lastly, the rtstat(8), ctstat(8) could be linked to the lnstat(8)
manpage, as those two commands are just compability symlinks for lnstat.
The nstat(8) could also be symlinked to rtacct(8) manpage provided here.
(Unfortunately I don't have a patch to create these symlinks for you, and
symlinks can't be represented in a diff so it needs to be scripted somewhere.)

-- 
Regards,
Andreas Henriksson
.TH ARPD 8 "28 June, 2007"

.SH NAME
arpd \- userspace arp daemon.

.SH SYNOPSIS
Usage: arpd [ -lk ] [ -a N ] [ -b dbase ] [ -f file ] [ interfaces ]

.SH DESCRIPTION
The
.B arpd
daemon collects gratuitous ARP information, saving it on local disk and feeding 
it to kernel on demand to avoid redundant broadcasting due to limited size of 
kernel ARP cache.

.SH OPTIONS
.TP
-h -?
Print help
.TP
-l
Dump arpd database to stdout and exit. Output consists of three columns: 
interface index, IP address and MAC address. Negative entries for dead hosts 
are also shown, in this case MAC address is replaced by word FAILED followed by 
colon and time when the fact that host is dead was proven the last time.
.TP
-f <FILE>
Read and load arpd database from FILE in text format similar dumped by option 
-l. Exit after load, probably listing resulting database, if option -l is also 
given. If FILE is -, stdin is read to get ARP table.
.TP
-b <DATABASE>
location of database file. Default location is /var/lib/arpd/arpd.db
.TP
-a <NUMBER>
arpd not only passively listens ARP on wire, but also send brodcast queries 
itself. NUMBER is number of such queries to make before destination is 
considered as dead. When arpd is started as kernel helper (i.e. with 
app_solicit enabled in sysctl or even with option -k) without this option and 
still did not learn enough information, you can observe 1 second gaps in 
service. Not fatal, but not good.
.TP
-k
Suppress sending broadcast queries by kernel. It takes sense together with 
option -a.
.TP
-n <TIME>
Timeout of negative cache. When resolution fails arpd suppresses further 
attempts to resolve for this period. It makes sense only together with option 
-k This timeout should not be too much longer than boot time of a typical host 
not supporting gratuitous ARP. Default value is 60 seconds.
.TP
-r <RATE>
Maximal steady rate of broadcasts sent by arpd in packets per second. Default 
value is 1.
.TP
-B <NUMBER>
Number of broadcasts sent by <tt/arpd/ back to back. Default value is 3. 
Together with option <tt/-R/ this option allows to police broadcasting not to 
exceed B+R*T over any interval of time T.
.P
<INTERFACE> is the name of networking interface to watch. If no interfaces 
given, arpd monitors all the interfaces. In this case arpd does not adjust 
sysctl parameters, it is supposed user does this himself after arpd is started.
.P
Signals
.br
arpd exits gracefully syncing database and restoring adjusted sysctl 
parameters, when receives SIGINT or SIGTERM. SIGHUP syncs database to disk. 
SIGUSR1 sends some statistics to syslog. Effect of another signals is 
undefined, they may corrupt database and leave sysctl praameters in an 
unpredictable state.
.P
Note
.br
In order for arpd to be able to serve as ARP resolver, kernel must be compiled 
with the option CONFIG_ARPD and, in the case when interface list in not given 
on command line, variable app_solicit on interfaces of interest should be in 
/proc/sys/net/ipv4/neigh/*. If this is not made arpd still collects gratuitous 
ARP information in its database.
.SH EXAMPLES
.TP
arpd -b /var/tmp/arpd.db
Start arpd to collect gratuitous ARP, but not messing with kernel functionality.
.TP
killall arpd ; arpd -l -b /var/tmp/arpd.db
Look at result after some time.
.TP
arpd -b /var/tmp/arpd.db -a 1 eth0 eth1
Enable kernel helper, leaving leading role to kernel.
.TP
arpd -b /var/tmp/arpd.db -a 3 -k eth0 eth1
Completely replace kernel resolution on interfaces eth0 and eth1. In this case 
kernel still does unicast probing to validate entries, but all the broadcast 
activity is suppressed and made under authority of arpd.
.PP
This is mode which arpd is supposed to work normally. It is not default just to 
prevent occasional enabling of too aggressive mode occasionally.
.TH RTACCT 8 "27 June, 2007"

.SH NAME
nstat, rtacct - network statistics tools.

.SH SYNOPSIS
Usage: nstat [ -h?vVzrnasd:t: ] [ PATTERN [ PATTERN ] ]
.br
Usage: rtacct [ -h?vVzrnasd:t: ] [ ListOfRealms ]

.SH DESCRIPTION
.B nstat
and
.B rtacct
are simple tools to monitor kernel snmp counters and network interface 
statistics.

.SH OPTIONS
.TP
-h -?
Print help
.TP
-v -V
Print version
.TP
-z
Dump zero counters too. By default they are not shown.
.TP
-r
Reset history.
.TP
-n
Do not display anything, only update history.
.TP
-a
Dump absolute values of counters. The default is to calculate increments since 
the previous use.
.TP
-s
Do not update history, so that the next time you will see counters including 
values accumulated to the moment of this measurement too.
.TP
-d <INTERVAL>
Run in daemon mode collecting statistics. <INTERVAL> is interval between 
measurements in seconds.
.TP
-t <INTERVAL>
Time interval to average rates. Default value is 60 seconds.

.SH SEE ALSO
lnstat(8)

Reply via email to