[comp.unix.wizards] trpt command

acrotty@cvbnet.UUCP (Art Crotty x4456) (06/24/87)

I would like to get the command "trpt" to work on my systems and
can't seem to find any documentation on exactly how to modify
the kernel to do this.  The documentation from Sun vaguely refers
to enabling TCPDEBUG when compiling the kernel.  No info on where
the flag is set or how.

I would like to use the command to monitor the network and help in
debugging as an additional tool to netstat, etc.

Any info that anyone can give me on how to enable this feature so 
trpt works would be greatly appreciated.

Also, examples of command syntax and truncated output would be
beneficial.

I am sure there are lots of people on the net that would appreciate
an answer on this.

Oh yah, we are running Sun 3.0 and 3.2 os (4.2 BSD derivatives)
and we have full source (if necessary).

Thanks in advance,

+---------------------------------------------------K---------------+
|                                                                   |
|        /\               Post: Art Crotty                          |
E       /  \                    Computervision Corp.                |
|      /_  _\                   5 Crosby Drive                      |
|     / o  o \                  Bldg. 5-1                           |
|  -mm--------mm-               Bedford, Mass. 01730                |
|                      Ma Bell: (617) 275-1800                      O
| The fool wanders,       UUCP: { decvax,sun }!cvbnet!acrotty       |
| the wise man travels.                                             |
|                                                                   |
+-----------------------------------I-------------------------------+

guyton%condor@rand-unix.arpa (06/28/87)

Before you can use trpt on the Sun, you have to add
the line:

	options TCPDEBUG

to your kernal's config file and rebuild the kernal.

This isn't needed in 4.3BSD (or non-Sun 4.2BSD).  But
for some reason SMI decided to ifdef the trpt support
code in the kernal.

You do need the Sun sources, as Sun does NOT supply the
source to netinet/tcp_debug.c as part of their normal
distribution.  Worse, the supplied binary is compiled
without the trpt support.

Those people who want to use trpt on a Sun and don't have
sources should complain to SMI.  [I did once and they sent
me a tcp_debug.o that had been compiled properly.]

This info is for Sun OS's up to 3.2.  I gather that version
3.4 has a lot of 4.3's TCP support in it; perhaps they've
changed their tcp_debug module too.

Of course, you also have to turn on the debug option of
the sockets you want to trace, but that's standard BSD
and well documented.

-- Jim Guyton
   guyto30303x.uulia
> t