inject TCP RST test pass
This commit is contained in:
@@ -98,10 +98,16 @@ int packet_get_direction(const struct packet *pkt); // 1: E2I, 0: I2E
|
||||
void packet_set_session_id(struct packet *pkt, uint64_t sess_id);
|
||||
uint64_t packet_get_session_id(const struct packet *pkt);
|
||||
|
||||
void packet_set_sid_list(struct packet *pkt, uint16_t *sid, int num);
|
||||
int packet_get_sid_list(const struct packet *pkt, uint16_t *sid, int num); // return number of sid
|
||||
void packet_prepend_sid_list(struct packet *pkt, uint16_t *sid, int num);
|
||||
void packet_append_sid_list(struct packet *pkt, uint16_t *sid, int num);
|
||||
#define MAX_SID_NUM 8
|
||||
struct sid_list
|
||||
{
|
||||
uint16_t sid[MAX_SID_NUM];
|
||||
int used;
|
||||
};
|
||||
void packet_set_sid_list(struct packet *pkt, const struct sid_list *list);
|
||||
void packet_get_sid_list(const struct packet *pkt, struct sid_list *list);
|
||||
void packet_prepend_sid_list(struct packet *pkt, const struct sid_list *list);
|
||||
void packet_append_sid_list(struct packet *pkt, const struct sid_list *list);
|
||||
|
||||
/*
|
||||
******************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user