dwdump(1)

✨ dwdump(1) ✨

okay so bestie, welcome to dwdump β€” it's a little General Commands Manual moment, and honestly? it's giving main character energy. basically it's the tool you call when you wanna dump kernel dropped packets to a file. that's the whole vibe. packets that got yeeted by the kernel? we're catching them πŸ’…


🌸 NAME 🌸

dwdump β€” dump kernel dropped packets to a file 🫢


πŸŽ€ SYNOPSIS πŸŽ€

dwdump [ OPTIONS ]

that's it. no positional args, no drama, just vibes and options ✨


πŸ’– OPTIONS πŸ’–

okay bestie here's the menu, and no we are not skipping any of them, every single flag is iconic in its own way:

  • -w, --write FILE β€” dumps the packets into the file you give it, in pcap format. if you don't say anything, it defaults to standard output. lowkey the most used one fr fr.
  • -t, --trunc LENGTH β€” asks the kernel to truncate packets down to the length you provide. defaults to no truncation at all, so full packets by default.
  • -q, --query β€” queries the kernel for the current configuration and then exits. like a lil vibe check on the kernel's settings πŸ’…
  • -l, --limit LIMIT β€” asks the kernel to set the per-CPU packet queue limit to your provided limit. defaults to 1,000 packets. don't be greedy bestie.
  • -p, --passive β€” only listens on notified packets with no configuration done. this is useful if the kernel is already monitoring dropped packets and you just want to open another listening socket. so like, you're just pulling up a chair, not rearranging the furniture πŸͺ‘
  • -s, --stats β€” queries the kernel for statistics and exits. numbers, bestie. we love numbers.
  • -b, --bufsize SIZE β€” sets the socket's receive buffer to the size you provide. defaults to 1MB. give it room to breathe ✨
  • -o, --origin { sw | hw } β€” asks the kernel to only monitor software or hardware originated drops. defaults to both. see devlink-trap(8) for details on how to get hardware originated drops to the kernel. iykyk πŸ‘‘
  • -e, --exit β€” asks the kernel to stop monitoring and exit. the graceful lil goodbye πŸ‘‹

🌈 EXAMPLES 🌈

these are literally the cutest lil demos, pls enjoy:

dwdump -w drops.pcap

Dump dropped packets to a file. classic. the go-to. πŸ“

dwdump | tshark -V -r -

Pipe dropped packets to Wireshark. pipe it bestie, pipe it πŸ”₯

dwdump -o sw -w drops.pcap

Only monitor software originated drops. hardware found irrelevant πŸ’€

dwdump -q

Query current configuration from the kernel and exit. in and out, no notes.


πŸ¦‹ SEE ALSO πŸ¦‹

go read these too, they're the friend group:


heads up bestie: -p / --passive does no configuration at all, it only listens on notified packets β€” that's on purpose, not a bug. and -o defaults to both sw and hw, so if you only want one of them you actually have to say so. no cap. πŸ’œ

and that's the whole page, periodt. this lil icon was written by Ido Schimmel back in Jan 2020, and it lives in the General Commands Manual β€” dwdump(1) forever and always πŸ’–βœ¨πŸŽ€