aboutsummaryrefslogtreecommitdiffstats
path: root/randpkt.c
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 /randpkt.c
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 'randpkt.c')
-rw-r--r--randpkt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/randpkt.c b/randpkt.c
index ff36dec77e..2a2ce08d89 100644
--- a/randpkt.c
+++ b/randpkt.c
@@ -206,7 +206,7 @@ main(int argc, char **argv)
ret = randpkt_example_init(example, produce_filename, produce_max_bytes);
if (ret != EXIT_SUCCESS)
goto clean_exit;
- randpkt_loop(example, produce_count);
+ randpkt_loop(example, produce_count, 0);
} else {
if (type) {
fprintf(stderr, "Can't set type in random mode\n");
@@ -225,7 +225,7 @@ main(int argc, char **argv)
goto clean_exit;
while (produce_count-- > 0) {
- randpkt_loop(example, 1);
+ randpkt_loop(example, 1, 0);
produce_type = randpkt_parse_type(NULL);
savedump = example->dump;