diff options
-rw-r--r-- | randpkt_core/randpkt_core.c | 3 | ||||
-rw-r--r-- | wiretap/wtap_opttypes.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/randpkt_core/randpkt_core.c b/randpkt_core/randpkt_core.c index 85759afb52..95c2ccf83e 100644 --- a/randpkt_core/randpkt_core.c +++ b/randpkt_core/randpkt_core.c @@ -30,6 +30,7 @@ #include <stdlib.h> #include <string.h> #include "wsutil/file_util.h" +#include <wiretap/wtap_opttypes.h> #ifdef _WIN32 #include <wsutil/unicode-utils.h> @@ -677,6 +678,8 @@ void randpkt_example_init(randpkt_example* example, char* produce_filename, int { int err; + wtap_opttypes_initialize(); + if (strcmp(produce_filename, "-") == 0) { /* Write to the standard output. */ example->dump = wtap_dump_open_stdout(WTAP_FILE_TYPE_SUBTYPE_PCAP, diff --git a/wiretap/wtap_opttypes.h b/wiretap/wtap_opttypes.h index 145c9543e6..120e167c64 100644 --- a/wiretap/wtap_opttypes.h +++ b/wiretap/wtap_opttypes.h @@ -180,7 +180,7 @@ typedef struct wtap_optblock_reg { * initialized yet. Should handle "registration" when code is * refactored to do so. */ -void wtap_opttypes_initialize(void); +WS_DLL_PUBLIC void wtap_opttypes_initialize(void); /** Create an option block by type * |