Skip to content
forked from superfly/dropspy

Go implementation of the venerable dropwatch utility

License

Notifications You must be signed in to change notification settings

smallnest/dropspy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dropspy

dropspy is reworking of the C-language dropwatch tool in Go, with some extra features.

The original version dropspy is at superfly/dropspy,

Installation

go install github.com/smallnest/dropspy/cmd/dropspy@latest

Usage

./dropspy: Report packet drops from Linux kernel DM_MON.
./dropspy [flags] [pcap filter]
ie: ./dropspy --hex -I eth0 udp port 53
  -c, --count uint          maximum drops to record
      --hex                 print hex dumps of matching packets
      --hw                  record hardware drops (default true)
  -I, --iface stringArray   show only drops on this interface (may be repeated)
      --isym stringArray    include drops from syms matching regexp (may be repeated)
      --maxlen uint         maximum packet length for drops
      --minlen uint         minimum packet length for drops
      --summary             print summary of drops
      --sw                  record software drops (default true)
  -w, --timeout string      duration to capture for (300ms, 2h15m, &c)
      --xsym stringArray    exclude drops from syms matching regexp (may be repeated)

You can only print the summary of drops per second:

./dropspy --summary

License

MIT

About

Go implementation of the venerable dropwatch utility

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%