aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2018-06-29 21:22:09 -0700
committerAnders Broman <a.broman58@gmail.com>2018-07-01 06:57:23 +0000
commitf7b91633c447fb313f299392500eb12fda0e5612 (patch)
tree71451f239fc1ee491a763ccd64ce6e081aa78585 /doc
parent61656dd2e62f91b194b803f15c6faf0a647dcdf9 (diff)
randpktdump: add --delay option
For testing live capture mode in the Qt UI, it is useful to have a continous capture source with some dummy packets. Change-Id: Id76ecbf24828dd3212b208c96679524e4c25b00f Reviewed-on: https://code.wireshark.org/review/28537 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Dario Lombardo <lomato@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/randpktdump.pod21
1 files changed, 16 insertions, 5 deletions
diff --git a/doc/randpktdump.pod b/doc/randpktdump.pod
index aa193e83fb..1ea4a879a0 100644
--- a/doc/randpktdump.pod
+++ b/doc/randpktdump.pod
@@ -15,6 +15,8 @@ S<[ B<--extcap-config> ]>
S<[ B<--capture> ]>
S<[ B<--fifo>=E<lt>path to file or pipeE<gt> ]>
S<[ B<--maxbytes>=E<lt>bytesE<gt> ]>
+S<[ B<--count>=E<lt>numE<gt> ]>
+S<[ B<--delay>=E<lt>msE<gt> ]>
S<[ B<--random-type>=E<lt>true|falseE<gt> ]>
S<[ B<--all-random>=E<lt>true|falseE<gt> ]>
S<[ B<--type>=E<lt>packet typeE<gt> ]>
@@ -65,6 +67,14 @@ Save captured packet to file or send it through pipe.
Set the max number of bytes per packet.
+=item --count=E<lt>numE<gt>
+
+Number of packets to generate (-1 for infinite).
+
+=item --delay=E<lt>msE<gt>
+
+Wait a number of milliseconds after writing each packet.
+
=item --random-type
Choose a random packet type for all packets if set to true.
@@ -110,12 +120,13 @@ To see interface configuration options:
Example output:
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=--random-type}{display=Random type}{type=boolean}{default=false}{tooltip=The packets type is randomly choosen}
- arg {number=3}{call=--all-random}{display=All random packets}{type=boolean}{default=false}{tooltip=Packet type for each packet is randomly choosen}
- arg {number=4}{call=--type}{display=Type of packet}{type=selector}{tooltip=Type of packet to generate}
- value {arg=4}{value=arp}{display=Address Resolution Protocol}
+ 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=4}{value=usb-linux}{display=Universal Serial Bus with Linux specific header}
+ value {arg=5}{value=usb-linux}{display=Universal Serial Bus with Linux specific header}
To capture: