13#ifndef __RANDPKT_CORE_H__
14#define __RANDPKT_CORE_H__
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
Defines a single random packet example type for the randpkt generator.
Definition randpkt_core.h:22
const char * abbrev
Definition randpkt_core.h:23
wtap_dumper * dump
Definition randpkt_core.h:31
uint8_t * sample_buffer
Definition randpkt_core.h:27
const char * longname
Definition randpkt_core.h:24
int sample_wtap_encap
Definition randpkt_core.h:26
int produceable_type
Definition randpkt_core.h:25
const char * filename
Definition randpkt_core.h:32
uint8_t * pseudo_buffer
Definition randpkt_core.h:29
int sample_length
Definition randpkt_core.h:28
unsigned produce_max_bytes
Definition randpkt_core.h:33
unsigned pseudo_length
Definition randpkt_core.h:30
Wiretap dumper handle and associated state.
Definition wtap_module.h:163