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:
@@ -195,18 +195,6 @@ const struct packet *session_get0_current_packet(const struct session *sess)
|
||||
return sess->curr_pkt;
|
||||
}
|
||||
|
||||
const char *session_get0_current_payload(const struct session *sess, uint16_t *payload_len)
|
||||
{
|
||||
const struct packet *pkt = session_get0_current_packet(sess);
|
||||
if (pkt)
|
||||
{
|
||||
*payload_len = packet_get_payload_len(pkt);
|
||||
return packet_get_payload(pkt);
|
||||
}
|
||||
*payload_len = 0;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int session_is_symmetric(const struct session *sess, unsigned char *flag)
|
||||
{
|
||||
int is_symmetric = 0;
|
||||
|
||||
Reference in New Issue
Block a user