9 randpktdump - Provide an interface to generate random captures using randpkt
16 S<[ B<--extcap-interfaces> ]>
17 S<[ B<--extcap-dlts> ]>
18 S<[ B<--extcap-interface>=E<lt>interfaceE<gt> ]>
19 S<[ B<--extcap-config> ]>
21 S<[ B<--fifo>=E<lt>path to file or pipeE<gt> ]>
22 S<[ B<--maxbytes>=E<lt>bytesE<gt> ]>
23 S<[ B<--count>=E<lt>numE<gt> ]>
24 S<[ B<--delay>=E<lt>msE<gt> ]>
25 S<[ B<--random-type>=E<lt>true|falseE<gt> ]>
26 S<[ B<--all-random>=E<lt>true|falseE<gt> ]>
27 S<[ B<--type>=E<lt>packet typeE<gt> ]>
31 B<randpktdump> is a extcap tool that provides access to the random
32 packet generator (randpkt). It is mainly used for testing and
41 Print program arguments.
45 Print program version.
47 =item --extcap-interfaces
49 List available interfaces.
51 =item --extcap-interface=E<lt>interfaceE<gt>
53 Use specified interfaces.
57 List DLTs of specified interface.
61 List configuration options of specified interface.
65 Start capturing from specified interface save saved it in place specified by --fifo.
67 =item --fifo=E<lt>path to file or pipeE<gt>
69 Save captured packet to file or send it through pipe.
71 =item --maxbytes=E<lt>bytesE<gt>
73 Set the max number of bytes per packet.
75 =item --count=E<lt>numE<gt>
77 Number of packets to generate (-1 for infinite).
79 =item --delay=E<lt>msE<gt>
81 Wait a number of milliseconds after writing each packet.
85 Choose a random packet type for all packets if set to true.
89 Choose a different random packet type for each packet if set to true.
91 =item --type=E<lt>packet typeE<gt>
93 Use the selected packet type. To list all the available packet type, run randpktdump --help.
99 To see program arguments:
103 To see program version:
105 randpktdump --version
109 randpktdump --extcap-interfaces
112 interface {value=randpkt}{display=Random packet generator}
114 To see interface DLTs:
116 randpktdump --extcap-interface=randpkt --extcap-dlts
119 dlt {number=1}{name=randpkt}{display=Ethernet}
121 To see interface configuration options:
123 randpktdump --extcap-interface=randpkt --extcap-config
126 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}
127 arg {number=1}{call=--count}{display=Number of packets}{type=long}{default=1000}{tooltip=Number of packets to generate (-1 for infinite)}
128 arg {number=2}{call=--delay}{display=Packet delay (ms)}{type=long}{default=0}{tooltip=Milliseconds to wait after writing each packet}
129 arg {number=3}{call=--random-type}{display=Random type}{type=boolflag}{default=false}{tooltip=The packets type is randomly chosen}
130 arg {number=4}{call=--all-random}{display=All random packets}{type=boolflag}{default=false}{tooltip=Packet type for each packet is randomly chosen}
131 arg {number=5}{call=--type}{display=Type of packet}{type=selector}{tooltip=Type of packet to generate}
132 value {arg=5}{value=arp}{display=Address Resolution Protocol}
134 value {arg=5}{value=usb-linux}{display=Universal Serial Bus with Linux specific header}
138 randpktdump --extcap-interface=randpkt --fifo=/tmp/randpkt.pcapng --capture
140 NOTE: To stop capturing CTRL+C/kill/terminate application.
144 wireshark(1), tshark(1), dumpcap(1), extcap(4), randpkt(1)
148 B<randpktdump> is part of the B<Wireshark> distribution. The latest version
149 of B<Wireshark> can be found at L<https://www.wireshark.org>.
151 HTML versions of the Wireshark project man pages are available at:
152 L<https://www.wireshark.org/docs/man-pages>.
158 Dario Lombardo <lomato[AT]gmail.com>