Add packet injector test frame

This commit is contained in:
luwenpeng
2024-05-15 11:40:00 +08:00
parent cda77c6f6f
commit b33dafff53
31 changed files with 458 additions and 140 deletions

View File

@@ -58,6 +58,18 @@ void packet_io_free(struct packet_io *packet_io)
}
}
int packet_io_wait_exit(struct packet_io *packet_io) // used for dumpfile mode
{
if (likely(packet_io->mode == PACKET_IO_MARSIO))
{
return 0;
}
else
{
return dumpfile_io_wait_exit(packet_io->dumpfile);
}
}
int packet_io_init(struct packet_io *packet_io, uint16_t thr_idx)
{
if (likely(packet_io->mode == PACKET_IO_MARSIO))