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_injector_test_frame.h

41 lines
708 B
C
Raw Normal View History

2024-05-15 11:40:00 +08:00
#ifndef _PACKET_INJECTOR_TEST_FRAME_H
#define _PACKET_INJECTOR_TEST_FRAME_H
#ifdef __cplusplus
extern "C"
{
#endif
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
const char *c2s_expect_pcap;
const char *c2s_output_pcap;
const char *s2c_expect_pcap;
const char *s2c_output_pcap;
// packet injector command
const char *packet_injector_cmd;
const char *diff_skip_pattern;
};
void packet_injector_test_frame_run(struct packet_injector_case *test);
#ifdef __cplusplus
}
#endif
#endif