aboutsummaryrefslogtreecommitdiffstats
path: root/ui/rtp_stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/rtp_stream.h')
-rw-r--r--ui/rtp_stream.h78
1 files changed, 45 insertions, 33 deletions
diff --git a/ui/rtp_stream.h b/ui/rtp_stream.h
index 323b7371d2..4dcbf5165e 100644
--- a/ui/rtp_stream.h
+++ b/ui/rtp_stream.h
@@ -35,7 +35,7 @@
/****************************************************************************/
/* type for storing rtp frame information */
typedef struct st_rtp_sample_header {
- guint32 rec_time; /**< milliseconds since start of recording */
+ guint32 rec_time; /**< milliseconds since start of recording */
guint16 frame_length; /**< number of bytes in *frame */
} rtp_sample_header_t;
@@ -50,30 +50,30 @@ typedef rtp_sample_t* rtp_sample_p;
/** Defines an rtp stream */
typedef struct _rtp_stream_info {
- address src_addr;
- guint32 src_port;
- address dest_addr;
- guint32 dest_port;
- guint32 ssrc;
- guint8 pt;
- const gchar *info_payload_type_str;
- guint32 npackets;
-
- guint32 first_frame_num; /**< frame number of first frame */
- guint32 setup_frame_number; /**< frame number of setup message */
+ address src_addr;
+ guint32 src_port;
+ address dest_addr;
+ guint32 dest_port;
+ guint32 ssrc;
+ guint8 pt;
+ const gchar *info_payload_type_str;
+ guint32 npackets;
+
+ guint32 first_frame_num; /**< frame number of first frame */
+ guint32 setup_frame_number; /**< frame number of setup message */
/* start of recording (GMT) of this stream */
- guint32 start_sec; /**< seconds */
- guint32 start_usec; /**< microseconds */
- gboolean tag_vlan_error;
- guint32 start_rel_sec; /**< start stream rel seconds */
- guint32 start_rel_usec; /**< start stream rel microseconds */
- guint32 stop_rel_sec; /**< stop stream rel seconds */
- guint32 stop_rel_usec; /**< stop stream rel microseconds */
- gboolean tag_diffserv_error;
- guint16 vlan_id;
-
- tap_rtp_stat_t rtp_stats; /**< here goes the RTP statistics info */
- gboolean problem; /**< if the streams had wrong sequence numbers or wrong timerstamps */
+ guint32 start_sec; /**< seconds */
+ guint32 start_usec; /**< microseconds */
+ gboolean tag_vlan_error;
+ guint32 start_rel_sec; /**< start stream rel seconds */
+ guint32 start_rel_usec; /**< start stream rel microseconds */
+ guint32 stop_rel_sec; /**< stop stream rel seconds */
+ guint32 stop_rel_usec; /**< stop stream rel microseconds */
+ gboolean tag_diffserv_error;
+ guint16 vlan_id;
+
+ tap_rtp_stat_t rtp_stats; /**< here goes the RTP statistics info */
+ gboolean problem; /**< if the streams had wrong sequence numbers or wrong timerstamps */
} rtp_stream_info_t;
@@ -89,16 +89,16 @@ typedef enum
/* structure that holds the information about all detected streams */
/** struct holding all information of the tap */
typedef struct _rtpstream_tapinfo {
- int nstreams; /**< number of streams in the list */
- GList* strinfo_list; /**< list with all streams */
- int npackets; /**< total number of rtp packets of all streams */
+ int nstreams; /**< number of streams in the list */
+ GList *strinfo_list; /**< list with all streams */
+ int npackets; /**< total number of rtp packets of all streams */
/* used while tapping. user shouldn't modify these */
- tap_mode_t mode;
- rtp_stream_info_t* filter_stream_fwd; /**< used as filter in some tap modes */
- rtp_stream_info_t* filter_stream_rev; /**< used as filter in some tap modes */
- FILE* save_file;
- guint32 launch_count; /**< number of times the tap has been run */
- gboolean is_registered; /**< if the tap listener is currently registered or not */
+ tap_mode_t mode;
+ rtp_stream_info_t *filter_stream_fwd; /**< used as filter in some tap modes */
+ rtp_stream_info_t *filter_stream_rev; /**< used as filter in some tap modes */
+ FILE *save_file;
+ guint32 launch_count; /**< number of times the tap has been run */
+ gboolean is_registered; /**< if the tap listener is currently registered or not */
} rtpstream_tapinfo_t;
/****************************************************************************/
@@ -149,5 +149,17 @@ gboolean rtpstream_save(rtp_stream_info_t* stream, const gchar *filename);
*/
void rtpstream_mark(rtp_stream_info_t* stream_fwd, rtp_stream_info_t* stream_rev);
+/*
+ * Editor modelines - http://www.wireshark.org/tools/modelines.html
+ *
+ * Local variables:
+ * c-basic-offset: 4
+ * tab-width: 8
+ * indent-tabs-mode: nil
+ * End:
+ *
+ * vi: set shiftwidth=4 tabstop=8 expandtab:
+ * :indentSize=4:tabSize=8:noTabs=true:
+ */
#endif /* __RTP_STREAM_H__ */