13#ifndef __RANDPKT_CORE_H__
14#define __RANDPKT_CORE_H__
23 int sample_wtap_encap;
24 uint8_t* sample_buffer;
26 uint8_t* pseudo_buffer;
27 unsigned pseudo_length;
30 unsigned produce_max_bytes;
int randpkt_example_init(randpkt_example *example, char *produce_filename, int produce_max_bytes, int file_type_subtype)
Initializes a random packet example with parameters for packet production.
Definition randpkt_core.c:656
randpkt_example * randpkt_find_example(int type)
Find pkt_example record and return pointer to it.
Definition randpkt_core.c:540
void randpkt_example_list(char ***abbrev_list, char ***longname_list)
Returns the list of active examples, including their abbreviations and long names.
Definition randpkt_core.c:720
bool randpkt_example_close(randpkt_example *example)
Closes a random packet example.
Definition randpkt_core.c:637
int randpkt_parse_type(char *string)
Parse command-line option "type" and return enum type.
Definition randpkt_core.c:699
unsigned randpkt_example_count(void)
Return the count of active examples.
Definition randpkt_core.c:534
void randpkt_loop(randpkt_example *example, uint64_t produce_count, uint64_t packet_delay_ms)
Loops to produce a specified number of random packets with a given delay.
Definition randpkt_core.c:556
Definition randpkt_core.h:19
Wiretap dumper handle and associated state.
Definition wtap_module.h:163