1TCPBUG(1)                   General Commands Manual                  TCPBUG(1)
2
3
4

NAME

6       tcpbug - TCP/IP connection bugging device
7

SYNOPSIS

9       tcpbug [-cx] [-btT] local-port remote-host remote-port
10

DESCRIPTION

12       tcpbug  forwards  a  TCP/IP  connection to port local-port on the local
13       machine to the port remote-port on remote-host while spying on the con‐
14       nection  and  writing all data passing through to standard output.  All
15       data coming from the client is printed with a  greater  than  sign  (>)
16       first on each line, and all data coming from the server is printed with
17       a less than sign (<) first on each line.  Any byte  offsets  and  time-
18       stamps  are  printed before the greater than or less than sign, and are
19       separated from each other by a colon (:).
20

OPTIONS

22       -b     Print the offset of the first byte in the stream for each line.
23
24       -c     Display bytes as individual  characters.   Printable  characters
25              are displayed directly, some control characters appear as C-lan‐
26              guage escapes (\n, \r, \t et.c), while others appear as  3-digit
27              octal  numbers.   This  should  be  similar  to the -c switch of
28              od(1).
29
30       -t     Print the time at which the data was  received  for  each  line.
31              The time is the number of seconds and microseconds, separated by
32              a decimal point (.),  since  00:00  UTC,  January  1,  1970,  as
33              reported by gettimeofday().
34
35       -T     Print  the  time  at  which the data was received for each line.
36              The time is the number of seconds and microseconds, separated by
37              a decimal point (.), since the connections were established.
38
39       -x     Display each byte as a two digit hexadecimal number.
40

SEE ALSO

42       tcpconnect(1), tcplisten(1), od(1).
43

BUGS

45       The  names  of  the  options are not yet finalized, and may change at a
46       future release.
47
48
49
50                                 1997 April 13                       TCPBUG(1)
Impressum