xref: /netbsd-src/external/cddl/dtracetoolkit/dist/Examples/connections_example.txt (revision c29d51755812ace2e87aeefdb06cb2b4dac7087a)
1The following is an example of connections. As inbound TCP connections are
2established their details are printed out. This includes the UID, PID and
3CMD of the server process that is listening on that port,
4
5   # connections
6     UID   PID CMD          TYPE  PORT IP_SOURCE
7       0   242 inetd         tcp    79 192.168.1.1
8       0   359 sshd          tcp    22 192.168.1.1
9     100  1532 Xorg          tcp  6000 192.168.1.1
10   ^C
11
12
13In another window snoop was running for comparison,
14
15   # snoop 'tcp[13:1] = 0x02'
16   Using device /dev/rtls0 (promiscuous mode)
17           mars -> jupiter      FINGER C port=56760
18           mars -> jupiter      TCP D=22 S=56761 Syn Seq=3264782212 Len=0 ...
19           mars -> jupiter      XWIN C port=56763
20
21snoop can already tell me that these connections are happening - but does not
22print out details of the server that accepted the connection.
23
24