Debian Codegraph @

testsuite/systemtap.examples/network/who_sent_it.txt

raw
1 # stap who_sent_it.stp -G the_dport=53 -c "ping -c 1 sourceware.org"
2
3 PING sourceware.org (209.132.180.131) 56(84) bytes of data.
4 64 bytes from server1.sourceware.org (209.132.180.131): icmp_seq=1 ttl=47 time=90.9 ms
5 [...]
6 nscd[21841] sent packet to 192.168.1.10:53 <<<< output from systemtap
7
8
9 # stap who_sent_it.stp -G the_daddr="192.168.1.10"
10
11 swapper/0[0] sent packet to 192.168.1.10:2049
12 zsh[2215] sent packet to 192.168.1.10:2049
13 swapper/0[0] sent packet to 192.168.1.10:2049
14 ssh[24933] sent packet to 192.168.1.10:22
15 ssh[21400] sent packet to 192.168.1.10:22
16 swapper/0[0] sent packet to 192.168.1.10:22 <<<< not necessarily originating thread
17 ssh[24933] sent packet to 192.168.1.10:22
18 ssh[24933] sent packet to 192.168.1.10:22
19 ssh[21400] sent packet to 192.168.1.10:22
20 [...]