From b29403a9638895ecd9bc515bb47e3881a53168e8 Mon Sep 17 00:00:00 2001 From: ddomingo Date: Thu, 7 May 2009 16:02:51 +1000 Subject: added tcpdumplike.stp to Network for Fedora build only --- .../en-US/Useful_Scripts-tcpdumplike.xml | 116 +++++++++++++++++++++ .../en-US/Useful_SystemTap_Scripts.xml | 2 +- 2 files changed, 117 insertions(+), 1 deletion(-) create mode 100644 doc/SystemTap_Beginners_Guide/en-US/Useful_Scripts-tcpdumplike.xml (limited to 'doc/SystemTap_Beginners_Guide/en-US') diff --git a/doc/SystemTap_Beginners_Guide/en-US/Useful_Scripts-tcpdumplike.xml b/doc/SystemTap_Beginners_Guide/en-US/Useful_Scripts-tcpdumplike.xml new file mode 100644 index 00000000..cd42edc6 --- /dev/null +++ b/doc/SystemTap_Beginners_Guide/en-US/Useful_Scripts-tcpdumplike.xml @@ -0,0 +1,116 @@ + + + + +
+ Monitoring TCP Packets + +script examples +monitoring TCP packets + + + +examples of SystemTap scripts +monitoring TCP packets + + + +monitoring TCP packets +examples of SystemTap scripts + + + TCP packets, monitoring + examples of SystemTap scripts + + + TCP packets, monitoring + examples of SystemTap scripts + + + + + This section illustrates how to monitor TCP packets received by the system. This is useful in + analyzing network traffic generated by applications running on the system. + + + + + tcpdumplike.stp + + + + + + + + + While is running, it will print out the following information + about any received TCP packets in real time: + + + + Source and destination IP address (saddr, + daddr, respectively) + Source and destination ports (sport, dport, + respectively) + Packet flags + + + + To determine the flags used by the packet, uses the following + functions: + + + + urg - urgent + ack - acknowledgement + psh - push + rst - reset + syn - synchronize + fin - finished + + + + The aforementioned functions return 1 or 0 to + specify whether the packet uses the corresponding flag. + + + + <xref linkend="tcpdumplike"/> Sample Output + +----------------------------------------------------------------- + Source IP Dest IP SPort DPort U A P R S F +----------------------------------------------------------------- + 209.85.229.147 10.0.2.15 80 20373 0 1 1 0 0 0 + 92.122.126.240 10.0.2.15 80 53214 0 1 0 0 1 0 + 92.122.126.240 10.0.2.15 80 53214 0 1 0 0 0 0 + 209.85.229.118 10.0.2.15 80 63433 0 1 0 0 1 0 + 209.85.229.118 10.0.2.15 80 63433 0 1 0 0 0 0 + 209.85.229.147 10.0.2.15 80 21141 0 1 1 0 0 0 + 209.85.229.147 10.0.2.15 80 21141 0 1 1 0 0 0 + 209.85.229.147 10.0.2.15 80 21141 0 1 1 0 0 0 + 209.85.229.147 10.0.2.15 80 21141 0 1 1 0 0 0 + 209.85.229.147 10.0.2.15 80 21141 0 1 1 0 0 0 + 209.85.229.118 10.0.2.15 80 63433 0 1 1 0 0 0 +[...] + + + +
+ diff --git a/doc/SystemTap_Beginners_Guide/en-US/Useful_SystemTap_Scripts.xml b/doc/SystemTap_Beginners_Guide/en-US/Useful_SystemTap_Scripts.xml index 4d999b53..eeab9b27 100644 --- a/doc/SystemTap_Beginners_Guide/en-US/Useful_SystemTap_Scripts.xml +++ b/doc/SystemTap_Beginners_Guide/en-US/Useful_SystemTap_Scripts.xml @@ -42,7 +42,7 @@ - +
Disk -- cgit