Removed the ambiguous session_get0_current_payload() API. It is unclear whether the original packet payload or TCP reassembled payload is obtained.
It is recommended to: * Use packet_get_payload() to obtain the original packet payload * Use tcp_segment_get_data() to obtain the reassembled data
This commit is contained in:
@@ -78,7 +78,6 @@ const struct packet *session_get_first_packet(const struct session *sess, enum f
|
||||
// session current packet
|
||||
void session_set_current_packet(struct session *sess, const struct packet *pkt);
|
||||
const struct packet *session_get0_current_packet(const struct session *sess);
|
||||
const char *session_get0_current_payload(const struct session *sess, uint16_t *payload_len);
|
||||
|
||||
// session symmetric
|
||||
int session_is_symmetric(const struct session *sess, unsigned char *flag);
|
||||
|
||||
Reference in New Issue
Block a user