This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
stellar-stellar/test/packet_inject/packet_inject_test.h

37 lines
592 B
C
Raw Normal View History

#ifndef _PACKET_INJECT_TEST_H
#define _PACKET_INJECT_TEST_H
2024-05-15 11:40:00 +08:00
#ifdef __cplusplus
extern "C"
{
#endif
#define MAX_COMPARISON 16
struct packet_inject_case
2024-05-15 11:40:00 +08:00
{
int finish_clean_work_dir;
const char *descriptor;
const char *work_dir;
const char *input_prefix;
const char *input_pcap;
struct
{
const char *expect_pcap;
const char *inject_pcap;
} compares[MAX_COMPARISON];
2024-05-15 11:40:00 +08:00
const char *packet_injector_cmd[16];
2024-05-15 11:40:00 +08:00
const char *diff_skip_pattern;
};
void packet_inject_test(struct packet_inject_case *test);
2024-05-15 11:40:00 +08:00
#ifdef __cplusplus
}
#endif
#endif