session manager add packet_tag: (PKT_TAG_KEY_SESS, PKT_TAG_VAL_SESS_NEW/FREE/CTRL_MSG/TCP_STREAM)

This commit is contained in:
luwenpeng
2024-11-25 10:53:21 +08:00
parent efc6f46ca0
commit cce1155ae3
11 changed files with 286 additions and 203 deletions

View File

@@ -7,15 +7,21 @@ extern "C"
#include <stdint.h>
#include <stdbool.h>
#include "stellar/session.h"
#if 0
struct tcp_segment
{
uint32_t len;
const void *data;
struct tcp_segment *next;
};
#endif
struct tcp_segment *tcp_segment_new(uint32_t seq, const void *data, uint32_t len);
void tcp_segment_free(struct tcp_segment *seg);
void tcp_segment_set_user_data(struct tcp_segment *seg, void *user_data);
void *tcp_segment_get_user_data(const struct tcp_segment *seg);
struct tcp_reassembly *tcp_reassembly_new(uint64_t max_timeout, uint64_t max_seg_num);
void tcp_reassembly_free(struct tcp_reassembly *tcp_reass);