iproute2: various usage and doc fixes
Subsystems (2)
cover iproute2: various usage and doc fixes
Petr Sabata (3):
iproute2: ss - fix missing parameters
iproute2: lnstat - fix typos
iproute2: arpd - fix usage and manpage options
man/man8/arpd.8 | 4 ++-- man/man8/ss.8 | 4 ++-- misc/arpd.c | 2 +- misc/lnstat.c | 4 ++-- misc/ss.c | 6 ++++-- 5 files changed, 11 insertions(+), 9 deletions(-)
Signature · 1 line
1.7.6.4
PATCH 1/3 iproute2: ss - fix missing parameters
Signed-off-by Petr Sabata <[email protected]>
--- man/man8/ss.8 | 4 ++-- misc/ss.c | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-)
man/man8/ss.8 +2 -2
@@ -85,12 +85,12 @@ Display Unix domain sockets (alias for -f unix). Display sockets of type FAMILY. Currently the following families are supported: unix, inet, inet6, link, netlink. .TP -.B \-A QUERY, \-\-query=QUERY +.B \-A QUERY, \-\-query=QUERY, \-\-socket=QUERY List of socket tables to dump, separated by commas. The following identifiers are understood: all, inet, tcp, udp, raw, unix, packet, netlink, unix_dgram, unix_stream, packet_raw, packet_dgram. .TP -.B \-D FILE +.B \-D FILE, \-\-diag=FILE Do not display anything, just dump raw information about TCP sockets to FILE after applying filters. If FILE is - stdout is used. .TP .B \-F FILE, \-\-filter=FILE
misc/ss.c +4 -2
@@ -2416,9 +2416,10 @@ static void _usage(FILE *dest)" -x, --unix display only Unix domain sockets\n" " -f, --family=FAMILY display sockets of type FAMILY\n" "\n" -" -A, --query=QUERY\n" +" -A, --query=QUERY, --socket=QUERY\n" " QUERY := {all|inet|tcp|udp|raw|unix|packet|netlink}[,QUERY]\n" "\n" +" -D, --diag=FILE Dump raw information about TCP sockets to FILE\n" " -F, --filter=FILE read filter information from FILE\n" " FILTER := [ state TCP-STATE ] [ EXPRESSION ]\n" );
@@ -2486,8 +2487,9 @@ static const struct option long_opts[] = { { "packet", 0, 0, '0' }, { "family", 1, 0, 'f' }, { "socket", 1, 0, 'A' }, + { "query", 1, 0, 'A' }, { "summary", 0, 0, 's' }, - { "diag", 0, 0, 'D' }, + { "diag", 1, 0, 'D' }, { "filter", 1, 0, 'F' }, { "version", 0, 0, 'V' }, { "help", 0, 0, 'h' },
Signature · 1 line
1.7.6.4
PATCH 2/3 iproute2: lnstat - fix typos
In reply to Petr SabataSigned-off-by Petr Sabata <[email protected]>
--- misc/lnstat.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
misc/lnstat.c +2 -2
@@ -45,7 +45,7 @@ static struct option opts[] = { { "file", 1, NULL, 'f' }, { "help", 0, NULL, 'h' }, { "interval", 1, NULL, 'i' }, - { "key", 1, NULL, 'k' }, + { "keys", 1, NULL, 'k' }, { "subject", 1, NULL, 's' }, { "width", 1, NULL, 'w' }, };
@@ -61,7 +61,7 @@ static int usage(char *name, int exit_code)fprintf (stderr,"\t-V --version\t\tPrint Version of Program\n" );fprintf (stderr,"\t-c --count <count>\t" "Print <count> number of intervals\n" ); -fprintf (stderr,"\t-d --dumpt\t\t" +fprintf (stderr,"\t-d --dump\t\t" "Dump list of available files/keys\n" );fprintf (stderr,"\t-f --file <file>\tStatistics file to use\n" );fprintf (stderr,"\t-h --help\t\tThis help message\n" );
Signature · 1 line
1.7.6.4
PATCH 3/3 iproute2: arpd - fix usage and manpage options
In reply to Petr SabataSigned-off-by Petr Sabata <[email protected]>
--- man/man8/arpd.8 | 4 ++-- misc/arpd.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
man/man8/arpd.8 +2 -2
@@ -4,7 +4,7 @@ arpd \- userspace arp daemon. .SH SYNOPSIS -Usage: arpd [ -lk ] [ -a N ] [ -b dbase ] [ -f file ] [ interfaces ] +Usage: arpd [ -lkh? ] [ -a N ] [ -b dbase ] [ -B number ] [ -f file ] [ -n time ] [ -R rate ] [ interfaces ] .SH DESCRIPTION The
@@ -34,7 +34,7 @@ Suppress sending broadcast queries by kernel. It takes sense together with optio -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> +-R <RATE> Maximal steady rate of broadcasts sent by arpd in packets per second. Default value is 1. .TP -B <NUMBER>
misc/arpd.c +1 -1
@@ -94,7 +94,7 @@ int broadcast_burst = 3000;void usage (void ) {fprintf (stderr, -"Usage: arpd [ -lk ] [ -a N ] [ -b dbase ] [ -f file ] [ interfaces ]\n" ); +"Usage: arpd [ -lkh? ] [ -a N ] [ -b dbase ] [ -B number ] [ -f file ] [ -n time ] [ -R rate ] [ interfaces ]\n" );exit (1 ); }
Signature · 1 line
1.7.6.4
Quoted 5 lines · On Thu, 6 Oct 2011 14:45:31 +0200 Petr Sabata <[email protected]> wrote:
Petr Sabata (3):
iproute2: ss - fix missing parameters
iproute2: lnstat - fix typos
iproute2: arpd - fix usage and manpage options
Quoted 7 lines
man/man8/arpd.8 | 4 ++-- man/man8/ss.8 | 4 ++-- misc/arpd.c | 2 +- misc/lnstat.c | 4 ++-- misc/ss.c | 6 ++++-- 5 files changed, 11 insertions(+), 9 deletions(-)
All applied.