Add test case: inject IPv4 based TCP RST packet after recv Sub-ACK

This commit is contained in:
luwenpeng
2024-05-15 15:07:27 +08:00
parent b33dafff53
commit bb55ea68e0
5 changed files with 35 additions and 3 deletions

View File

@@ -175,9 +175,7 @@ void packet_injector_test_frame_run(struct packet_injector_case *test)
EXPECT_TRUE(replace_file_string(config_file_abs_path, "dumpfile_dir = \"/tmp/dumpfile/\"", temp) == 0);
// run packet injector
chdir(test->work_dir);
system_cmd(test->packet_injector_cmd);
chdir("../");
system_cmd("cd %s && %s && cd ..", test->work_dir, test->packet_injector_cmd);
// compare pcap
if (test->c2s_output_pcap && test->c2s_expect_pcap)