🦄 refactor(infra/log & http test case): mv log to deps/logger
trim http test case cmake
This commit is contained in:
@@ -18,13 +18,18 @@ typedef void plugin_on_unload_func(void *plugin_env);
|
||||
typedef void *session_ctx_new_func(struct session *sess, void *plugin_env);
|
||||
typedef void session_ctx_free_func(struct session *sess, void *session_ctx, void *plugin_env);
|
||||
|
||||
#define TOPIC_TCP_STREAM "TCP_STREAM"
|
||||
#define TOPIC_CONTROL_PACKET "CONTROL_PACKET"
|
||||
// INTRINSIC TOPIC
|
||||
// TOPIC_TCP_STREAM on_msg need convert msg to (const struct tcp_segment *)
|
||||
// TOPIC_UDP_INPUT/TOPIC_TCP_INPUT/TOPIC_UDP_OUTPUT/TOPIC_TCP_OUTPUT/TOPIC_CONTROL_PACKET on_msg need convert msg to (const struct packet *)
|
||||
|
||||
#define TOPIC_TCP_STREAM "TCP_STREAM" //topic message: tcp_segment
|
||||
#define TOPIC_CONTROL_PACKET "CONTROL_PACKET" //topic message: packet
|
||||
|
||||
#define TOPIC_TCP_INPUT "TCP_INPUT"
|
||||
#define TOPIC_TCP_OUTPUT "TCP_OUTPUT"
|
||||
#define TOPIC_UDP_INPUT "UDP_INPUT"
|
||||
#define TOPIC_UDP_OUTPUT "UDP_OUTPUT"
|
||||
#define TOPIC_TCP_INPUT "TCP_INPUT" //topic message: packet
|
||||
#define TOPIC_TCP_OUTPUT "TCP_OUTPUT" //topic message: packet
|
||||
#define TOPIC_UDP_INPUT "UDP_INPUT" //topic message: packet
|
||||
#define TOPIC_UDP_OUTPUT "UDP_OUTPUT" //topic message: packet
|
||||
|
||||
|
||||
//return session plugin_id
|
||||
int stellar_session_plugin_register(struct stellar *st,
|
||||
@@ -34,12 +39,10 @@ int stellar_session_plugin_register(struct stellar *st,
|
||||
|
||||
void stellar_session_plugin_dettach_current_session(struct session *sess);
|
||||
|
||||
// TOPIC_TCP_STREAM return msg need convert to (const struct tcp_segment *)
|
||||
struct tcp_segment;
|
||||
const char *tcp_segment_get_data(const struct tcp_segment *seg);
|
||||
uint16_t tcp_segment_get_len(const struct tcp_segment *seg);
|
||||
|
||||
// TOPIC_UDP or TOPIC_TCP return msg need convert to (const struct packet *)
|
||||
struct packet;
|
||||
typedef void plugin_on_packet_func(struct packet *pkt, unsigned char ip_protocol, void *plugin_env);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user