summaryrefslogtreecommitdiff
path: root/external/cddl/dtracetoolkit/dist/Examples/tcpsnoop_d_example.txt
blob: a0a8cc85d379a4705a6bde8b8f726e873b3937d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
The following is a demonstration of the tcpsnoop script.



Here we run tcpsnoop and wait for new TCP connections to be established,

   # tcpsnoop.d
     UID    PID LADDR           LPORT DR RADDR           RPORT  SIZE CMD
     100  20892 192.168.1.5     36398 -> 192.168.1.1        79    54 finger
     100  20892 192.168.1.5     36398 <- 192.168.1.1        79    66 finger
     100  20892 192.168.1.5     36398 -> 192.168.1.1        79    54 finger
     100  20892 192.168.1.5     36398 -> 192.168.1.1        79    56 finger
     100  20892 192.168.1.5     36398 <- 192.168.1.1        79    54 finger
     100  20892 192.168.1.5     36398 <- 192.168.1.1        79   606 finger
     100  20892 192.168.1.5     36398 -> 192.168.1.1        79    54 finger
     100  20892 192.168.1.5     36398 <- 192.168.1.1        79    54 finger
     100  20892 192.168.1.5     36398 -> 192.168.1.1        79    54 finger
     100  20892 192.168.1.5     36398 -> 192.168.1.1        79    54 finger
     100  20892 192.168.1.5     36398 <- 192.168.1.1        79    54 finger
       0    242 192.168.1.5        23 <- 192.168.1.1     54224    54 inetd
       0    242 192.168.1.5        23 -> 192.168.1.1     54224    54 inetd
       0    242 192.168.1.5        23 <- 192.168.1.1     54224    54 inetd
       0    242 192.168.1.5        23 <- 192.168.1.1     54224    78 inetd
       0    242 192.168.1.5        23 -> 192.168.1.1     54224    54 inetd
       0  20893 192.168.1.5        23 -> 192.168.1.1     54224    57 in.telnetd
       0  20893 192.168.1.5        23 <- 192.168.1.1     54224    54 in.telnetd
       0  20893 192.168.1.5        23 -> 192.168.1.1     54224    78 in.telnetd
       0  20893 192.168.1.5        23 <- 192.168.1.1     54224    57 in.telnetd
       0  20893 192.168.1.5        23 -> 192.168.1.1     54224    54 in.telnetd
       0  20893 192.168.1.5        23 <- 192.168.1.1     54224    54 in.telnetd
       0  20893 192.168.1.5        23 -> 192.168.1.1     54224    60 in.telnetd
       0  20893 192.168.1.5        23 <- 192.168.1.1     54224    63 in.telnetd
       0  20893 192.168.1.5        23 -> 192.168.1.1     54224    54 in.telnetd
       0  20893 192.168.1.5        23 <- 192.168.1.1     54224    60 in.telnetd
       0  20893 192.168.1.5        23 -> 192.168.1.1     54224    60 in.telnetd
       0  20893 192.168.1.5        23 <- 192.168.1.1     54224    60 in.telnetd
       0  20893 192.168.1.5        23 -> 192.168.1.1     54224    72 in.telnetd
   [...]

As new connections are made, each of the TCP packets are traced along with
the UID, PID and command name.
>Link the sqlite Lua module to the build and add it to the set lists.mbalmer 2011-10-15Remove un-needed headers.mbalmer 2011-10-15A small test/demo program to show the sqlite Lua module usage.mbalmer 2011-10-15A Lua module to access SQLite databases.mbalmer 2011-10-11use WARNS?=4 for all Lua modulesplunky 2011-10-10Handle sun2christos 2011-10-10turn on warnings, and fix compilation issues.christos 2011-10-08Link the gpio(4) Lua module to the build and add it to the set lists.mbalmer 2011-10-08Add NetBSD CVS marker, remove some whitespace.mbalmer 2011-10-08Makefile to build gpio.so.mbalmer 2011-10-07Add stub Makefile, not yet called.mbalmer 2011-10-07Interface gpio(4) from Lua. Not linked to the build.mbalmer