aboutsummaryrefslogtreecommitdiffstats
path: root/randpkt-core.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2015-11-05 18:31:11 +0100
committerMichael Mann <mmann78@netscape.net>2015-12-22 12:24:16 +0000
commitac0eb6043be787428a194c163b55c852c8cb5be2 (patch)
tree74a195f4a020453d811127323e95da2ef80627d6 /randpkt-core.c
parent0e4a7429db488b25941be4aa66405f9c2f4915e5 (diff)
extcap: add randpktdump, a random packet generator.
This new extcap is for testing and educational purpose. It relies on rankpkt-core functions to generate random packets. Change-Id: If6890f0673545682995a2079458108edc0913b30 Reviewed-on: https://code.wireshark.org/review/11764 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'randpkt-core.c')
-rw-r--r--randpkt-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/randpkt-core.c b/randpkt-core.c
index d5aaea5935..0e997b79fc 100644
--- a/randpkt-core.c
+++ b/randpkt-core.c
@@ -707,7 +707,7 @@ void randpkt_example_init(randpkt_example* example, char* produce_filename, int
fprintf(stderr, "your requested max_bytes value of %d\n", produce_max_bytes);
exit(1);
} else {
- example->produce_max_bytes -= example->sample_length;
+ example->produce_max_bytes = produce_max_bytes - example->sample_length;
}
}