Skip to content

Commit 553d1ab

Browse files
author
Seishinryohosha
committed
tracepath,doc: Added -4, -6 Parameter in doc and void usage(void)
1 parent df7d2d8 commit 553d1ab

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

doc/tracepath.sgml

+16
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ traces path to a network host discovering MTU along this path</refpurpose>
1515
<refsynopsisdiv>
1616
<cmdsynopsis>
1717
<command>tracepath</command>
18+
<arg choice="opt">-4</arg>
19+
<arg choice="opt">-6</arg>
1820
<arg choice="opt">-n</arg>
1921
<arg choice="opt">-b</arg>
2022
<arg choice="opt">-l <replaceable/pktlen/</arg>
@@ -46,6 +48,20 @@ of UDP ports to maintain trace history.
4648
<refsect1><title>OPTIONS</title>
4749
<variablelist>
4850

51+
<varlistentry>
52+
<term><option>-4</option></term>
53+
<listitem><para>
54+
Use IPv4 only.
55+
</para></listitem>
56+
</varlistentry>
57+
58+
<varlistentry>
59+
<term><option>-6</option></term>
60+
<listitem><para>
61+
Use IPv6 only.
62+
</para></listitem>
63+
</varlistentry>
64+
4965
<varlistentry>
5066
<term><option>-n</option></term>
5167
<listitem><para>

tracepath.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ static void usage(void) __attribute((noreturn));
366366

367367
static void usage(void)
368368
{
369-
fprintf(stderr, "Usage: tracepath [-n] [-b] [-l <len>] [-p port] <destination>\n");
369+
fprintf(stderr, "Usage: tracepath [-4] [-6] [-n] [-b] [-l <len>] [-p port] <destination>\n");
370370
exit(-1);
371371
}
372372

0 commit comments

Comments
 (0)