tests: add regression tests for Follow TCP Stream
[metze/wireshark/wip.git] / randpkt.c
index b904bc30c2e1372c93d463a6ca8c9d147b5343cd..2a2ce08d8933bfb5d9bef5801db0106fb8cacf0d 100644 (file)
--- a/randpkt.c
+++ b/randpkt.c
@@ -6,7 +6,7 @@
  *
  * Copyright (C) 1999 by Gilbert Ramirez <gram@alumni.rice.edu>
  *
- * SPDX-License-Identifier: GPL-2.0+
+ * SPDX-License-Identifier: GPL-2.0-or-later
  */
 
 #include <config.h>
@@ -127,7 +127,7 @@ main(int argc, char **argv)
         * Attempt to get the pathname of the directory containing the
         * executable file.
         */
-       init_progfile_dir_error = init_progfile_dir(argv[0], main);
+       init_progfile_dir_error = init_progfile_dir(argv[0]);
        if (init_progfile_dir_error != NULL) {
                fprintf(stderr,
                    "capinfos: Can't get pathname of directory containing the capinfos program: %s.\n",
@@ -138,7 +138,7 @@ main(int argc, char **argv)
        init_report_message(failure_warning_message, failure_warning_message,
                                NULL, NULL, NULL);
 
-       wtap_init();
+       wtap_init(TRUE);
 
        cmdarg_err_init(failure_warning_message, failure_message_cont);
 
@@ -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;