diff options
author | Seishinryohosha <seishinryohosha@jikken.de> | 2017-02-18 21:57:10 +0100 |
---|---|---|
committer | Pavel Šimerda <pavlix@pavlix.net> | 2017-03-01 11:11:34 +0100 |
commit | 8c7cd8f2d14fec6d33f4181d5e1de7c68b913285 (patch) | |
tree | e7aaddf20de2a5f462d78b97c4dd6b2b9ec0ecda | |
parent | 0f19d38958603f396d1248e097d9866a7a692aec (diff) | |
download | iputils-8c7cd8f2d14fec6d33f4181d5e1de7c68b913285.tar.gz |
tracepath,doc: Added -4, -6 Parameter in doc and void usage(void)
-rw-r--r-- | doc/tracepath.sgml | 16 | ||||
-rw-r--r-- | tracepath.c | 2 |
2 files changed, 17 insertions, 1 deletions
diff --git a/doc/tracepath.sgml b/doc/tracepath.sgml index 756572f..ba47783 100644 --- a/doc/tracepath.sgml +++ b/doc/tracepath.sgml @@ -15,6 +15,8 @@ traces path to a network host discovering MTU along this path</refpurpose> <refsynopsisdiv> <cmdsynopsis> <command>tracepath</command> +<arg choice="opt">-4</arg> +<arg choice="opt">-6</arg> <arg choice="opt">-n</arg> <arg choice="opt">-b</arg> <arg choice="opt">-l <replaceable/pktlen/</arg> @@ -47,6 +49,20 @@ of UDP ports to maintain trace history. <variablelist> <varlistentry> + <term><option>-4</option></term> + <listitem><para> +Use IPv4 only. + </para></listitem> + </varlistentry> + + <varlistentry> + <term><option>-6</option></term> + <listitem><para> +Use IPv6 only. + </para></listitem> + </varlistentry> + + <varlistentry> <term><option>-n</option></term> <listitem><para> Print primarily IP addresses numerically. diff --git a/tracepath.c b/tracepath.c index 74a829d..f528932 100644 --- a/tracepath.c +++ b/tracepath.c @@ -366,7 +366,7 @@ static void usage(void) __attribute((noreturn)); static void usage(void) { - fprintf(stderr, "Usage: tracepath [-n] [-b] [-l <len>] [-p port] <destination>\n"); + fprintf(stderr, "Usage: tracepath [-4] [-6] [-n] [-b] [-l <len>] [-p port] <destination>\n"); exit(-1); } |