| 1 | .\" Copyright (c) 1983, 1991 The Regents of the University of California. |
| 2 | .\" All rights reserved. |
| 3 | .\" |
| 4 | .\" %sccs.include.redist.man% |
| 5 | .\" |
| 6 | .\" @(#)trpt.8 6.5 (Berkeley) %G% |
| 7 | .\" |
| 8 | .Dd |
| 9 | .Dt TRPT 8 |
| 10 | .Os BSD 4.2 |
| 11 | .Sh NAME |
| 12 | .Nm trpt |
| 13 | .Nd transliterate protocol trace |
| 14 | .Sh SYNOPSIS |
| 15 | .Nm trpt |
| 16 | .Op Fl a |
| 17 | .Op Fl f |
| 18 | .Op Fl j |
| 19 | .Op Fl p Ar hex-address |
| 20 | .Op Fl s |
| 21 | .Op Fl t |
| 22 | .Oo |
| 23 | .Ar system Op Ar core |
| 24 | .Oc |
| 25 | .Sh DESCRIPTION |
| 26 | .Nm Trpt |
| 27 | interrogates the buffer of |
| 28 | .Tn TCP |
| 29 | trace records created |
| 30 | when a socket is marked for |
| 31 | .Dq debugging |
| 32 | (see |
| 33 | .Xr setsockopt 2 ) , |
| 34 | and prints a readable description of these records. |
| 35 | When no options are supplied, |
| 36 | .Nm trpt |
| 37 | prints all the trace records found in the system |
| 38 | grouped according to |
| 39 | .Tn TCP |
| 40 | connection protocol control |
| 41 | block |
| 42 | .Pq Tn PCB . |
| 43 | The following options may be used to |
| 44 | alter this behavior. |
| 45 | .Bl -tag -width Ds |
| 46 | .It Fl a |
| 47 | In addition to the normal output, |
| 48 | print the values of the source and destination |
| 49 | addresses for each packet recorded. |
| 50 | .It Fl f |
| 51 | Follow the trace as it occurs, waiting a short time for additional records |
| 52 | each time the end of the log is reached. |
| 53 | .It Fl j |
| 54 | Just give a list of the protocol control block |
| 55 | addresses for which there are trace records. |
| 56 | .It Fl p |
| 57 | Show only trace records associated with the protocol |
| 58 | control block at the given address |
| 59 | .Ar hex-address . |
| 60 | .It Fl s |
| 61 | In addition to the normal output, |
| 62 | print a detailed description of the packet |
| 63 | sequencing information. |
| 64 | .It Fl t |
| 65 | in addition to the normal output, |
| 66 | print the values for all timers at each |
| 67 | point in the trace. |
| 68 | .El |
| 69 | .Pp |
| 70 | The recommended use of |
| 71 | .Nm trpt |
| 72 | is as follows. |
| 73 | Isolate the problem and enable debugging on the |
| 74 | socket(s) involved in the connection. |
| 75 | Find the address of the protocol control blocks |
| 76 | associated with the sockets using the |
| 77 | .Fl A |
| 78 | option to |
| 79 | .Xr netstat 1 . |
| 80 | Then run |
| 81 | .Nm trpt |
| 82 | with the |
| 83 | .Fl p |
| 84 | option, supplying the associated |
| 85 | protocol control block addresses. |
| 86 | The |
| 87 | .Fl f |
| 88 | option can be used to follow the trace log once the trace is located. |
| 89 | If there are |
| 90 | many sockets using the debugging option, the |
| 91 | .Fl j |
| 92 | option may be useful in checking to see if |
| 93 | any trace records are present for the socket in |
| 94 | question. |
| 95 | The |
| 96 | .Pp |
| 97 | If debugging is being performed on a system or |
| 98 | core file other than the default, the last two |
| 99 | arguments may be used to supplant the defaults. |
| 100 | .Sh FILES |
| 101 | .Bl -tag -width /dev/kmem -compact |
| 102 | .It Pa /vmunix |
| 103 | .It Pa /dev/kmem |
| 104 | .El |
| 105 | .Sh SEE ALSO |
| 106 | .Xr netstat 1 , |
| 107 | .Xr setsockopt 2 , |
| 108 | .Xr trsp 8 |
| 109 | .Sh DIAGNOSTICS |
| 110 | .Bl -tag -width Ds |
| 111 | .It Sy no namelist |
| 112 | When the system image doesn't |
| 113 | contain the proper symbols to find the trace buffer; |
| 114 | others which should be self explanatory. |
| 115 | .El |
| 116 | .Sh BUGS |
| 117 | Should also print the data for each input or output, |
| 118 | but this is not saved in the race record. |
| 119 | .Pp |
| 120 | The output format is inscrutable and should be described |
| 121 | here. |
| 122 | .Sh HISTORY |
| 123 | The |
| 124 | .Nm |
| 125 | command appeared in |
| 126 | .Bx 4.2 . |