dropspy icon indicating copy to clipboard operation
dropspy copied to clipboard

Go implementation of the venerable dropwatch utility

dropspy

dropspy is a (POC-quality) reworking of the C-language dropwatch tool in Go, with some extra features.

This is currently potato code and I make no promises that it works at all.

Installation

git clone https://github.com/superfly/dropspy.git
cd dropspy
go install ./cmd/dropspy

Usage

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

License

MIT