Sindbad~EG File Manager

Current Path : /proc/2470164/root/usr/share/systemtap/examples/network/
Upload File :
Current File : //proc/2470164/root/usr/share/systemtap/examples/network/netfilter_summary.stp

#!/usr/bin/stap

global packets

probe begin {
      print ("Collecting data... Type Ctrl-C to exit and display results.")
}

probe netfilter.ipv4.pre_routing {
      // Using aggregates avoids contention from packets being sent in
      // parallel from different processors:
      packets[saddr, daddr] <<< length
}

probe end {
      print ("\n")
      foreach ([saddr, daddr] in packets-) {
              printf ("%15s --> %15s : %d packets, %d total bytes\n",
                      saddr, daddr,
                      @count(packets[saddr,daddr]), @sum(packets[saddr,daddr]))
      }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists