RANDPKTDUMP(1)

πŸ’… RANDPKTDUMP(1) β€” the randpktdump girlies' guide ✨

okay so real talk, this is the manual page for randpktdump, and it lives in section 1 of the manual, bestie. it's a Wireshark-adjacent extcap situation and it's honestly iconic for testing vibes. let's get into it πŸŽ€


🌸 NAME 🌸

randpktdump β€” it gives you an interface to generate random captures using randpkt. that's the whole gig. it's giving "chaos, but make it a pcap file" πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

randpktdump [ --help ] [ --version ] [ --extcap-interfaces ]
[ --extcap-dlts ] [ --extcap-interface=<interface> ] [ --extcap-config ]
[ --capture ] [ --fifo=<path to file or pipe> ] [ --maxbytes=<bytes> ]
[ --count=<num> ] [ --delay=<ms> ] [ --random-type=<true|false> ]
[ --all-random=<true|false> ] [ --type=<packet type> ]

that's a lot of brackets and we respect every single one of them. no skipping, no cap πŸ’…


✨ DESCRIPTION ✨

randpktdump is an extcap tool that hands you access to the random packet generator, which is called randpkt. lowkey its whole personality is testing and educational purposes β€” it's not out here doing production traffic, she's out here doing science 🌈

think of her as the friend who shows up to the study session with a bag of random props. mainly testing, mainly educational, entirely chaotic. 🧚


πŸ‘‘ OPTIONS πŸ‘‘

here's every single flag, and yes we're doing them all, because that's what main character energy looks like 🫢

  • --help β€” prints the program arguments. the "what even are you" button.
  • --version β€” prints the program version. the "how old are you" button.
  • --extcap-interfaces β€” lists the available interfaces. show me the menu, bestie πŸ“
  • --extcap-interface=<interface> β€” use the interface you specified.
  • --extcap-dlts β€” lists the DLTs of the specified interface.
  • --extcap-config β€” lists the configuration options of the specified interface.
  • --capture β€” starts capturing from the specified interface and saves it in the location specified by --fifo. this is the actual doing-the-thing flag πŸ”₯
  • --fifo=<path to file or pipe> β€” saves the captured packet to a file, or sends it through a pipe. pick your vibe.
  • --maxbytes=<bytes> β€” sets the max number of bytes per packet.
  • --count=<num> β€” the number of packets to generate. -1 means infinite, so like… be so serious before you type that one 😭
  • --delay=<ms> β€” wait a number of milliseconds after writing each packet. little breather, she deserves it.
  • --random-type β€” chooses a random packet type for all packets if set to true. one type to rule them all, but the type is random.
  • --all-random β€” chooses a different random packet type for each packet if set to true. full chaos mode, every packet a new era πŸ’€
  • --type=<packet type> β€” use the selected packet type. and listen: to list all the available packet types, run randpktdump --help. that's the cheat code, iykyk.

πŸŽ€ EXAMPLES πŸŽ€

okay so here's where it gets fun. we're gonna walk through these one by one πŸ’–

see the program arguments

randpktdump --help

see the program version

randpktdump --version

see the interfaces

randpktdump --extcap-interfaces

example output, look at her go:

interface {value=randpkt}{display=Random packet generator}

see the interface DLTs

randpktdump --extcap-interface=randpkt --extcap-dlts

example output:

dlt {number=1}{name=randpkt}{display=Ethernet}

see the interface configuration options

randpktdump --extcap-interface=randpkt --extcap-config

example output β€” yes, this whole thing, we're not truncating anything:

arg {number=0}{call=--maxbytes}{display=Max bytes in a packet}{type=unsigned}{range=1,5000}{default=5000}{tooltip=The max number of bytes in a packet}
arg {number=1}{call=--count}{display=Number of packets}{type=long}{default=1000}{tooltip=Number of packets to generate (-1 for infinite)}
arg {number=2}{call=--delay}{display=Packet delay (ms)}{type=long}{default=0}{tooltip=Milliseconds to wait after writing each packet}
arg {number=3}{call=--random-type}{display=Random type}{type=boolflag}{default=false}{tooltip=The packets type is randomly chosen}
arg {number=4}{call=--all-random}{display=All random packets}{type=boolflag}{default=false}{tooltip=Packet type for each packet is randomly chosen}
arg {number=5}{call=--type}{display=Type of packet}{type=selector}{tooltip=Type of packet to generate}
value {arg=5}{value=arp}{display=Address Resolution Protocol}
[...]
value {arg=5}{value=usb-linux}{display=Universal Serial Bus with Linux specific header}

that [...] is literally in the output, it's the manpage saying "there's more, i'm not typing it all out". respect honestly πŸ¦‹

to capture

randpktdump --extcap-interface=randpkt --fifo=/tmp/randpkt.pcapng --capture
Note β€” to stop capturing, use CTRL+C, kill, or terminate the application. she does not stop on her own, bestie, you gotta be the one to end it πŸ’€

πŸ” SEE ALSO πŸ”

wireshark(1), tshark(1), dumpcap(1), extcap(4), randpkt(1)

the whole friend group. go say hi πŸ‘‹


πŸ“ NOTES πŸ“

randpktdump is part of the Wireshark distribution. the latest version of Wireshark can be found at https://www.wireshark.org β€” go check, she's always evolving ✨

HTML versions of the Wireshark project man pages are available at https://www.wireshark.org/docs/man-pages β€” for the girlies who prefer reading in a browser, we see you 🫢


πŸ’œ AUTHORS πŸ’œ

Original Author Dario Lombardo <lomato[AT]gmail.com>


and that's the whole page! footer tea: this beauty is dated 2026-10-08 and it's RANDPKTDUMP(1) all day long. stay random, generate responsibly, and remember β€” infinite packets is a choice, not a personality πŸ˜­πŸ’…πŸ’–

πŸ“¦ where this page comes from