An open API service indexing awesome lists of open source software.

https://github.com/superfly/dropspy

Go implementation of the venerable dropwatch utility
https://github.com/superfly/dropspy

Last synced: about 2 months ago
JSON representation

Go implementation of the venerable dropwatch utility

Awesome Lists containing this project

README

          

# 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

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

## Usage

```bash
./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](https://choosealicense.com/licenses/mit/)