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
- Host: GitHub
- URL: https://github.com/superfly/dropspy
- Owner: superfly
- License: mit
- Created: 2021-10-29T01:03:28.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-29T19:47:53.000Z (about 4 years ago)
- Last Synced: 2024-06-21T05:58:00.472Z (over 1 year ago)
- Language: Go
- Size: 32.2 KB
- Stars: 34
- Watchers: 6
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/)