25 lines
687 B
C
25 lines
687 B
C
#ifndef _STELLAR_PUB_H
|
|
#define _STELLAR_PUB_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
#include "stellar/session.h"
|
|
|
|
uint16_t stellar_get_current_thread_index();
|
|
|
|
// 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);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|