Add the packet_injector tool to test the packet injection effect
This commit is contained in:
@@ -7,11 +7,13 @@ extern "C"
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
#include "stellar/session.h"
|
||||
|
||||
uint16_t stellar_get_current_thread_index();
|
||||
|
||||
// return 0: success, -1: failed
|
||||
int stellar_inject_tcp_flags(const struct session *sess, enum flow_direction inject_dir, uint8_t flags);
|
||||
// return inject packet length, return 0 if failed
|
||||
int stellar_inject_tcp_rst(const struct session *sess, enum flow_direction inject_dir);
|
||||
int stellar_inject_tcp_fin(const struct session *sess, enum flow_direction inject_dir);
|
||||
int stellar_inject_payload(const struct session *sess, enum flow_direction inject_dir, const char *payload, uint16_t len);
|
||||
int stellar_inject_ctrl_msg(const struct session *sess, const struct sid_list *sids, const char *msg, uint16_t len);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user