Prv8 Shell
Server : Apache
System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64
User : matalashes ( 1004)
PHP Version : 8.1.29
Disable Function : NONE
Directory :  /usr/share/systemtap/examples/network/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //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]))
      }
}

haha - 2025