43 lines
721 B
C
43 lines
721 B
C
#ifndef _PACKET_INJECTOR_TEST_FRAME_H
|
|
#define _PACKET_INJECTOR_TEST_FRAME_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#define MAX_COMPARISON 16
|
|
|
|
struct packet_injector_case
|
|
{
|
|
// descriptor
|
|
int finish_clean_work_dir;
|
|
const char *descriptor;
|
|
const char *work_dir;
|
|
|
|
// prefix
|
|
const char *input_prefix;
|
|
|
|
// input pcap
|
|
const char *input_pcap;
|
|
|
|
// compare
|
|
struct
|
|
{
|
|
const char *expect_pcap;
|
|
const char *inject_pcap;
|
|
} compares[MAX_COMPARISON];
|
|
|
|
// packet injector command
|
|
const char *packet_injector_cmd[16];
|
|
const char *diff_skip_pattern;
|
|
};
|
|
|
|
void packet_injector_test_frame_run(struct packet_injector_case *test);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|