aboutsummaryrefslogtreecommitdiffstats
path: root/ui/rtp_stream.h
diff options
context:
space:
mode:
authorJiri Novak <j.novak@netsystem.cz>2018-06-15 22:47:47 +0200
committerAnders Broman <a.broman58@gmail.com>2018-06-20 08:26:31 +0000
commit1b4b5e59e9afbf9a83e647755ed6b3a2f344464d (patch)
tree61719d79ba5f22664a3ae185a7b643ea8815e399 /ui/rtp_stream.h
parent01de57bef61cdf001ebbaaef7ff7095e0bfb564f (diff)
RTP: Encapsulation of comparsion of two rtpstreams
Changes: - rtpstream_id_t is introduced and its related functions. It encapsulates comparsion of two rtpstreams. - dest_* renamed to dst_* - src_port and dst_port are 16bits only. - sharkd_session.c use common id functions - IAX2 part related to RTP updated to common *id* function Change-Id: Id38728a4e5d80363480c7ce42ff9c6eaad069686 Reviewed-on: https://code.wireshark.org/review/28340 Petri-Dish: Anders Broman <a.broman58@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/rtp_stream.h')
-rw-r--r--ui/rtp_stream.h21
1 files changed, 6 insertions, 15 deletions
diff --git a/ui/rtp_stream.h b/ui/rtp_stream.h
index 3e906483af..835f6bd09c 100644
--- a/ui/rtp_stream.h
+++ b/ui/rtp_stream.h
@@ -32,13 +32,11 @@ extern "C" {
#include <epan/address.h>
#include <epan/tap.h>
+#include "ui/rtp_stream_id.h"
+
/** Defines an rtp stream */
typedef struct _rtpstream_info {
- address src_addr;
- guint32 src_port;
- address dest_addr;
- guint32 dest_port;
- guint32 ssrc;
+ rtpstream_id_t id;
guint8 payload_type; /**< Numeric payload type */
gchar *payload_type_name; /**< Payload type name */
@@ -84,14 +82,14 @@ struct _rtpstream_tapinfo {
rtpstream_tap_reset_cb tap_reset; /**< tap reset callback */
rtpstream_tap_draw_cb tap_draw; /**< tap draw callback */
tap_mark_packet_cb tap_mark_packet; /**< packet marking callback */
- void *tap_data; /**< data for tap callbacks */
+ void *tap_data; /**< data for tap callbacks */
int nstreams; /**< number of streams in the list */
GList *strinfo_list; /**< list of rtp_stream_info_t* */
int npackets; /**< total number of rtp packets of all streams */
/* used while tapping. user shouldn't modify these */
tap_mode_t mode;
- rtpstream_info_t *filter_stream_fwd; /**< used as filter in some tap modes */
- rtpstream_info_t *filter_stream_rev; /**< used as filter in some tap modes */
+ rtpstream_info_t *filter_stream_fwd; /**< used as filter in some tap modes */
+ rtpstream_info_t *filter_stream_rev; /**< used as filter in some tap modes */
FILE *save_file;
gboolean is_registered; /**< if the tap listener is currently registered or not */
};
@@ -142,13 +140,6 @@ void rtpstream_scan(rtpstream_tapinfo_t *tapinfo, capture_file *cap_file, const
gboolean rtpstream_save(rtpstream_tapinfo_t *tapinfo, capture_file *cap_file, rtpstream_info_t* stream, const gchar *filename);
/**
-* Compares the endpoints of two RTP streams.
-*
-* @return TRUE if the
-*/
-gboolean rtpstream_info_is_reverse(const rtpstream_info_t *stream_a, rtpstream_info_t *stream_b);
-
-/**
* Marks all packets belonging to either of stream_fwd or stream_rev.
* (both can be NULL)
* (redissects all packets)