refactor: move tcp_segment API from packet.h to stellar.h

This commit is contained in:
luwenpeng
2024-08-21 12:02:56 +08:00
parent a0fb57e843
commit b9d6637800
2 changed files with 6 additions and 6 deletions

View File

@@ -32,10 +32,14 @@ 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);
typedef void plugin_on_packet_func(struct packet *pkt, unsigned char ip_protocol, void *plugin_env);
//return packet plugin_id
int stellar_packet_plugin_register(struct stellar *st, unsigned char ip_protocol, plugin_on_packet_func on_packet, void *plugin_env);