diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-09-03 11:46:20 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-09-03 21:48:48 +0000 |
commit | e4d9ce18d8008e29c824d6de89b04eb486532755 (patch) | |
tree | ef20e949a410782d6d319d9b0e692dea38bcd665 /ui/tap-rtp-common.c | |
parent | 04913778d899939cefbcfa47de50e9c9a1aa0447 (diff) |
Move IAX2 analysis to the ui directory.
Rename ui/gtk/iax2_analysis.h to ui/tap-iax2-analysis.h. Move
iax2_packet_analyse to ui/tap-iax2-analysis.c.
Rename rtp_analysis.h to tap-rtp-analysis.h to match IAX2.
Change-Id: Ice7e9ad0d7bf62d631850089c880ec09a3e101dd
Reviewed-on: https://code.wireshark.org/review/10375
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/tap-rtp-common.c')
-rw-r--r-- | ui/tap-rtp-common.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/ui/tap-rtp-common.c b/ui/tap-rtp-common.c index b164c39ed3..f8d1e22280 100644 --- a/ui/tap-rtp-common.c +++ b/ui/tap-rtp-common.c @@ -29,6 +29,8 @@ #include "config.h" +#include <glib.h> + #include <math.h> #include "globals.h" @@ -405,7 +407,8 @@ get_dyn_pt_clock_rate(const gchar *payload_type_str) } /****************************************************************************/ -int rtp_packet_analyse(tap_rtp_stat_t *statinfo, +void +rtp_packet_analyse(tap_rtp_stat_t *statinfo, packet_info *pinfo, const struct _rtp_info *rtpinfo) { @@ -453,7 +456,7 @@ int rtp_packet_analyse(tap_rtp_stat_t *statinfo, statinfo->flags |= STAT_FLAG_MARKER; } statinfo->first_packet = FALSE; - return 0; + return; } /* Reset flags */ @@ -464,7 +467,7 @@ int rtp_packet_analyse(tap_rtp_stat_t *statinfo, if(!ADDRESSES_EQUAL(&(statinfo->first_packet_mac_addr), &(pinfo->dl_src))){ statinfo->flags |= STAT_FLAG_DUP_PKT; statinfo->delta = current_time-(statinfo->time); - return 0; + return; } } @@ -543,7 +546,7 @@ int rtp_packet_analyse(tap_rtp_stat_t *statinfo, statinfo->pt = rtpinfo->info_payload_type; /* - * Return 0 for unknown payload types + * Return for unknown payload types * Ignore jitter calculation for clockrate = 0 */ if (statinfo->pt < 96 ){ @@ -689,7 +692,7 @@ int rtp_packet_analyse(tap_rtp_stat_t *statinfo, statinfo->stop_seq_nr = rtpinfo->info_seq_num; statinfo->total_nr++; - return 0; + return; } /* |