This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.0'.
[unix-history] / usr.sbin / trsp / trsp.8
CommitLineData
15637ed4
RG
1.\" Copyright (c) 1985, 1991 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\" notice, this list of conditions and the following disclaimer in the
11.\" documentation and/or other materials provided with the distribution.
12.\" 3. All advertising materials mentioning features or use of this software
13.\" must display the following acknowledgement:
14.\" This product includes software developed by the University of
15.\" California, Berkeley and its contributors.
16.\" 4. Neither the name of the University nor the names of its contributors
17.\" may be used to endorse or promote products derived from this software
18.\" without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)trsp.8 6.4 (Berkeley) 3/16/91
33.\"
34.Dd March 16, 1991
35.Dt TRSP 8
36.Os BSD 4.2
37.Sh NAME
38.Nm trsp
39.Nd transliterate sequenced packet protocol trace
40.Sh SYNOPSIS
41.Nm trsp
42.Op Fl a
43.Op Fl s
44.Op Fl t
45.Op Fl j
46.Op Fl p Ar hex-address
47.Oo
48.Ar system Op Ar core
49.Oc
50.Sh DESCRIPTION
51.Xr Trpt
52interrogates the buffer of
53.Tn SPP
54trace records created
55when a socket is marked for
56.Dq debugging
57(see
58.Xr setsockopt 2 ) ,
59and prints a readable description of these records.
60When no options are supplied,
61.Nm trsp
62prints all the trace records found in the system
63grouped according to
64.Tn SPP
65connection protocol control
66block
67.Pq Tn PCB .
68The following options may be used to
69alter this behavior.
70.Bl -tag -width Ds
71.It Fl a
72In addition to the normal output,
73print the values of the source and destination
74addresses for each packet recorded.
75.It Fl j
76Just give a list of the protocol control block
77addresses for which there are trace records.
78.It Fl p
79Show only trace records associated with the protocol
80control block at the given address,
81.Ar hex-address .
82.It Fl s
83in addition to the normal output,
84print a detailed description of the packet
85sequencing information.
86.It Fl t
87in addition to the normal output,
88print the values for all timers at each
89point in the trace,
90.El
91.Pp
92The recommended use of
93.Nm trsp
94is as follows.
95Isolate the problem and enable debugging on the
96socket(s) involved in the connection.
97Find the address of the protocol control blocks
98associated with the sockets using the
99.Fl A
100option to
101.Xr netstat 1 .
102Then run
103.Nm trsp
104with the
105.Fl p
106option, supplying the associated
107protocol control block addresses. If there are
108many sockets using the debugging option, the
109.Fl j
110option may be useful in checking to see if
111any trace records are present for the socket in
112question.
113.Pp
114If debugging is being performed on a system or
115core file other than the default, the last two
116arguments may be used to supplant the defaults.
117.Sh FILES
118.Bl -tag -width /dev/kmem -compact
78ed81a3 119.It Pa /386bsd
15637ed4
RG
120.It Pa /dev/kmem
121.El
122.Sh SEE ALSO
123.Xr netstat 1 ,
124.Xr setsockopt 2
125.Sh DIAGNOSTICS
126.Bl -tag -width Ds
127.It Sy no namelist
128When the system image doesn't
129contain the proper symbols to find the trace buffer;
130others which should be self explanatory.
131.Sh BUGS
132Should also print the data for each input or output,
133but this is not saved in the race record.
134.Pp
135The output format is inscrutable and should be described
136here.
137.Sh HISTORY
138The
139.Nm
140command appeared in
141.Bx 4.3 .