2000-04-21 01:45:58 +00:00
|
|
|
/* packet-rtcp.c
|
2001-06-12 06:32:39 +00:00
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
2000-04-21 01:45:58 +00:00
|
|
|
*
|
2000-10-19 06:45:11 +00:00
|
|
|
* Routines for RTCP dissection
|
|
|
|
* RTCP = Real-time Transport Control Protocol
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2000-10-19 06:45:11 +00:00
|
|
|
* Copyright 2000, Philips Electronics N.V.
|
2004-02-14 22:48:53 +00:00
|
|
|
* Written by Andreas Sikkema <h323@ramdyne.nl>
|
2000-04-21 01:45:58 +00:00
|
|
|
*
|
2004-05-31 19:35:53 +00:00
|
|
|
* Copyright 2004, Anders Broman <anders.broman@ericsson.com>
|
|
|
|
*
|
2005-02-13 03:41:44 +00:00
|
|
|
* Copyright 2005, Nagarjuna Venna <nvenna@brixnet.com>
|
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2000-04-21 01:45:58 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2000-04-21 01:45:58 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2000-04-21 01:45:58 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2000-04-21 01:45:58 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
2000-10-19 06:45:11 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This dissector tries to dissect the RTCP protocol according to Annex A
|
|
|
|
* of ITU-T Recommendation H.225.0 (02/98) and RFC 1889
|
|
|
|
* H.225.0 literally copies RFC 1889, but omitting a few sections.
|
2000-04-21 01:45:58 +00:00
|
|
|
*
|
2002-08-28 21:04:11 +00:00
|
|
|
* RTCP traffic is handled by an uneven UDP portnumber. This can be any
|
2000-10-19 06:45:11 +00:00
|
|
|
* port number, but there is a registered port available, port 5005
|
|
|
|
* See Annex B of ITU-T Recommendation H.225.0, section B.7
|
2000-04-21 01:45:58 +00:00
|
|
|
*
|
2005-11-09 21:50:39 +00:00
|
|
|
* Information on PoC can be found from http://www.openmobilealliance.org/
|
|
|
|
*
|
2005-02-13 03:41:44 +00:00
|
|
|
* RTCP XR is specified in RFC 3611.
|
|
|
|
*
|
2004-05-31 19:35:53 +00:00
|
|
|
* See also http://www.iana.org/assignments/rtp-parameters
|
2000-04-21 01:45:58 +00:00
|
|
|
*/
|
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <glib.h>
|
2002-01-21 07:37:49 +00:00
|
|
|
#include <epan/packet.h>
|
2000-04-21 01:45:58 +00:00
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
#include <stdio.h>
|
2000-04-21 01:45:58 +00:00
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include "packet-rtcp.h"
|
2000-10-19 08:17:45 +00:00
|
|
|
#include "packet-ntp.h"
|
2002-01-21 07:37:49 +00:00
|
|
|
#include <epan/conversation.h>
|
2000-04-21 01:45:58 +00:00
|
|
|
|
2004-09-27 22:55:15 +00:00
|
|
|
#include <epan/prefs.h>
|
2005-08-12 10:50:55 +00:00
|
|
|
#include <epan/emem.h>
|
2006-06-06 18:26:57 +00:00
|
|
|
#include <epan/expert.h>
|
2004-06-15 18:26:08 +00:00
|
|
|
|
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
/* Version is the first 2 bits of the first octet*/
|
|
|
|
#define RTCP_VERSION(octet) ((octet) >> 6)
|
|
|
|
|
|
|
|
/* Padding is the third bit; no need to shift, because true is any value
|
|
|
|
other than 0! */
|
|
|
|
#define RTCP_PADDING(octet) ((octet) & 0x20)
|
|
|
|
|
|
|
|
/* Receiver/ Sender count is the 5 last bits */
|
|
|
|
#define RTCP_COUNT(octet) ((octet) & 0x1F)
|
|
|
|
|
2004-06-15 18:26:08 +00:00
|
|
|
static dissector_handle_t rtcp_handle;
|
|
|
|
|
2002-08-28 21:04:11 +00:00
|
|
|
static const value_string rtcp_version_vals[] =
|
2000-10-19 06:45:11 +00:00
|
|
|
{
|
|
|
|
{ 0, "Old VAT Version" },
|
|
|
|
{ 1, "First Draft Version" },
|
|
|
|
{ 2, "RFC 1889 Version" },
|
|
|
|
{ 0, NULL },
|
|
|
|
};
|
|
|
|
|
|
|
|
/* RTCP packet types according to Section A.11.1 */
|
2004-05-31 19:35:53 +00:00
|
|
|
/* And http://www.iana.org/assignments/rtp-parameters */
|
2000-10-19 06:45:11 +00:00
|
|
|
#define RTCP_SR 200
|
|
|
|
#define RTCP_RR 201
|
|
|
|
#define RTCP_SDES 202
|
|
|
|
#define RTCP_BYE 203
|
|
|
|
#define RTCP_APP 204
|
2005-11-07 19:40:55 +00:00
|
|
|
#define RTCP_RTPFB 205
|
|
|
|
#define RTCP_PSFB 206
|
2004-05-31 19:35:53 +00:00
|
|
|
#define RTCP_XR 207
|
2000-10-19 06:45:11 +00:00
|
|
|
/* Supplemental H.261 specific RTCP packet types according to Section C.3.5 */
|
|
|
|
#define RTCP_FIR 192
|
|
|
|
#define RTCP_NACK 193
|
|
|
|
|
2002-08-28 21:04:11 +00:00
|
|
|
static const value_string rtcp_packet_type_vals[] =
|
2000-10-19 06:45:11 +00:00
|
|
|
{
|
|
|
|
{ RTCP_SR, "Sender Report" },
|
|
|
|
{ RTCP_RR, "Receiver Report" },
|
|
|
|
{ RTCP_SDES, "Source description" },
|
|
|
|
{ RTCP_BYE, "Goodbye" },
|
|
|
|
{ RTCP_APP, "Application specific" },
|
|
|
|
{ RTCP_FIR, "Full Intra-frame Request (H.261)" },
|
|
|
|
{ RTCP_NACK, "Negative Acknowledgement (H.261)" },
|
2005-11-07 19:40:55 +00:00
|
|
|
{ RTCP_RTPFB, "Generic RTP Feedback" },
|
|
|
|
{ RTCP_PSFB, "Payload-specific" },
|
2005-02-13 03:41:44 +00:00
|
|
|
{ RTCP_XR, "Extended report (RFC 3611)"},
|
2000-10-19 06:45:11 +00:00
|
|
|
{ 0, NULL },
|
|
|
|
};
|
|
|
|
|
|
|
|
/* RTCP SDES types (Section A.11.2) */
|
|
|
|
#define RTCP_SDES_END 0
|
|
|
|
#define RTCP_SDES_CNAME 1
|
|
|
|
#define RTCP_SDES_NAME 2
|
|
|
|
#define RTCP_SDES_EMAIL 3
|
|
|
|
#define RTCP_SDES_PHONE 4
|
|
|
|
#define RTCP_SDES_LOC 5
|
|
|
|
#define RTCP_SDES_TOOL 6
|
|
|
|
#define RTCP_SDES_NOTE 7
|
|
|
|
#define RTCP_SDES_PRIV 8
|
2004-05-31 19:35:53 +00:00
|
|
|
#define RTCP_SDES_H323_CADDR 9
|
2000-10-19 06:45:11 +00:00
|
|
|
|
2002-08-28 21:04:11 +00:00
|
|
|
static const value_string rtcp_sdes_type_vals[] =
|
2000-04-21 01:45:58 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
{ RTCP_SDES_END, "END" },
|
|
|
|
{ RTCP_SDES_CNAME, "CNAME (user and domain)" },
|
|
|
|
{ RTCP_SDES_NAME, "NAME (common name)" },
|
|
|
|
{ RTCP_SDES_EMAIL, "EMAIL (e-mail address)" },
|
|
|
|
{ RTCP_SDES_PHONE, "PHONE (phone number)" },
|
|
|
|
{ RTCP_SDES_LOC, "LOC (geographic location)" },
|
|
|
|
{ RTCP_SDES_TOOL, "TOOL (name/version of source app)" },
|
|
|
|
{ RTCP_SDES_NOTE, "NOTE (note about source)" },
|
|
|
|
{ RTCP_SDES_PRIV, "PRIV (private extensions)" },
|
2004-05-31 19:35:53 +00:00
|
|
|
{ RTCP_SDES_H323_CADDR,"H323-CADDR (H.323 callable address)"},
|
2000-10-19 06:45:11 +00:00
|
|
|
{ 0, NULL },
|
|
|
|
};
|
2005-02-13 03:41:44 +00:00
|
|
|
|
|
|
|
/* RTCP XR Blocks (Section 4, RTC 3611) */
|
|
|
|
#define RTCP_XR_LOSS_RLE 1
|
|
|
|
#define RTCP_XR_DUP_RLE 2
|
|
|
|
#define RTCP_XR_PKT_RXTIMES 3
|
|
|
|
#define RTCP_XR_REF_TIME 4
|
|
|
|
#define RTCP_XR_DLRR 5
|
|
|
|
#define RTCP_XR_STATS_SUMRY 6
|
|
|
|
#define RTCP_XR_VOIP_METRCS 7
|
|
|
|
|
|
|
|
static const value_string rtcp_xr_type_vals[] =
|
|
|
|
{
|
|
|
|
{ RTCP_XR_LOSS_RLE, "Loss Run Length Encoding Report Block" },
|
|
|
|
{ RTCP_XR_DUP_RLE, "Duplicate Run Length Encoding Report Block" },
|
|
|
|
{ RTCP_XR_PKT_RXTIMES, "Packet Receipt Times Report Block" },
|
|
|
|
{ RTCP_XR_REF_TIME, "Receiver Reference Time Report Block" },
|
|
|
|
{ RTCP_XR_DLRR, "DLRR Report Block" },
|
|
|
|
{ RTCP_XR_STATS_SUMRY, "Statistics Summary Report Block" },
|
|
|
|
{ RTCP_XR_VOIP_METRCS, "VoIP Metrics Report Block" },
|
2005-08-28 03:01:37 +00:00
|
|
|
{ 0, NULL}
|
2005-02-13 03:41:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* XR VoIP Metrics Block - PLC Algorithms */
|
|
|
|
static const value_string rtcp_xr_plc_algo_vals[] =
|
|
|
|
{
|
|
|
|
{ 0, "Unspecified" },
|
|
|
|
{ 1, "Disabled" },
|
|
|
|
{ 2, "Enhanced" },
|
|
|
|
{ 3, "Standard" },
|
2005-08-28 03:01:37 +00:00
|
|
|
{ 0, NULL }
|
2005-02-13 03:41:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* XR VoIP Metrics Block - JB Adaptive */
|
|
|
|
static const value_string rtcp_xr_jb_adaptive_vals[] =
|
|
|
|
{
|
|
|
|
{ 0, "Unknown" },
|
|
|
|
{ 1, "Reserved" },
|
|
|
|
{ 2, "Non-Adaptive" },
|
|
|
|
{ 3, "Adaptive" },
|
2005-08-28 03:01:37 +00:00
|
|
|
{ 0, NULL }
|
2005-02-13 03:41:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* XR Stats Summary Block - IP TTL or Hop Limit */
|
|
|
|
static const value_string rtcp_xr_ip_ttl_vals[] =
|
|
|
|
{
|
|
|
|
{ 0, "No TTL Values" },
|
|
|
|
{ 1, "IPv4" },
|
|
|
|
{ 2, "IPv6" },
|
|
|
|
{ 3, "Undefined" },
|
2005-08-28 03:01:37 +00:00
|
|
|
{ 0, NULL }
|
2005-02-13 03:41:44 +00:00
|
|
|
};
|
|
|
|
|
2005-11-09 21:50:39 +00:00
|
|
|
/* RTCP Application PoC1 Value strings
|
2006-08-02 16:00:07 +00:00
|
|
|
* OMA-TS-PoC-UserPlane-V1_0-20060609-A
|
2005-11-09 21:50:39 +00:00
|
|
|
*/
|
2006-08-02 16:00:07 +00:00
|
|
|
|
|
|
|
#define TBCP_BURST_REQUEST 0
|
|
|
|
#define TBCP_BURST_GRANTED 1
|
|
|
|
#define TBCP_BURST_TAKEN_EXPECT_NO_REPLY 2
|
|
|
|
#define TBCP_BURST_DENY 3
|
|
|
|
#define TBCP_BURST_RELEASE 4
|
|
|
|
#define TBCP_BURST_IDLE 5
|
|
|
|
#define TBCP_BURST_REVOKE 6
|
|
|
|
#define TBCP_BURST_ACKNOWLEDGMENT 7
|
|
|
|
#define TBCP_QUEUE_STATUS_REQUEST 8
|
|
|
|
#define TBCP_QUEUE_STATUS_RESPONSE 9
|
|
|
|
#define TBCP_DISCONNECT 11
|
|
|
|
#define TBCP_CONNECT 15
|
|
|
|
#define TBCP_BURST_TAKEN_EXPECT_REPLY 18
|
|
|
|
|
|
|
|
|
2004-05-31 19:35:53 +00:00
|
|
|
static const value_string rtcp_app_poc1_floor_cnt_type_vals[] =
|
|
|
|
{
|
2006-08-02 16:00:07 +00:00
|
|
|
{ TBCP_BURST_REQUEST, "TBCP Talk Burst Request"},
|
|
|
|
{ TBCP_BURST_GRANTED, "TBCP Talk Burst Granted"},
|
|
|
|
{ TBCP_BURST_TAKEN_EXPECT_NO_REPLY, "TBCP Talk Burst Taken (no ack expected)"},
|
|
|
|
{ TBCP_BURST_DENY, "TBCP Talk Burst Deny"},
|
|
|
|
{ TBCP_BURST_RELEASE, "TBCP Talk Burst Release"},
|
|
|
|
{ TBCP_BURST_IDLE, "TBCP Talk Burst Idle"},
|
|
|
|
{ TBCP_BURST_REVOKE, "TBCP Talk Burst Revoke"},
|
|
|
|
{ TBCP_BURST_ACKNOWLEDGMENT, "TBCP Talk Burst Acknowledgement"},
|
|
|
|
{ TBCP_QUEUE_STATUS_REQUEST, "TBCP Queue Status Request"},
|
|
|
|
{ TBCP_QUEUE_STATUS_RESPONSE, "TBCP Queue Status Response"},
|
|
|
|
{ TBCP_DISCONNECT, "TBCP Disconnect"},
|
|
|
|
{ TBCP_CONNECT, "TBCP Connect"},
|
|
|
|
{ TBCP_BURST_TAKEN_EXPECT_REPLY, "TBCP Talk Burst Taken (ack expected)"},
|
2004-06-01 18:58:04 +00:00
|
|
|
{ 0, NULL },
|
2004-05-31 19:35:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string rtcp_app_poc1_reason_code1_vals[] =
|
|
|
|
{
|
2006-08-02 16:00:07 +00:00
|
|
|
{ 1, "Another PoC User has permission"},
|
2004-05-31 19:35:53 +00:00
|
|
|
{ 2, "Internal PoC server error"},
|
2006-08-02 16:00:07 +00:00
|
|
|
{ 3, "Only one participant in the group"},
|
|
|
|
{ 4, "Retry-after timer has not expired"},
|
|
|
|
{ 5, "Listen only"},
|
2004-06-01 18:58:04 +00:00
|
|
|
{ 0, NULL },
|
2004-05-31 19:35:53 +00:00
|
|
|
};
|
2000-10-19 06:45:11 +00:00
|
|
|
|
2004-05-31 19:35:53 +00:00
|
|
|
static const value_string rtcp_app_poc1_reason_code2_vals[] =
|
|
|
|
{
|
|
|
|
{ 1, "Only one user"},
|
|
|
|
{ 2, "Talk burst too long"},
|
2006-08-02 16:00:07 +00:00
|
|
|
{ 3, "No permission to send a Talk Burst"},
|
|
|
|
{ 4, "Talk burst pre-empted"},
|
2004-06-01 18:58:04 +00:00
|
|
|
{ 0, NULL },
|
2004-05-31 19:35:53 +00:00
|
|
|
};
|
2005-08-22 16:26:29 +00:00
|
|
|
|
2005-11-09 21:50:39 +00:00
|
|
|
static const value_string rtcp_app_poc1_reason_code_ack_vals[] =
|
|
|
|
{
|
|
|
|
{ 0, "Accepted"},
|
|
|
|
{ 1, "Busy"},
|
|
|
|
{ 2, "Not accepted"},
|
|
|
|
{ 0, NULL },
|
|
|
|
};
|
2005-08-22 16:26:29 +00:00
|
|
|
static const value_string rtcp_app_poc1_conn_sess_type_vals[] =
|
|
|
|
{
|
|
|
|
{ 0, "None"},
|
|
|
|
{ 1, "1-to-1"},
|
|
|
|
{ 2, "Ad-hoc"},
|
|
|
|
{ 3, "Pre-arranged"},
|
|
|
|
{ 4, "Chat"},
|
|
|
|
{ 0, NULL },
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string rtcp_app_poc1_qsresp_priority_vals[] =
|
|
|
|
{
|
|
|
|
{ 0, "No priority (un-queued)"},
|
|
|
|
{ 1, "Normal priority"},
|
|
|
|
{ 2, "High priority"},
|
|
|
|
{ 3, "Pre-emptive priority"},
|
|
|
|
{ 0, NULL },
|
|
|
|
};
|
2007-02-24 17:31:55 +00:00
|
|
|
/* RFC 4585 */
|
|
|
|
static const value_string rtcp_rtpfb_fmt_vals[] =
|
|
|
|
{
|
|
|
|
{ 1, "Generic negative acknowledgement"},
|
|
|
|
{ 31, "Reserved for future extensions"},
|
|
|
|
{ 0, NULL },
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string rtcp_psfb_fmt_vals[] =
|
|
|
|
{
|
|
|
|
{ 1, "Picture Loss Indication"},
|
|
|
|
{ 2, "Slice Loss Indication"},
|
|
|
|
{ 3, "Reference Picture Selection Indication"},
|
|
|
|
{ 15, "Application Layer Feedback"},
|
|
|
|
{ 31, "Reserved for future extensions"},
|
|
|
|
{ 0, NULL },
|
|
|
|
};
|
2005-08-22 16:26:29 +00:00
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
/* RTCP header fields */
|
|
|
|
static int proto_rtcp = -1;
|
|
|
|
static int hf_rtcp_version = -1;
|
|
|
|
static int hf_rtcp_padding = -1;
|
|
|
|
static int hf_rtcp_rc = -1;
|
|
|
|
static int hf_rtcp_sc = -1;
|
|
|
|
static int hf_rtcp_pt = -1;
|
|
|
|
static int hf_rtcp_length = -1;
|
|
|
|
static int hf_rtcp_ssrc_sender = -1;
|
|
|
|
static int hf_rtcp_ntp = -1;
|
2006-04-06 13:30:45 +00:00
|
|
|
static int hf_rtcp_ntp_msw = -1;
|
|
|
|
static int hf_rtcp_ntp_lsw = -1;
|
2000-10-19 06:45:11 +00:00
|
|
|
static int hf_rtcp_rtp_timestamp = -1;
|
|
|
|
static int hf_rtcp_sender_pkt_cnt = -1;
|
|
|
|
static int hf_rtcp_sender_oct_cnt = -1;
|
|
|
|
static int hf_rtcp_ssrc_source = -1;
|
|
|
|
static int hf_rtcp_ssrc_fraction = -1;
|
|
|
|
static int hf_rtcp_ssrc_cum_nr = -1;
|
2005-02-13 03:41:44 +00:00
|
|
|
static int hf_rtcp_ssrc_discarded = -1;
|
2002-08-28 21:04:11 +00:00
|
|
|
/* First the 32 bit number, then the split
|
2000-10-19 06:45:11 +00:00
|
|
|
* up 16 bit values */
|
|
|
|
/* These two are added to a subtree */
|
|
|
|
static int hf_rtcp_ssrc_ext_high_seq = -1;
|
|
|
|
static int hf_rtcp_ssrc_high_seq = -1;
|
|
|
|
static int hf_rtcp_ssrc_high_cycles = -1;
|
|
|
|
static int hf_rtcp_ssrc_jitter = -1;
|
|
|
|
static int hf_rtcp_ssrc_lsr = -1;
|
|
|
|
static int hf_rtcp_ssrc_dlsr = -1;
|
|
|
|
static int hf_rtcp_ssrc_csrc = -1;
|
2005-11-09 21:50:39 +00:00
|
|
|
static int hf_rtcp_sdes_type = -1;
|
|
|
|
static int hf_rtcp_sdes_length = -1;
|
|
|
|
static int hf_rtcp_sdes_text = -1;
|
|
|
|
static int hf_rtcp_sdes_prefix_len = -1;
|
|
|
|
static int hf_rtcp_sdes_prefix_string= -1;
|
2000-10-19 06:45:11 +00:00
|
|
|
static int hf_rtcp_subtype = -1;
|
|
|
|
static int hf_rtcp_name_ascii = -1;
|
|
|
|
static int hf_rtcp_app_data = -1;
|
|
|
|
static int hf_rtcp_fsn = -1;
|
|
|
|
static int hf_rtcp_blp = -1;
|
|
|
|
static int hf_rtcp_padding_count = -1;
|
|
|
|
static int hf_rtcp_padding_data = -1;
|
2006-05-29 18:16:23 +00:00
|
|
|
static int hf_rtcp_profile_specific_extension = -1;
|
2006-08-02 16:00:07 +00:00
|
|
|
static int hf_rtcp_app_poc1 = -1;
|
2004-06-15 18:26:08 +00:00
|
|
|
static int hf_rtcp_app_poc1_subtype = -1;
|
2004-06-01 18:58:04 +00:00
|
|
|
static int hf_rtcp_app_poc1_sip_uri = -1;
|
|
|
|
static int hf_rtcp_app_poc1_disp_name = -1;
|
2006-08-02 16:00:07 +00:00
|
|
|
static int hf_rtcp_app_poc1_priority = -1;
|
|
|
|
static int hf_rtcp_app_poc1_request_ts = -1;
|
2005-11-09 21:50:39 +00:00
|
|
|
static int hf_rtcp_app_poc1_stt = -1;
|
|
|
|
static int hf_rtcp_app_poc1_partic = -1;
|
|
|
|
static int hf_rtcp_app_poc1_ssrc_granted = -1;
|
2004-05-31 19:35:53 +00:00
|
|
|
static int hf_rtcp_app_poc1_last_pkt_seq_no = -1;
|
2006-08-02 16:00:07 +00:00
|
|
|
static int hf_rtcp_app_poc1_ignore_seq_no = -1;
|
2004-05-31 19:35:53 +00:00
|
|
|
static int hf_rtcp_app_poc1_reason_code1 = -1;
|
|
|
|
static int hf_rtcp_app_poc1_reason1_phrase = -1;
|
|
|
|
static int hf_rtcp_app_poc1_reason_code2 = -1;
|
2006-08-02 16:00:07 +00:00
|
|
|
static int hf_rtcp_app_poc1_new_time_request = -1;
|
2005-08-22 16:26:29 +00:00
|
|
|
static int hf_rtcp_app_poc1_ack_subtype = -1;
|
|
|
|
static int hf_rtcp_app_poc1_ack_reason_code = -1;
|
|
|
|
static int hf_rtcp_app_poc1_qsresp_priority = -1;
|
|
|
|
static int hf_rtcp_app_poc1_qsresp_position = -1;
|
2006-08-02 16:00:07 +00:00
|
|
|
static int hf_rtcp_app_poc1_conn_content[5] = { -1, -1, -1, -1, -1 };
|
2005-08-22 16:26:29 +00:00
|
|
|
static int hf_rtcp_app_poc1_conn_session_type = -1;
|
|
|
|
static int hf_rtcp_app_poc1_conn_add_ind_mao = -1;
|
2005-08-24 20:34:15 +00:00
|
|
|
static int hf_rtcp_app_poc1_conn_sdes_items[5] = { -1, -1, -1, -1, -1 };
|
2005-02-13 03:41:44 +00:00
|
|
|
static int hf_rtcp_xr_block_type = -1;
|
|
|
|
static int hf_rtcp_xr_block_specific = -1;
|
|
|
|
static int hf_rtcp_xr_block_length = -1;
|
|
|
|
static int hf_rtcp_xr_thinning = -1;
|
|
|
|
static int hf_rtcp_xr_voip_metrics_burst_density = -1;
|
|
|
|
static int hf_rtcp_xr_voip_metrics_gap_density = -1;
|
|
|
|
static int hf_rtcp_xr_voip_metrics_burst_duration = -1;
|
|
|
|
static int hf_rtcp_xr_voip_metrics_gap_duration = -1;
|
|
|
|
static int hf_rtcp_xr_voip_metrics_rtdelay = -1;
|
|
|
|
static int hf_rtcp_xr_voip_metrics_esdelay = -1;
|
|
|
|
static int hf_rtcp_xr_voip_metrics_siglevel = -1;
|
|
|
|
static int hf_rtcp_xr_voip_metrics_noiselevel = -1;
|
|
|
|
static int hf_rtcp_xr_voip_metrics_rerl = -1;
|
|
|
|
static int hf_rtcp_xr_voip_metrics_gmin = -1;
|
|
|
|
static int hf_rtcp_xr_voip_metrics_rfactor = -1;
|
|
|
|
static int hf_rtcp_xr_voip_metrics_extrfactor = -1;
|
|
|
|
static int hf_rtcp_xr_voip_metrics_moslq = -1;
|
|
|
|
static int hf_rtcp_xr_voip_metrics_moscq = -1;
|
|
|
|
static int hf_rtcp_xr_voip_metrics_plc = -1;
|
|
|
|
static int hf_rtcp_xr_voip_metrics_jbadaptive = -1;
|
|
|
|
static int hf_rtcp_xr_voip_metrics_jbrate = -1;
|
|
|
|
static int hf_rtcp_xr_voip_metrics_jbnominal = -1;
|
|
|
|
static int hf_rtcp_xr_voip_metrics_jbmax = -1;
|
|
|
|
static int hf_rtcp_xr_voip_metrics_jbabsmax = -1;
|
|
|
|
static int hf_rtcp_xr_stats_loss_flag = -1;
|
|
|
|
static int hf_rtcp_xr_stats_dup_flag = -1;
|
|
|
|
static int hf_rtcp_xr_stats_jitter_flag = -1;
|
|
|
|
static int hf_rtcp_xr_stats_ttl = -1;
|
|
|
|
static int hf_rtcp_xr_beginseq = -1;
|
|
|
|
static int hf_rtcp_xr_endseq = -1;
|
|
|
|
static int hf_rtcp_xr_stats_lost = -1;
|
|
|
|
static int hf_rtcp_xr_stats_dups = -1;
|
|
|
|
static int hf_rtcp_xr_stats_minjitter = -1;
|
|
|
|
static int hf_rtcp_xr_stats_maxjitter = -1;
|
|
|
|
static int hf_rtcp_xr_stats_meanjitter = -1;
|
|
|
|
static int hf_rtcp_xr_stats_devjitter = -1;
|
|
|
|
static int hf_rtcp_xr_stats_minttl = -1;
|
|
|
|
static int hf_rtcp_xr_stats_maxttl = -1;
|
|
|
|
static int hf_rtcp_xr_stats_meanttl = -1;
|
|
|
|
static int hf_rtcp_xr_stats_devttl = -1;
|
|
|
|
static int hf_rtcp_xr_lrr = -1;
|
|
|
|
static int hf_rtcp_xr_dlrr = -1;
|
2006-06-06 18:26:57 +00:00
|
|
|
static int hf_rtcp_length_check = -1;
|
2007-02-24 17:31:55 +00:00
|
|
|
static int hf_rtcp_rtpfb_fmt = -1;
|
|
|
|
static int hf_rtcp_psfb_fmt = -1;
|
|
|
|
static int hf_rtcp_fci = -1;
|
2000-10-19 06:45:11 +00:00
|
|
|
|
2004-06-15 18:26:08 +00:00
|
|
|
/* RTCP setup fields */
|
|
|
|
static int hf_rtcp_setup = -1;
|
|
|
|
static int hf_rtcp_setup_frame = -1;
|
|
|
|
static int hf_rtcp_setup_method = -1;
|
|
|
|
|
2004-09-15 20:08:30 +00:00
|
|
|
/* RTCP roundtrip delay fields */
|
2006-04-06 13:30:45 +00:00
|
|
|
static int hf_rtcp_last_sr_timestamp_frame = -1;
|
|
|
|
static int hf_rtcp_roundtrip_delay = -1;
|
2004-09-15 20:08:30 +00:00
|
|
|
|
|
|
|
|
2004-06-15 18:26:08 +00:00
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
/* RTCP fields defining a sub tree */
|
2004-05-31 19:35:53 +00:00
|
|
|
static gint ett_rtcp = -1;
|
|
|
|
static gint ett_ssrc = -1;
|
|
|
|
static gint ett_ssrc_item = -1;
|
2004-06-01 18:58:04 +00:00
|
|
|
static gint ett_ssrc_ext_high = -1;
|
2004-05-31 19:35:53 +00:00
|
|
|
static gint ett_sdes = -1;
|
|
|
|
static gint ett_sdes_item = -1;
|
|
|
|
static gint ett_PoC1 = -1;
|
2004-06-15 18:26:08 +00:00
|
|
|
static gint ett_rtcp_setup = -1;
|
2004-09-15 20:08:30 +00:00
|
|
|
static gint ett_rtcp_roundtrip_delay = -1;
|
2005-02-13 03:41:44 +00:00
|
|
|
static gint ett_xr_block = -1;
|
|
|
|
static gint ett_xr_block_contents = -1;
|
|
|
|
static gint ett_xr_ssrc = -1;
|
|
|
|
static gint ett_xr_loss_chunk = -1;
|
2005-08-22 16:26:29 +00:00
|
|
|
static gint ett_poc1_conn_contents = -1;
|
2000-10-19 06:45:11 +00:00
|
|
|
|
2006-10-26 16:52:55 +00:00
|
|
|
/* Protocol registration */
|
|
|
|
void proto_register_rtcp(void);
|
|
|
|
void proto_reg_handoff_rtcp(void);
|
|
|
|
|
2004-09-15 20:08:30 +00:00
|
|
|
/* Main dissection function */
|
2001-11-27 07:13:32 +00:00
|
|
|
static void dissect_rtcp( tvbuff_t *tvb, packet_info *pinfo,
|
|
|
|
proto_tree *tree );
|
2001-01-03 06:56:03 +00:00
|
|
|
|
2004-09-15 20:08:30 +00:00
|
|
|
/* Heuristic dissection */
|
|
|
|
static gboolean global_rtcp_heur = FALSE;
|
|
|
|
static gboolean dissect_rtcp_heur( tvbuff_t *tvb, packet_info *pinfo,
|
|
|
|
proto_tree *tree );
|
|
|
|
|
|
|
|
/* Displaying set info */
|
2004-06-15 18:26:08 +00:00
|
|
|
static gboolean global_rtcp_show_setup_info = TRUE;
|
2004-09-15 20:08:30 +00:00
|
|
|
static void show_setup_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
|
|
|
|
|
|
|
|
/* Related to roundtrip calculation (using LSR and DLSR) */
|
|
|
|
static gboolean global_rtcp_show_roundtrip_calculation = FALSE;
|
|
|
|
#define MIN_ROUNDTRIP_TO_REPORT_DEFAULT 10
|
|
|
|
static guint global_rtcp_show_roundtrip_calculation_minimum = MIN_ROUNDTRIP_TO_REPORT_DEFAULT;
|
|
|
|
static void remember_outgoing_sr(packet_info *pinfo, long lsr);
|
|
|
|
static void calculate_roundtrip_delay(tvbuff_t *tvb, packet_info *pinfo,
|
|
|
|
proto_tree *tree, guint32 lsr, guint32 dlsr);
|
|
|
|
static void add_roundtrip_delay_info(tvbuff_t *tvb, packet_info *pinfo,
|
2007-01-02 11:46:30 +00:00
|
|
|
proto_tree *tree, guint frame, gint delay);
|
2004-06-15 18:26:08 +00:00
|
|
|
|
2004-08-16 05:54:01 +00:00
|
|
|
|
2004-09-15 20:08:30 +00:00
|
|
|
/* Set up an RTCP conversation using the info given */
|
2004-06-15 18:26:08 +00:00
|
|
|
void rtcp_add_address( packet_info *pinfo,
|
2004-08-30 10:03:54 +00:00
|
|
|
address *addr, int port,
|
2004-06-15 18:26:08 +00:00
|
|
|
int other_port,
|
2005-07-30 01:01:02 +00:00
|
|
|
const gchar *setup_method, guint32 setup_frame_number)
|
2000-10-19 06:45:11 +00:00
|
|
|
{
|
2004-08-30 10:03:54 +00:00
|
|
|
address null_addr;
|
2004-06-15 18:26:08 +00:00
|
|
|
conversation_t* p_conv;
|
|
|
|
struct _rtcp_conversation_info *p_conv_data = NULL;
|
2001-09-03 10:33:12 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* If this isn't the first time this packet has been processed,
|
|
|
|
* we've already done this work, so we don't need to do it
|
|
|
|
* again.
|
|
|
|
*/
|
|
|
|
if (pinfo->fd->flags.visited)
|
2004-06-29 20:29:57 +00:00
|
|
|
{
|
2001-09-03 10:33:12 +00:00
|
|
|
return;
|
2004-06-29 20:29:57 +00:00
|
|
|
}
|
2000-10-19 06:45:11 +00:00
|
|
|
|
2004-08-30 10:03:54 +00:00
|
|
|
SET_ADDRESS(&null_addr, AT_NONE, 0, NULL);
|
2000-10-19 06:45:11 +00:00
|
|
|
|
|
|
|
/*
|
2002-08-28 21:04:11 +00:00
|
|
|
* Check if the ip address and port combination is not
|
2004-08-18 07:34:15 +00:00
|
|
|
* already registered as a conversation.
|
2000-10-19 06:45:11 +00:00
|
|
|
*/
|
2005-02-02 20:07:03 +00:00
|
|
|
p_conv = find_conversation( pinfo->fd->num, addr, &null_addr, PT_UDP, port, other_port,
|
2004-06-15 18:26:08 +00:00
|
|
|
NO_ADDR_B | (!other_port ? NO_PORT_B : 0));
|
2000-04-21 01:45:58 +00:00
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
/*
|
2004-08-18 07:34:15 +00:00
|
|
|
* If not, create a new conversation.
|
2000-10-19 06:45:11 +00:00
|
|
|
*/
|
2004-06-15 18:26:08 +00:00
|
|
|
if ( ! p_conv ) {
|
2005-02-02 20:07:03 +00:00
|
|
|
p_conv = conversation_new( pinfo->fd->num, addr, &null_addr, PT_UDP,
|
2004-06-29 20:29:57 +00:00
|
|
|
(guint32)port, (guint32)other_port,
|
2004-06-15 18:26:08 +00:00
|
|
|
NO_ADDR2 | (!other_port ? NO_PORT2 : 0));
|
|
|
|
}
|
2004-08-18 07:34:15 +00:00
|
|
|
|
|
|
|
/* Set dissector */
|
|
|
|
conversation_set_dissector(p_conv, rtcp_handle);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Check if the conversation has data associated with it.
|
|
|
|
*/
|
|
|
|
p_conv_data = conversation_get_proto_data(p_conv, proto_rtcp);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* If not, add a new data item.
|
|
|
|
*/
|
|
|
|
if ( ! p_conv_data ) {
|
|
|
|
/* Create conversation data */
|
2005-08-12 10:50:55 +00:00
|
|
|
p_conv_data = se_alloc(sizeof(struct _rtcp_conversation_info));
|
2004-09-15 20:08:30 +00:00
|
|
|
if (!p_conv_data)
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
memset(p_conv_data, 0, sizeof(struct _rtcp_conversation_info));
|
2004-08-18 07:34:15 +00:00
|
|
|
conversation_add_proto_data(p_conv, proto_rtcp, p_conv_data);
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
2004-08-18 07:34:15 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Update the conversation data.
|
|
|
|
*/
|
2004-09-15 20:08:30 +00:00
|
|
|
p_conv_data->setup_method_set = TRUE;
|
|
|
|
strncpy(p_conv_data->setup_method, setup_method, MAX_RTCP_SETUP_METHOD_SIZE);
|
|
|
|
p_conv_data->setup_method[MAX_RTCP_SETUP_METHOD_SIZE] = '\0';
|
|
|
|
p_conv_data->setup_frame_number = setup_frame_number;
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
2000-04-21 01:45:58 +00:00
|
|
|
|
2001-01-03 06:56:03 +00:00
|
|
|
static gboolean
|
2000-10-19 06:45:11 +00:00
|
|
|
dissect_rtcp_heur( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree )
|
|
|
|
{
|
2004-08-16 05:54:01 +00:00
|
|
|
unsigned int offset = 0;
|
|
|
|
unsigned int first_byte;
|
|
|
|
unsigned int packet_type;
|
2000-11-05 09:30:11 +00:00
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
/* This is a heuristic dissector, which means we get all the UDP
|
|
|
|
* traffic not sent to a known dissector and not claimed by
|
|
|
|
* a heuristic dissector called before us!
|
|
|
|
*/
|
2004-08-16 05:54:01 +00:00
|
|
|
|
|
|
|
if (!global_rtcp_heur)
|
|
|
|
{
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Was it sent between 2 odd-numbered ports? */
|
|
|
|
if (!(pinfo->srcport % 2) || !(pinfo->destport % 2))
|
|
|
|
{
|
|
|
|
return FALSE;
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
2000-04-21 01:45:58 +00:00
|
|
|
|
2004-08-16 05:54:01 +00:00
|
|
|
/* Look at first byte */
|
|
|
|
first_byte = tvb_get_guint8(tvb, offset);
|
2000-10-19 06:45:11 +00:00
|
|
|
|
2004-08-16 05:54:01 +00:00
|
|
|
/* Are version bits set to 2? */
|
|
|
|
if (((first_byte & 0xC0) >> 6) != 2)
|
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
return FALSE;
|
2004-08-16 05:54:01 +00:00
|
|
|
}
|
2000-10-19 06:45:11 +00:00
|
|
|
|
2004-08-16 05:54:01 +00:00
|
|
|
/* Look at packet type */
|
|
|
|
packet_type = tvb_get_guint8(tvb, offset + 1);
|
|
|
|
|
|
|
|
/* First packet within compound packet is supposed to be a sender
|
2006-04-13 22:30:20 +00:00
|
|
|
or receiver report.
|
|
|
|
- allow BYE because this happens anyway
|
|
|
|
- allow APP because TBCP ("PoC1") packets aren't compound... */
|
2004-09-15 20:08:30 +00:00
|
|
|
if (!((packet_type == RTCP_SR) || (packet_type == RTCP_RR) ||
|
2006-04-19 19:45:56 +00:00
|
|
|
(packet_type == RTCP_BYE) || (packet_type == RTCP_APP)))
|
2004-08-16 05:54:01 +00:00
|
|
|
{
|
|
|
|
return FALSE;
|
|
|
|
}
|
2000-10-19 06:45:11 +00:00
|
|
|
|
2004-08-16 05:54:01 +00:00
|
|
|
/* Overall length must be a multiple of 4 bytes */
|
|
|
|
if (tvb_length(tvb) % 4)
|
|
|
|
{
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* OK, dissect as RTCP */
|
|
|
|
dissect_rtcp(tvb, pinfo, tree);
|
2000-10-19 06:45:11 +00:00
|
|
|
return TRUE;
|
2000-04-21 01:45:58 +00:00
|
|
|
}
|
|
|
|
|
2007-03-06 13:37:39 +00:00
|
|
|
/* Dissect the length field. Append to this field text indicating the number of
|
|
|
|
actual bytes this translates to (i.e. (raw value + 1) * 4) */
|
|
|
|
int dissect_rtcp_length_field( proto_tree *tree, tvbuff_t *tvb, int offset)
|
|
|
|
{
|
|
|
|
proto_item *ti;
|
|
|
|
unsigned short raw_length = tvb_get_ntohs( tvb, offset );
|
|
|
|
ti = proto_tree_add_item( tree, hf_rtcp_length, tvb, offset, 2, FALSE);
|
|
|
|
proto_item_append_text(ti, " (%u bytes)", (raw_length+1)*4);
|
|
|
|
offset += 2;
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2000-04-21 01:45:58 +00:00
|
|
|
|
|
|
|
static int
|
2002-04-09 09:04:33 +00:00
|
|
|
dissect_rtcp_nack( tvbuff_t *tvb, int offset, proto_tree *tree )
|
2000-04-21 01:45:58 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
/* Packet type = FIR (H261) */
|
2003-11-09 22:55:35 +00:00
|
|
|
proto_tree_add_uint( tree, hf_rtcp_rc, tvb, offset, 1, tvb_get_guint8( tvb, offset ) );
|
2000-10-19 06:45:11 +00:00
|
|
|
offset++;
|
|
|
|
/* Packet type, 8 bits = APP */
|
|
|
|
proto_tree_add_item( tree, hf_rtcp_pt, tvb, offset, 1, FALSE );
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
/* Packet length in 32 bit words minus one */
|
2007-03-06 13:37:39 +00:00
|
|
|
offset = dissect_rtcp_length_field(tree, tvb, offset);
|
2000-10-19 06:45:11 +00:00
|
|
|
|
|
|
|
/* SSRC */
|
|
|
|
proto_tree_add_uint( tree, hf_rtcp_ssrc_source, tvb, offset, 4, tvb_get_ntohl( tvb, offset ) );
|
2000-04-21 01:45:58 +00:00
|
|
|
offset += 4;
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
/* FSN, 16 bits */
|
|
|
|
proto_tree_add_uint( tree, hf_rtcp_fsn, tvb, offset, 2, tvb_get_ntohs( tvb, offset ) );
|
|
|
|
offset += 2;
|
2000-04-21 01:45:58 +00:00
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
/* BLP, 16 bits */
|
|
|
|
proto_tree_add_uint( tree, hf_rtcp_blp, tvb, offset, 2, tvb_get_ntohs( tvb, offset ) );
|
|
|
|
offset += 2;
|
2000-04-21 01:45:58 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
2002-04-09 09:04:33 +00:00
|
|
|
dissect_rtcp_fir( tvbuff_t *tvb, int offset, proto_tree *tree )
|
2000-04-21 01:45:58 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
/* Packet type = FIR (H261) */
|
2003-11-09 22:55:35 +00:00
|
|
|
proto_tree_add_uint( tree, hf_rtcp_rc, tvb, offset, 1, tvb_get_guint8( tvb, offset ) );
|
2000-10-19 06:45:11 +00:00
|
|
|
offset++;
|
|
|
|
/* Packet type, 8 bits = APP */
|
|
|
|
proto_tree_add_item( tree, hf_rtcp_pt, tvb, offset, 1, FALSE );
|
|
|
|
offset++;
|
2000-04-21 01:45:58 +00:00
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
/* Packet length in 32 bit words minus one */
|
2007-03-06 13:37:39 +00:00
|
|
|
offset = dissect_rtcp_length_field(tree, tvb, offset);
|
2000-10-19 06:45:11 +00:00
|
|
|
|
|
|
|
/* SSRC */
|
|
|
|
proto_tree_add_uint( tree, hf_rtcp_ssrc_source, tvb, offset, 4, tvb_get_ntohl( tvb, offset ) );
|
2000-04-21 01:45:58 +00:00
|
|
|
offset += 4;
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
2004-05-31 19:35:53 +00:00
|
|
|
dissect_rtcp_app( tvbuff_t *tvb,packet_info *pinfo, int offset, proto_tree *tree,
|
2005-11-09 21:50:39 +00:00
|
|
|
unsigned int padding, unsigned int packet_len, guint rtcp_subtype, guint32 app_length )
|
2000-10-19 06:45:11 +00:00
|
|
|
{
|
|
|
|
unsigned int counter = 0;
|
|
|
|
char ascii_name[5];
|
2004-05-31 19:35:53 +00:00
|
|
|
guint sdes_type = 0;
|
|
|
|
guint item_len = 0;
|
|
|
|
guint items_start_offset;
|
|
|
|
proto_tree *PoC1_tree;
|
|
|
|
proto_item *PoC1_item;
|
|
|
|
|
2004-06-15 18:26:08 +00:00
|
|
|
/* XXX If more application types are to be dissected it may be useful to use a table like in packet-sip.c */
|
2006-08-02 16:00:07 +00:00
|
|
|
static const char poc1_app_name_str[] = "PoC1";
|
2004-05-31 19:35:53 +00:00
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
|
|
|
|
/* SSRC / CSRC */
|
|
|
|
proto_tree_add_uint( tree, hf_rtcp_ssrc_source, tvb, offset, 4, tvb_get_ntohl( tvb, offset ) );
|
2000-04-21 01:45:58 +00:00
|
|
|
offset += 4;
|
2000-10-19 06:45:11 +00:00
|
|
|
packet_len -= 4;
|
|
|
|
|
2006-08-02 16:00:07 +00:00
|
|
|
/* Application Name (ASCII) */
|
2000-10-19 06:45:11 +00:00
|
|
|
for( counter = 0; counter < 4; counter++ )
|
|
|
|
ascii_name[ counter ] = tvb_get_guint8( tvb, offset + counter );
|
|
|
|
/* strncpy( ascii_name, pd + offset, 4 ); */
|
|
|
|
ascii_name[4] = '\0';
|
|
|
|
proto_tree_add_string( tree, hf_rtcp_name_ascii, tvb, offset, 4,
|
2006-08-02 16:00:07 +00:00
|
|
|
ascii_name );
|
2004-05-31 19:35:53 +00:00
|
|
|
|
2006-08-02 16:00:07 +00:00
|
|
|
/* See if we can handle this application type */
|
|
|
|
if ( strncasecmp(ascii_name, poc1_app_name_str,4 ) == 0 )
|
|
|
|
{
|
|
|
|
/* PoC1 Application */
|
2006-01-30 05:35:39 +00:00
|
|
|
guint8 t2timer_code, participants_code;
|
2004-05-31 19:35:53 +00:00
|
|
|
proto_item *item;
|
2004-06-15 18:26:08 +00:00
|
|
|
item = proto_tree_add_uint( tree, hf_rtcp_app_poc1_subtype, tvb, offset - 8, 1, rtcp_subtype );
|
2004-05-31 19:35:53 +00:00
|
|
|
PROTO_ITEM_SET_GENERATED(item);
|
|
|
|
if (check_col(pinfo->cinfo, COL_INFO))
|
2006-08-02 16:00:07 +00:00
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO,"(%s) %s",ascii_name,
|
|
|
|
val_to_str(rtcp_subtype,rtcp_app_poc1_floor_cnt_type_vals,"unknown (%u)") );
|
2004-05-31 19:35:53 +00:00
|
|
|
offset += 4;
|
|
|
|
packet_len -= 4;
|
2005-11-09 21:50:39 +00:00
|
|
|
app_length = app_length -8;
|
|
|
|
if ( packet_len == 0 )
|
|
|
|
return offset; /* No more data */
|
2004-05-31 19:35:53 +00:00
|
|
|
/* Applications specific data */
|
|
|
|
if ( padding ) {
|
|
|
|
/* If there's padding present, we have to remove that from the data part
|
|
|
|
* The last octet of the packet contains the length of the padding
|
|
|
|
*/
|
|
|
|
packet_len -= tvb_get_guint8( tvb, offset + packet_len - 1 );
|
|
|
|
}
|
|
|
|
/* Create a subtree for the PoC1 Application items; we don't yet know
|
|
|
|
the length */
|
|
|
|
items_start_offset = offset;
|
2000-10-19 06:45:11 +00:00
|
|
|
|
2006-08-02 16:00:07 +00:00
|
|
|
/* Top-level poc tree */
|
|
|
|
PoC1_item = proto_tree_add_item(tree, hf_rtcp_app_poc1, tvb, offset, packet_len, FALSE);
|
2004-05-31 19:35:53 +00:00
|
|
|
PoC1_tree = proto_item_add_subtree( PoC1_item, ett_PoC1 );
|
2000-04-21 01:45:58 +00:00
|
|
|
|
2006-08-02 16:00:07 +00:00
|
|
|
/* Dissect it according to its subtype */
|
2004-05-31 19:35:53 +00:00
|
|
|
switch ( rtcp_subtype ) {
|
2006-08-02 16:00:07 +00:00
|
|
|
|
|
|
|
case TBCP_BURST_REQUEST:
|
|
|
|
{
|
|
|
|
guint8 code;
|
|
|
|
guint16 priority;
|
|
|
|
|
2006-08-09 17:23:10 +00:00
|
|
|
/* Both items here are optional */
|
|
|
|
if (tvb_reported_length_remaining( tvb, offset) == 0)
|
|
|
|
{
|
|
|
|
return offset;
|
|
|
|
}
|
2006-12-21 17:05:42 +00:00
|
|
|
|
2006-08-02 16:00:07 +00:00
|
|
|
/* Look for a code in the first byte */
|
|
|
|
code = tvb_get_guint8(tvb, offset);
|
|
|
|
offset += 1;
|
|
|
|
packet_len -=1;
|
|
|
|
|
|
|
|
/* Priority (optional) */
|
|
|
|
if (code == 102)
|
|
|
|
{
|
|
|
|
item_len = tvb_get_guint8(tvb, offset);
|
|
|
|
offset += 1;
|
|
|
|
packet_len -= 1;
|
|
|
|
if (item_len != 2) /* SHALL be 2 */
|
|
|
|
return offset;
|
|
|
|
|
|
|
|
priority = tvb_get_ntohs(tvb, offset);
|
|
|
|
proto_tree_add_item(PoC1_tree, hf_rtcp_app_poc1_priority, tvb, offset, 2, FALSE );
|
|
|
|
offset += 2;
|
|
|
|
packet_len -= 2;
|
|
|
|
|
|
|
|
if (check_col(pinfo->cinfo, COL_INFO))
|
|
|
|
{
|
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO,
|
|
|
|
" \"%s\"",
|
|
|
|
val_to_str(priority,
|
|
|
|
rtcp_app_poc1_qsresp_priority_vals,
|
|
|
|
"Unknown"));
|
|
|
|
}
|
2006-08-09 17:23:10 +00:00
|
|
|
|
|
|
|
/* Look for (optional) next code */
|
|
|
|
if (tvb_reported_length_remaining( tvb, offset) == 0)
|
|
|
|
{
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
code = tvb_get_guint8(tvb, offset);
|
|
|
|
offset += 1;
|
|
|
|
packet_len -=1;
|
|
|
|
|
2006-08-02 16:00:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Request timestamp (optional) */
|
|
|
|
if (code == 103)
|
|
|
|
{
|
|
|
|
gchar *buff;
|
|
|
|
item_len = tvb_get_guint8(tvb, offset);
|
|
|
|
offset += 1;
|
|
|
|
packet_len -= 1;
|
|
|
|
if (item_len != 8) /* SHALL be 8 */
|
|
|
|
return offset;
|
|
|
|
|
|
|
|
buff = ntp_fmt_ts(tvb_get_ptr(tvb, offset, 8));
|
|
|
|
proto_tree_add_string_format(PoC1_tree, hf_rtcp_app_poc1_request_ts,
|
2006-08-09 17:23:10 +00:00
|
|
|
tvb, offset, 8, ( const char* ) buff,
|
|
|
|
"Request timestamp: %s", buff );
|
2006-08-02 16:00:07 +00:00
|
|
|
offset += 8;
|
|
|
|
packet_len -=8;
|
|
|
|
|
|
|
|
if (check_col(pinfo->cinfo, COL_INFO))
|
|
|
|
{
|
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, " ts=\"%s\"", buff);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case TBCP_BURST_GRANTED:
|
|
|
|
{
|
|
|
|
proto_item *ti;
|
|
|
|
guint16 stop_talking_time;
|
|
|
|
guint16 participants;
|
|
|
|
|
|
|
|
/* Stop talking timer (now mandatory) */
|
2006-01-30 05:35:39 +00:00
|
|
|
t2timer_code = tvb_get_guint8(tvb, offset);
|
|
|
|
offset += 1;
|
|
|
|
packet_len -=1;
|
|
|
|
if (t2timer_code != 101) /* SHALL be 101 */
|
|
|
|
return offset;
|
2006-08-02 16:00:07 +00:00
|
|
|
|
2006-01-30 05:35:39 +00:00
|
|
|
item_len = tvb_get_guint8(tvb, offset);
|
|
|
|
offset += 1;
|
|
|
|
packet_len -= 1;
|
|
|
|
if (item_len != 2) /* SHALL be 2 */
|
|
|
|
return offset;
|
2006-08-02 16:00:07 +00:00
|
|
|
|
|
|
|
stop_talking_time = tvb_get_ntohs(tvb, offset);
|
|
|
|
ti = proto_tree_add_item(PoC1_tree, hf_rtcp_app_poc1_stt, tvb, offset, 2, FALSE );
|
|
|
|
|
|
|
|
/* Append text with meanings of value */
|
|
|
|
switch (stop_talking_time)
|
|
|
|
{
|
|
|
|
case 0:
|
|
|
|
proto_item_append_text(ti, " unknown");
|
|
|
|
break;
|
|
|
|
case 65535:
|
|
|
|
proto_item_append_text(ti, " infinity");
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
proto_item_append_text(ti, " seconds");
|
|
|
|
break;
|
|
|
|
}
|
2006-01-30 05:35:39 +00:00
|
|
|
offset += item_len;
|
|
|
|
packet_len -= item_len;
|
|
|
|
|
2006-08-02 16:00:07 +00:00
|
|
|
if (check_col(pinfo->cinfo, COL_INFO))
|
|
|
|
{
|
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, " stop-talking-time=%u",
|
|
|
|
stop_talking_time);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Participants (optional) */
|
2006-08-09 17:23:10 +00:00
|
|
|
if (tvb_reported_length_remaining( tvb, offset) == 0)
|
|
|
|
{
|
|
|
|
return offset;
|
|
|
|
}
|
2006-01-30 05:35:39 +00:00
|
|
|
participants_code = tvb_get_guint8(tvb, offset);
|
|
|
|
offset += 1;
|
|
|
|
packet_len -=1;
|
|
|
|
if (participants_code != 100) /* SHALL be 100 */
|
|
|
|
return offset;
|
2006-08-02 16:00:07 +00:00
|
|
|
|
2006-01-30 05:35:39 +00:00
|
|
|
item_len = tvb_get_guint8(tvb, offset);
|
|
|
|
offset += 1;
|
|
|
|
packet_len -= 1;
|
|
|
|
if (item_len != 2) /* SHALL be 2 */
|
2005-11-09 21:50:39 +00:00
|
|
|
return offset;
|
2006-08-02 16:00:07 +00:00
|
|
|
|
|
|
|
participants = tvb_get_ntohs(tvb, offset);
|
|
|
|
ti = proto_tree_add_item(PoC1_tree, hf_rtcp_app_poc1_partic, tvb, offset, 2, FALSE );
|
|
|
|
|
|
|
|
/* Append text with meanings of extreme values */
|
|
|
|
switch (participants)
|
|
|
|
{
|
|
|
|
case 0:
|
|
|
|
proto_item_append_text(ti, " (not known)");
|
|
|
|
break;
|
|
|
|
case 65535:
|
|
|
|
proto_item_append_text(ti, " (or more)");
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
2006-01-30 05:35:39 +00:00
|
|
|
offset += item_len;
|
|
|
|
packet_len -= item_len;
|
2006-08-02 16:00:07 +00:00
|
|
|
|
|
|
|
if (check_col(pinfo->cinfo, COL_INFO))
|
|
|
|
{
|
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, " participants=%u",
|
|
|
|
participants);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2005-11-09 21:50:39 +00:00
|
|
|
break;
|
2006-08-02 16:00:07 +00:00
|
|
|
|
|
|
|
case TBCP_BURST_TAKEN_EXPECT_NO_REPLY:
|
|
|
|
case TBCP_BURST_TAKEN_EXPECT_REPLY:
|
|
|
|
{
|
|
|
|
guint16 participants;
|
|
|
|
proto_item *ti;
|
|
|
|
|
|
|
|
/* SSRC of PoC client */
|
2005-11-09 21:50:39 +00:00
|
|
|
proto_tree_add_item(PoC1_tree, hf_rtcp_app_poc1_ssrc_granted, tvb, offset, 4, FALSE );
|
|
|
|
offset += 4;
|
|
|
|
packet_len -= 4;
|
2006-08-02 16:00:07 +00:00
|
|
|
|
|
|
|
/* SDES type (must be CNAME) */
|
2004-05-31 19:35:53 +00:00
|
|
|
sdes_type = tvb_get_guint8( tvb, offset );
|
2005-11-09 21:50:39 +00:00
|
|
|
proto_tree_add_item( PoC1_tree, hf_rtcp_sdes_type, tvb, offset, 1, FALSE );
|
2004-05-31 19:35:53 +00:00
|
|
|
offset++;
|
|
|
|
packet_len--;
|
2006-08-02 16:00:07 +00:00
|
|
|
if (sdes_type != RTCP_SDES_CNAME)
|
|
|
|
{
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* SIP URI */
|
2006-12-21 17:05:42 +00:00
|
|
|
item_len = tvb_get_guint8( tvb, offset );
|
|
|
|
proto_tree_add_item( PoC1_tree, hf_rtcp_app_poc1_sip_uri, tvb, offset, 1, FALSE );
|
2006-08-02 16:00:07 +00:00
|
|
|
|
|
|
|
if (check_col(pinfo->cinfo, COL_INFO))
|
|
|
|
{
|
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, " CNAME=\"%s\"",
|
|
|
|
tvb_get_ephemeral_string(tvb, offset, item_len));
|
|
|
|
}
|
|
|
|
|
2006-12-21 17:05:42 +00:00
|
|
|
offset = offset + item_len + 1;
|
|
|
|
packet_len = packet_len - item_len - 1;
|
2005-11-09 21:50:39 +00:00
|
|
|
|
|
|
|
/* In the application dependent data, the TBCP Talk Burst Taken message SHALL carry
|
|
|
|
* a SSRC field and SDES items, CNAME and MAY carry SDES item NAME to identify the
|
2006-08-02 16:00:07 +00:00
|
|
|
* PoC Client that has been granted permission to send a Talk Burst.
|
|
|
|
*
|
2005-11-09 21:50:39 +00:00
|
|
|
* The SDES item NAME SHALL be included if it is known by the PoC Server.
|
2006-04-19 19:45:56 +00:00
|
|
|
* Therefore the length of the packet will vary depending on number of SDES items
|
2005-11-09 21:50:39 +00:00
|
|
|
* and the size of the SDES items.
|
|
|
|
*/
|
|
|
|
if ( packet_len == 0 )
|
|
|
|
return offset;
|
2006-08-02 16:00:07 +00:00
|
|
|
|
|
|
|
/* SDES type (must be NAME if present) */
|
2004-05-31 19:35:53 +00:00
|
|
|
sdes_type = tvb_get_guint8( tvb, offset );
|
2006-08-02 16:00:07 +00:00
|
|
|
if (sdes_type == RTCP_SDES_NAME)
|
|
|
|
{
|
|
|
|
proto_tree_add_item( PoC1_tree, hf_rtcp_sdes_type, tvb, offset, 1, FALSE );
|
|
|
|
offset++;
|
|
|
|
packet_len--;
|
2006-12-21 17:05:42 +00:00
|
|
|
|
2006-08-02 16:00:07 +00:00
|
|
|
/* Display name */
|
2006-12-21 17:05:42 +00:00
|
|
|
item_len = tvb_get_guint8( tvb, offset );
|
|
|
|
if (item_len != 0)
|
|
|
|
{
|
|
|
|
proto_tree_add_item( PoC1_tree, hf_rtcp_app_poc1_disp_name, tvb, offset, 1, FALSE );
|
|
|
|
}
|
|
|
|
offset = offset + item_len + 1;
|
|
|
|
packet_len = packet_len - item_len - 1;
|
2006-08-02 16:00:07 +00:00
|
|
|
|
|
|
|
if (packet_len == 0)
|
2006-12-21 17:05:42 +00:00
|
|
|
{
|
2006-08-02 16:00:07 +00:00
|
|
|
return offset;
|
2006-12-21 17:05:42 +00:00
|
|
|
}
|
2006-08-02 16:00:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Participants (optional) */
|
2006-08-09 17:23:10 +00:00
|
|
|
if (tvb_reported_length_remaining( tvb, offset) == 0)
|
|
|
|
{
|
|
|
|
return offset;
|
|
|
|
}
|
2006-01-30 05:35:39 +00:00
|
|
|
participants_code = tvb_get_guint8(tvb, offset);
|
|
|
|
offset += 1;
|
|
|
|
packet_len -=1;
|
|
|
|
if (participants_code != 100) /* SHALL be 100 */
|
|
|
|
return offset;
|
|
|
|
item_len = tvb_get_guint8(tvb, offset);
|
|
|
|
offset += 1;
|
|
|
|
packet_len -= 1;
|
|
|
|
if (item_len != 2) /* SHALL be 2 */
|
|
|
|
return offset;
|
2006-08-02 16:00:07 +00:00
|
|
|
|
|
|
|
participants = tvb_get_ntohs(tvb, offset);
|
|
|
|
ti = proto_tree_add_item(PoC1_tree, hf_rtcp_app_poc1_partic, tvb, offset, 2, FALSE );
|
|
|
|
|
|
|
|
/* Append text with meanings of extreme values */
|
|
|
|
switch (participants)
|
|
|
|
{
|
|
|
|
case 0:
|
|
|
|
proto_item_append_text(ti, " (not known)");
|
|
|
|
break;
|
|
|
|
case 65535:
|
|
|
|
proto_item_append_text(ti, " (or more)");
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2006-01-30 05:35:39 +00:00
|
|
|
offset += item_len;
|
|
|
|
packet_len -= item_len;
|
2006-08-02 16:00:07 +00:00
|
|
|
}
|
2004-05-31 19:35:53 +00:00
|
|
|
break;
|
2006-08-02 16:00:07 +00:00
|
|
|
|
|
|
|
case TBCP_BURST_DENY:
|
|
|
|
{
|
|
|
|
guint8 reason_code;
|
|
|
|
|
|
|
|
/* Reason code */
|
|
|
|
reason_code = tvb_get_guint8(tvb, offset);
|
2004-05-31 19:35:53 +00:00
|
|
|
proto_tree_add_item( PoC1_tree, hf_rtcp_app_poc1_reason_code1, tvb, offset, 1, FALSE );
|
|
|
|
offset++;
|
|
|
|
packet_len--;
|
2006-08-02 16:00:07 +00:00
|
|
|
|
|
|
|
if (check_col(pinfo->cinfo, COL_INFO))
|
|
|
|
{
|
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, " reason-code=\"%s\"",
|
|
|
|
val_to_str(reason_code,
|
|
|
|
rtcp_app_poc1_reason_code1_vals,
|
|
|
|
"Unknown"));
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Reason phrase */
|
2006-08-21 11:41:32 +00:00
|
|
|
item_len = tvb_get_guint8( tvb, offset );
|
2004-05-31 19:35:53 +00:00
|
|
|
if ( item_len != 0 )
|
2006-08-21 11:41:32 +00:00
|
|
|
proto_tree_add_item( PoC1_tree, hf_rtcp_app_poc1_reason1_phrase, tvb, offset, 1, FALSE );
|
|
|
|
|
|
|
|
offset += (item_len+1);
|
|
|
|
packet_len -= (item_len+1);
|
2006-08-02 16:00:07 +00:00
|
|
|
}
|
2004-05-31 19:35:53 +00:00
|
|
|
break;
|
2006-08-02 16:00:07 +00:00
|
|
|
|
|
|
|
case TBCP_BURST_RELEASE:
|
|
|
|
{
|
|
|
|
guint16 last_seq_no;
|
2006-12-21 17:05:42 +00:00
|
|
|
guint16 ignore_last_seq_no;
|
2006-08-02 16:00:07 +00:00
|
|
|
|
|
|
|
/* Sequence number of last RTP packet in burst */
|
2004-05-31 19:35:53 +00:00
|
|
|
proto_tree_add_item( PoC1_tree, hf_rtcp_app_poc1_last_pkt_seq_no, tvb, offset, 2, FALSE );
|
2006-08-02 16:00:07 +00:00
|
|
|
last_seq_no = tvb_get_ntohs(tvb, offset);
|
|
|
|
|
|
|
|
/* Bit 16 is ignore flag */
|
|
|
|
offset += 2;
|
|
|
|
proto_tree_add_item(PoC1_tree, hf_rtcp_app_poc1_ignore_seq_no, tvb, offset, 2, FALSE );
|
|
|
|
ignore_last_seq_no = (tvb_get_ntohs(tvb, offset) & 0x8000);
|
|
|
|
|
2006-08-09 17:23:10 +00:00
|
|
|
if (!ignore_last_seq_no && check_col(pinfo->cinfo, COL_INFO))
|
2006-08-02 16:00:07 +00:00
|
|
|
{
|
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, " last_rtp_seq_no=%u",
|
|
|
|
last_seq_no);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 15 bits of padding follows */
|
|
|
|
|
|
|
|
offset += 2;
|
2004-05-31 19:35:53 +00:00
|
|
|
packet_len-=4;
|
2006-08-02 16:00:07 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case TBCP_BURST_IDLE:
|
2004-05-31 19:35:53 +00:00
|
|
|
break;
|
2006-08-02 16:00:07 +00:00
|
|
|
|
|
|
|
case TBCP_BURST_REVOKE:
|
|
|
|
{
|
|
|
|
/* Reason code */
|
|
|
|
guint16 reason_code = tvb_get_ntohs(tvb, offset);
|
|
|
|
proto_tree_add_item( PoC1_tree, hf_rtcp_app_poc1_reason_code2, tvb, offset, 2, FALSE );
|
|
|
|
|
|
|
|
/* The meaning of this field depends upon the reason code... */
|
|
|
|
switch (reason_code)
|
|
|
|
{
|
|
|
|
case 1: /* Only one user */
|
|
|
|
/* No additional info */
|
|
|
|
break;
|
|
|
|
case 2: /* Talk burst too long */
|
|
|
|
/* Additional info is 16 bits with time (in seconds) client can request */
|
|
|
|
proto_tree_add_item( PoC1_tree, hf_rtcp_app_poc1_new_time_request, tvb, offset + 2, 2, FALSE );
|
|
|
|
break;
|
|
|
|
case 3: /* No permission */
|
|
|
|
/* No additional info */
|
|
|
|
break;
|
|
|
|
case 4: /* Pre-empted */
|
|
|
|
/* No additional info */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (check_col(pinfo->cinfo, COL_INFO))
|
|
|
|
{
|
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, " reason-code=\"%s\"",
|
|
|
|
val_to_str(reason_code,
|
|
|
|
rtcp_app_poc1_reason_code2_vals,
|
|
|
|
"Unknown"));
|
|
|
|
}
|
|
|
|
offset += 4;
|
|
|
|
packet_len-=4;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case TBCP_BURST_ACKNOWLEDGMENT:
|
|
|
|
{
|
|
|
|
guint8 subtype;
|
|
|
|
|
|
|
|
/* Code of message being acknowledged */
|
|
|
|
subtype = (tvb_get_guint8(tvb, offset) & 0xf8) >> 3;
|
|
|
|
proto_tree_add_item( PoC1_tree, hf_rtcp_app_poc1_ack_subtype, tvb, offset, 1, FALSE );
|
|
|
|
|
|
|
|
if (check_col(pinfo->cinfo, COL_INFO))
|
|
|
|
{
|
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, " (for %s)",
|
|
|
|
val_to_str(subtype,
|
|
|
|
rtcp_app_poc1_floor_cnt_type_vals,
|
|
|
|
"Unknown"));
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Reason code only seen if subtype was Connect */
|
|
|
|
if (subtype == TBCP_CONNECT)
|
|
|
|
{
|
|
|
|
proto_tree_add_item( PoC1_tree, hf_rtcp_app_poc1_ack_reason_code, tvb, offset, 2, FALSE );
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 16 bits of padding follow */
|
2004-06-01 18:58:04 +00:00
|
|
|
offset += 4;
|
2006-08-02 16:00:07 +00:00
|
|
|
packet_len -= 4;
|
|
|
|
}
|
2004-05-31 19:35:53 +00:00
|
|
|
break;
|
2005-08-22 16:26:29 +00:00
|
|
|
|
2006-08-02 16:00:07 +00:00
|
|
|
case TBCP_QUEUE_STATUS_REQUEST:
|
|
|
|
break;
|
|
|
|
|
|
|
|
case TBCP_QUEUE_STATUS_RESPONSE:
|
|
|
|
{
|
|
|
|
guint16 position;
|
|
|
|
proto_item *ti;
|
|
|
|
|
|
|
|
/* Priority */
|
|
|
|
proto_tree_add_item( PoC1_tree, hf_rtcp_app_poc1_qsresp_priority, tvb, offset, 1, FALSE );
|
2005-08-22 16:26:29 +00:00
|
|
|
|
2006-08-02 16:00:07 +00:00
|
|
|
/* Queue position. 65535 indicates 'position not available' */
|
|
|
|
position = tvb_get_ntohs(tvb, offset+1);
|
|
|
|
ti = proto_tree_add_item( PoC1_tree, hf_rtcp_app_poc1_qsresp_position, tvb, offset+1, 2, FALSE );
|
2006-08-09 17:23:10 +00:00
|
|
|
if (position == 0)
|
|
|
|
{
|
|
|
|
proto_item_append_text(ti, " (client is un-queued)");
|
|
|
|
}
|
2006-08-02 16:00:07 +00:00
|
|
|
if (position == 65535)
|
|
|
|
{
|
|
|
|
proto_item_append_text(ti, " (position not available)");
|
|
|
|
}
|
|
|
|
|
|
|
|
if (check_col(pinfo->cinfo, COL_INFO))
|
|
|
|
{
|
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, " position=%u", position);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 1 bytes of padding follows */
|
2005-11-09 21:50:39 +00:00
|
|
|
|
2006-08-02 16:00:07 +00:00
|
|
|
offset += 4;
|
|
|
|
packet_len -= 4;
|
|
|
|
}
|
2005-08-22 16:26:29 +00:00
|
|
|
break;
|
|
|
|
|
2006-08-02 16:00:07 +00:00
|
|
|
case TBCP_DISCONNECT:
|
|
|
|
break;
|
|
|
|
|
|
|
|
case TBCP_CONNECT:
|
2005-11-09 21:50:39 +00:00
|
|
|
{
|
2006-08-02 16:00:07 +00:00
|
|
|
proto_item *content = proto_tree_add_text(PoC1_tree, tvb, offset, 2, "SDES item content");
|
|
|
|
gboolean contents[5];
|
|
|
|
unsigned int i;
|
|
|
|
guint8 items_set = 0;
|
|
|
|
|
|
|
|
proto_tree *content_tree = proto_item_add_subtree(content, ett_poc1_conn_contents);
|
|
|
|
guint16 items_field = tvb_get_ntohs(tvb, offset );
|
|
|
|
|
|
|
|
/* Dissect each defined bit flag in the SDES item content */
|
|
|
|
for ( i = 0;
|
|
|
|
i < sizeof(contents) / sizeof(contents[0]) &&
|
|
|
|
i < sizeof(hf_rtcp_app_poc1_conn_content) /
|
|
|
|
sizeof(hf_rtcp_app_poc1_conn_content[0]);
|
|
|
|
++i )
|
|
|
|
{
|
|
|
|
proto_tree_add_item( content_tree, hf_rtcp_app_poc1_conn_content[i], tvb, offset, 2, FALSE );
|
|
|
|
contents[i] = items_field & (1 << (15-i));
|
|
|
|
if (contents[i]) ++items_set;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Show how many flags were set */
|
|
|
|
proto_item_append_text(content, " (%u items)", items_set);
|
2006-08-21 11:41:32 +00:00
|
|
|
|
2006-08-02 16:00:07 +00:00
|
|
|
/* Session type */
|
|
|
|
proto_tree_add_item( PoC1_tree, hf_rtcp_app_poc1_conn_session_type, tvb, offset + 2, 1, FALSE );
|
|
|
|
|
|
|
|
/* Additional indications */
|
|
|
|
proto_tree_add_item( PoC1_tree, hf_rtcp_app_poc1_conn_add_ind_mao, tvb, offset + 3, 1, FALSE );
|
|
|
|
|
|
|
|
offset += 4;
|
|
|
|
packet_len -= 4;
|
|
|
|
|
|
|
|
/* One SDES item for every set flag in contents array */
|
|
|
|
for ( i = 0;
|
|
|
|
i < sizeof(contents) / sizeof(contents[0]);
|
|
|
|
++i ) {
|
|
|
|
if ( contents[i] ) {
|
|
|
|
guint sdes_type, sdes_len;
|
|
|
|
/* (sdes_type not currently used...). Could complain if type
|
|
|
|
doesn't match expected for item... */
|
|
|
|
sdes_type = tvb_get_guint8( tvb, offset++ );
|
|
|
|
sdes_len = tvb_get_guint8( tvb, offset );
|
|
|
|
|
|
|
|
/* Add SDES field indicated as present */
|
|
|
|
proto_tree_add_item( PoC1_tree, hf_rtcp_app_poc1_conn_sdes_items[i], tvb, offset, 1, FALSE );
|
|
|
|
|
|
|
|
/* Move past field */
|
|
|
|
offset += sdes_len + 1;
|
|
|
|
packet_len -= (sdes_len + 2);
|
|
|
|
}
|
2005-08-22 16:26:29 +00:00
|
|
|
}
|
|
|
|
break;
|
2006-08-02 16:00:07 +00:00
|
|
|
}
|
|
|
|
|
2004-05-31 19:35:53 +00:00
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
offset += packet_len;
|
|
|
|
return offset;
|
|
|
|
}
|
2006-08-02 16:00:07 +00:00
|
|
|
else
|
|
|
|
{
|
|
|
|
/* Unhandled application type, just show app name and raw data */
|
|
|
|
if (check_col(pinfo->cinfo, COL_INFO))
|
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO,"( %s ) subtype=%u",ascii_name, rtcp_subtype);
|
|
|
|
offset += 4;
|
|
|
|
packet_len -= 4;
|
|
|
|
/* Applications specific data */
|
|
|
|
if ( padding ) {
|
|
|
|
/* If there's padding present, we have to remove that from the data part
|
|
|
|
* The last octet of the packet contains the length of the padding
|
|
|
|
*/
|
|
|
|
packet_len -= tvb_get_guint8( tvb, offset + packet_len - 1 );
|
|
|
|
}
|
|
|
|
proto_tree_add_item( tree, hf_rtcp_app_data, tvb, offset, packet_len, FALSE );
|
|
|
|
offset += packet_len;
|
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2000-04-21 01:45:58 +00:00
|
|
|
}
|
|
|
|
|
2004-05-31 19:35:53 +00:00
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
static int
|
2002-04-09 09:04:33 +00:00
|
|
|
dissect_rtcp_bye( tvbuff_t *tvb, int offset, proto_tree *tree,
|
2001-09-03 08:10:46 +00:00
|
|
|
unsigned int count )
|
2000-04-21 01:45:58 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
unsigned int chunk = 1;
|
|
|
|
unsigned int reason_length = 0;
|
|
|
|
char* reason_text = NULL;
|
|
|
|
|
|
|
|
while ( chunk <= count ) {
|
|
|
|
/* source identifier, 32 bits */
|
2002-07-17 10:37:31 +00:00
|
|
|
proto_tree_add_item( tree, hf_rtcp_ssrc_source, tvb, offset, 4, FALSE);
|
2000-10-19 06:45:11 +00:00
|
|
|
offset += 4;
|
2002-07-17 10:37:31 +00:00
|
|
|
chunk++;
|
2000-04-21 01:45:58 +00:00
|
|
|
}
|
2000-10-19 06:45:11 +00:00
|
|
|
|
2002-01-10 22:21:14 +00:00
|
|
|
if ( tvb_reported_length_remaining( tvb, offset ) > 0 ) {
|
|
|
|
/* Bye reason consists of an 8 bit length l and a string with length l */
|
|
|
|
reason_length = tvb_get_guint8( tvb, offset );
|
2005-11-09 21:50:39 +00:00
|
|
|
proto_tree_add_item( tree, hf_rtcp_sdes_length, tvb, offset, 1, FALSE );
|
2002-01-10 22:21:14 +00:00
|
|
|
offset++;
|
|
|
|
|
2006-10-26 16:52:55 +00:00
|
|
|
reason_text = (char*)tvb_get_ephemeral_string(tvb, offset, reason_length);
|
2005-11-09 21:50:39 +00:00
|
|
|
proto_tree_add_string( tree, hf_rtcp_sdes_text, tvb, offset, reason_length, reason_text );
|
2006-08-02 16:00:07 +00:00
|
|
|
/* Allow for terminating null character */
|
|
|
|
offset += (reason_length+1);
|
2002-01-10 22:21:14 +00:00
|
|
|
}
|
2000-10-19 06:45:11 +00:00
|
|
|
|
2006-08-02 16:00:07 +00:00
|
|
|
/* BYE packet padded out if string (including null) didn't fit in previous word */
|
|
|
|
if (offset % 4)
|
|
|
|
{
|
|
|
|
offset += (4 - (offset % 4));
|
|
|
|
}
|
2000-10-19 06:45:11 +00:00
|
|
|
|
2006-08-02 16:00:07 +00:00
|
|
|
return offset;
|
2000-04-21 01:45:58 +00:00
|
|
|
}
|
|
|
|
|
2002-04-15 21:25:05 +00:00
|
|
|
static void
|
2002-04-09 09:04:33 +00:00
|
|
|
dissect_rtcp_sdes( tvbuff_t *tvb, int offset, proto_tree *tree,
|
2001-09-03 08:10:46 +00:00
|
|
|
unsigned int count )
|
2000-04-21 01:45:58 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
unsigned int chunk = 1;
|
|
|
|
proto_item *sdes_item;
|
|
|
|
proto_tree *sdes_tree;
|
|
|
|
proto_tree *sdes_item_tree;
|
|
|
|
proto_item *ti;
|
|
|
|
int start_offset;
|
|
|
|
int items_start_offset;
|
|
|
|
guint32 ssrc;
|
|
|
|
unsigned int item_len = 0;
|
|
|
|
unsigned int sdes_type = 0;
|
|
|
|
unsigned int prefix_len = 0;
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
while ( chunk <= count ) {
|
|
|
|
/* Create a subtree for this chunk; we don't yet know
|
|
|
|
the length. */
|
|
|
|
start_offset = offset;
|
|
|
|
|
|
|
|
ssrc = tvb_get_ntohl( tvb, offset );
|
Allow a length of -1 to be specified when adding FT_NONE and FT_PROTOCOL
items to the protocol tree; it's interpreted as "the rest of the data in
the tvbuff". This can be used if
1) the item covers the entire packet or the remaining payload in
the packet
or
2) the item's length won't be known until it's dissected, and
will be then set with "proto_item_set_len()" - if an
exception is thrown in the dissection, it means the item ran
*past* the end of the tvbuff, so saying it runs to the end of
the tvbuff is reasonable.
Convert a number of "proto_tree_add_XXX()" calls using
"tvb_length_remaining()", values derived from the result of
"tvb_length()", or 0 (in the case of items whose length is unknown) to
use -1 instead (using 0 means that if an exception is thrown, selecting
the item highlights nothing; using -1 means it highlights all the data
for that item that's available).
In some places where "tvb_length()" or "tvb_length_remaining()" was used
to determine how large a packet is, use "tvb_reported_length()" or
"tvb_reported_length_remaining()", instead - the first two calls
indicate how much captured data was in the packet, the latter two calls
indicate how large the packet actually was (and the fact that using the
latter could cause BoundsError exceptions to be thrown is a feature - if
such an exception is thrown, the frame really *was* short, and it should
be tagged as such).
Replace some "proto_tree_add_XXX()" calls with equivalent
"proto_tree_add_item()" calls.
Fix some indentation.
svn path=/trunk/; revision=4578
2002-01-20 22:12:39 +00:00
|
|
|
sdes_item = proto_tree_add_text(tree, tvb, offset, -1,
|
2000-10-19 06:45:11 +00:00
|
|
|
"Chunk %u, SSRC/CSRC %u", chunk, ssrc);
|
|
|
|
sdes_tree = proto_item_add_subtree( sdes_item, ett_sdes );
|
|
|
|
|
|
|
|
/* SSRC_n source identifier, 32 bits */
|
|
|
|
proto_tree_add_uint( sdes_tree, hf_rtcp_ssrc_source, tvb, offset, 4, ssrc );
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Create a subtree for the SDES items; we don't yet know
|
2002-08-28 21:04:11 +00:00
|
|
|
the length */
|
2000-10-19 06:45:11 +00:00
|
|
|
items_start_offset = offset;
|
Allow a length of -1 to be specified when adding FT_NONE and FT_PROTOCOL
items to the protocol tree; it's interpreted as "the rest of the data in
the tvbuff". This can be used if
1) the item covers the entire packet or the remaining payload in
the packet
or
2) the item's length won't be known until it's dissected, and
will be then set with "proto_item_set_len()" - if an
exception is thrown in the dissection, it means the item ran
*past* the end of the tvbuff, so saying it runs to the end of
the tvbuff is reasonable.
Convert a number of "proto_tree_add_XXX()" calls using
"tvb_length_remaining()", values derived from the result of
"tvb_length()", or 0 (in the case of items whose length is unknown) to
use -1 instead (using 0 means that if an exception is thrown, selecting
the item highlights nothing; using -1 means it highlights all the data
for that item that's available).
In some places where "tvb_length()" or "tvb_length_remaining()" was used
to determine how large a packet is, use "tvb_reported_length()" or
"tvb_reported_length_remaining()", instead - the first two calls
indicate how much captured data was in the packet, the latter two calls
indicate how large the packet actually was (and the fact that using the
latter could cause BoundsError exceptions to be thrown is a feature - if
such an exception is thrown, the frame really *was* short, and it should
be tagged as such).
Replace some "proto_tree_add_XXX()" calls with equivalent
"proto_tree_add_item()" calls.
Fix some indentation.
svn path=/trunk/; revision=4578
2002-01-20 22:12:39 +00:00
|
|
|
ti = proto_tree_add_text(sdes_tree, tvb, offset, -1,
|
2000-10-19 06:45:11 +00:00
|
|
|
"SDES items" );
|
|
|
|
sdes_item_tree = proto_item_add_subtree( ti, ett_sdes_item );
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
/*
|
|
|
|
* Not every message is ended with "null" bytes, so check for
|
2005-01-14 19:28:02 +00:00
|
|
|
* end of frame as well.
|
2000-10-19 06:45:11 +00:00
|
|
|
*/
|
2005-01-14 19:28:02 +00:00
|
|
|
while ( tvb_reported_length_remaining( tvb, offset ) > 0 ) {
|
2000-10-19 06:45:11 +00:00
|
|
|
/* ID, 8 bits */
|
|
|
|
sdes_type = tvb_get_guint8( tvb, offset );
|
2005-11-09 21:50:39 +00:00
|
|
|
proto_tree_add_item( sdes_item_tree, hf_rtcp_sdes_type, tvb, offset, 1, FALSE );
|
2000-10-19 06:45:11 +00:00
|
|
|
offset++;
|
2000-04-21 01:45:58 +00:00
|
|
|
|
2005-01-14 19:28:02 +00:00
|
|
|
if ( sdes_type == RTCP_SDES_END ) {
|
|
|
|
/* End of list */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
/* Item length, 8 bits */
|
|
|
|
item_len = tvb_get_guint8( tvb, offset );
|
2005-11-09 21:50:39 +00:00
|
|
|
proto_tree_add_item( sdes_item_tree, hf_rtcp_sdes_length, tvb, offset, 1, FALSE );
|
2000-04-21 01:45:58 +00:00
|
|
|
offset++;
|
2000-10-19 06:45:11 +00:00
|
|
|
|
2005-12-07 03:03:37 +00:00
|
|
|
if ( item_len != 0 ) {
|
|
|
|
if ( sdes_type == RTCP_SDES_PRIV ) {
|
|
|
|
/* PRIV adds two items between the
|
|
|
|
* SDES length and value - an 8 bit
|
|
|
|
* length giving the length of a
|
|
|
|
* "prefix string", and the string.
|
|
|
|
*/
|
|
|
|
prefix_len = tvb_get_guint8( tvb, offset );
|
|
|
|
if ( prefix_len + 1 > item_len ) {
|
|
|
|
proto_tree_add_uint_format( sdes_item_tree,
|
|
|
|
hf_rtcp_sdes_prefix_len, tvb,
|
|
|
|
offset, 1, prefix_len,
|
|
|
|
"Prefix length: %u (bogus, must be <= %u)",
|
|
|
|
prefix_len, item_len - 1);
|
|
|
|
offset += item_len;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
proto_tree_add_item( sdes_item_tree, hf_rtcp_sdes_prefix_len, tvb, offset, 1, FALSE );
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
proto_tree_add_item( sdes_item_tree, hf_rtcp_sdes_prefix_string, tvb, offset, prefix_len, FALSE );
|
|
|
|
offset += prefix_len;
|
|
|
|
item_len -= prefix_len +1;
|
|
|
|
if ( item_len == 0 )
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
proto_tree_add_item( sdes_item_tree, hf_rtcp_sdes_text, tvb, offset, item_len, FALSE );
|
|
|
|
offset += item_len;
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
2000-04-21 01:45:58 +00:00
|
|
|
}
|
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
/* Set the length of the items subtree. */
|
|
|
|
proto_item_set_len(ti, offset - items_start_offset);
|
2000-04-21 01:45:58 +00:00
|
|
|
|
2002-08-28 21:04:11 +00:00
|
|
|
/* 32 bits = 4 bytes, so.....
|
|
|
|
* If offset % 4 != 0, we divide offset by 4, add one and then
|
2000-10-19 06:45:11 +00:00
|
|
|
* multiply by 4 again to reach the boundary
|
|
|
|
*/
|
|
|
|
if ( offset % 4 != 0 )
|
|
|
|
offset = ((offset / 4) + 1 ) * 4;
|
2000-04-21 01:45:58 +00:00
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
/* Set the length of this chunk. */
|
|
|
|
proto_item_set_len(sdes_item, offset - start_offset);
|
2000-04-21 01:45:58 +00:00
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
chunk++;
|
|
|
|
}
|
2000-04-21 01:45:58 +00:00
|
|
|
}
|
|
|
|
|
2005-02-13 03:41:44 +00:00
|
|
|
static void parse_xr_type_specific_field(tvbuff_t *tvb, gint offset, guint block_type, proto_tree *tree)
|
|
|
|
{
|
|
|
|
guint8 flags = tvb_get_guint8(tvb, offset);
|
|
|
|
|
|
|
|
switch (block_type) {
|
|
|
|
case RTCP_XR_LOSS_RLE:
|
|
|
|
case RTCP_XR_DUP_RLE:
|
|
|
|
case RTCP_XR_PKT_RXTIMES:
|
|
|
|
proto_tree_add_uint(tree, hf_rtcp_xr_thinning, tvb, offset, 1, flags);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case RTCP_XR_STATS_SUMRY:
|
|
|
|
proto_tree_add_boolean(tree, hf_rtcp_xr_stats_loss_flag, tvb, offset, 1, flags);
|
|
|
|
proto_tree_add_boolean(tree, hf_rtcp_xr_stats_dup_flag, tvb, offset, 1, flags);
|
|
|
|
proto_tree_add_boolean(tree, hf_rtcp_xr_stats_jitter_flag, tvb, offset, 1, flags);
|
|
|
|
proto_tree_add_uint(tree, hf_rtcp_xr_stats_ttl, tvb, offset, 1, flags);
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
proto_tree_add_uint(tree, hf_rtcp_xr_block_specific, tvb, offset, 1, flags);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static gboolean validate_xr_block_length(tvbuff_t *tvb, int offset, guint block_type, guint block_len, proto_tree *tree)
|
|
|
|
{
|
|
|
|
proto_tree_add_uint(tree, hf_rtcp_xr_block_length, tvb, offset, 2, block_len);
|
|
|
|
switch (block_type) {
|
|
|
|
case RTCP_XR_REF_TIME:
|
|
|
|
if (block_len != 2)
|
|
|
|
proto_tree_add_text(tree, tvb, offset, 2, "Invalid block length, should be 2");
|
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
case RTCP_XR_STATS_SUMRY:
|
|
|
|
if (block_len != 9)
|
|
|
|
proto_tree_add_text(tree, tvb, offset, 2, "Invalid block length, should be 9");
|
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
case RTCP_XR_VOIP_METRCS:
|
|
|
|
if (block_len != 8)
|
|
|
|
proto_tree_add_text(tree, tvb, offset, 2, "Invalid block length, should be 8");
|
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
|
|
|
dissect_rtcp_xr(tvbuff_t *tvb, packet_info *pinfo _U_, int offset, proto_tree *tree, gint packet_len)
|
|
|
|
{
|
|
|
|
guint block_num = 1;
|
|
|
|
|
|
|
|
/* Packet length should at least be 4 */
|
|
|
|
if (packet_len < 4) {
|
|
|
|
proto_tree_add_text(tree, tvb, offset, packet_len, "Missing Sender SSRC");
|
|
|
|
return offset + packet_len;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* SSRC */
|
|
|
|
proto_tree_add_item( tree, hf_rtcp_ssrc_sender, tvb, offset, 4, FALSE );
|
|
|
|
offset += 4;
|
|
|
|
packet_len -= 4;
|
|
|
|
|
|
|
|
for(;packet_len > 0; block_num++) {
|
|
|
|
guint block_type = tvb_get_guint8(tvb, offset), block_length = 0;
|
|
|
|
gint content_length = 0;
|
|
|
|
gboolean valid = TRUE;
|
|
|
|
|
|
|
|
/* Create a subtree for this block, dont know the length yet*/
|
|
|
|
proto_item *block = proto_tree_add_text(tree, tvb, offset, -1, "Block %u", block_num);
|
|
|
|
proto_tree *xr_block_tree = proto_item_add_subtree(block, ett_xr_block);
|
|
|
|
proto_item *contents = NULL;
|
|
|
|
proto_item *content_tree = NULL;
|
|
|
|
|
|
|
|
proto_tree_add_item(xr_block_tree, hf_rtcp_xr_block_type, tvb, offset, 1, FALSE);
|
|
|
|
|
|
|
|
if (packet_len >= 2) {
|
|
|
|
parse_xr_type_specific_field(tvb, offset + 1, block_type, xr_block_tree);
|
|
|
|
if (packet_len >= 4) {
|
|
|
|
block_length = tvb_get_ntohs(tvb, offset + 2);
|
|
|
|
valid = validate_xr_block_length(tvb, offset + 2, block_type, block_length, xr_block_tree);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
proto_tree_add_text(xr_block_tree, tvb, offset + 1, packet_len, "Missing Required Block Headers");
|
|
|
|
return offset + packet_len;
|
|
|
|
}
|
|
|
|
|
|
|
|
content_length = block_length * 4;
|
|
|
|
proto_item_set_len(block, content_length + 4);
|
|
|
|
|
|
|
|
if (content_length > packet_len) {
|
|
|
|
proto_tree_add_text(xr_block_tree, tvb, offset + 2, 2, "Block length is greater than packet length");
|
|
|
|
}
|
|
|
|
|
|
|
|
offset += 4;
|
|
|
|
packet_len -= 4;
|
|
|
|
|
|
|
|
contents = proto_tree_add_text(xr_block_tree, tvb, offset, content_length, "Contents");
|
|
|
|
content_tree = proto_item_add_subtree(contents, ett_xr_block_contents);
|
|
|
|
|
|
|
|
switch (block_type) {
|
|
|
|
case RTCP_XR_VOIP_METRCS: {
|
|
|
|
guint fraction_rate, value;
|
|
|
|
|
|
|
|
/* Identifier */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_ssrc_source, tvb, offset, 4, FALSE);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Loss Rate */
|
|
|
|
fraction_rate = tvb_get_guint8(tvb, offset);
|
|
|
|
proto_tree_add_uint_format(content_tree, hf_rtcp_ssrc_fraction, tvb, offset, 1,
|
|
|
|
fraction_rate, "Fraction lost: %u / 256", fraction_rate);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
/* Discard Rate */
|
|
|
|
fraction_rate = tvb_get_guint8(tvb, offset);
|
|
|
|
proto_tree_add_uint_format(content_tree, hf_rtcp_ssrc_discarded, tvb, offset, 1,
|
|
|
|
fraction_rate, "Fraction Discarded: %u / 256", fraction_rate);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
/* Burst Density */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_voip_metrics_burst_density, tvb, offset, 1, FALSE);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
/* Gap Density */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_voip_metrics_gap_density, tvb, offset, 1, FALSE);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
/* Burst Duration */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_voip_metrics_burst_duration, tvb, offset, 2, FALSE);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Gap Duration */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_voip_metrics_gap_duration, tvb, offset, 2, FALSE);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Round Trip Delay */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_voip_metrics_rtdelay, tvb, offset, 2, FALSE);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* End System Delay */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_voip_metrics_esdelay, tvb, offset, 2, FALSE);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Signal Level */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_voip_metrics_siglevel, tvb, offset, 1, FALSE);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
/* Noise Level */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_voip_metrics_noiselevel, tvb, offset, 1, FALSE);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
/* RERL */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_voip_metrics_rerl, tvb, offset, 1, FALSE);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
/* GMin */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_voip_metrics_gmin, tvb, offset, 1, FALSE);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
/* R factor */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_voip_metrics_rfactor, tvb, offset, 1, FALSE);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
/* external R Factor */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_voip_metrics_extrfactor, tvb, offset, 1, FALSE);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
/* MOS LQ */
|
|
|
|
proto_tree_add_float(content_tree, hf_rtcp_xr_voip_metrics_moslq, tvb, offset, 1,
|
2006-10-26 16:52:55 +00:00
|
|
|
(gfloat)(int)(tvb_get_guint8(tvb, offset) / 10));
|
2005-02-13 03:41:44 +00:00
|
|
|
offset++;
|
|
|
|
|
|
|
|
/* MOS CQ */
|
|
|
|
proto_tree_add_float(content_tree, hf_rtcp_xr_voip_metrics_moscq, tvb, offset, 1,
|
2006-10-26 16:52:55 +00:00
|
|
|
(gfloat)(int)(tvb_get_guint8(tvb, offset) / 10));
|
2005-02-13 03:41:44 +00:00
|
|
|
offset++;
|
|
|
|
|
|
|
|
/* PLC, JB Adaptive, JB Rate */
|
|
|
|
value = tvb_get_guint8(tvb, offset);
|
|
|
|
proto_tree_add_uint(content_tree, hf_rtcp_xr_voip_metrics_plc, tvb, offset, 1, value);
|
|
|
|
proto_tree_add_uint(content_tree, hf_rtcp_xr_voip_metrics_jbadaptive, tvb, offset, 1, value);
|
|
|
|
proto_tree_add_uint(content_tree, hf_rtcp_xr_voip_metrics_jbrate, tvb, offset, 1, value);
|
|
|
|
offset += 2; /* skip over reseved bit */
|
|
|
|
|
|
|
|
/* JB Nominal */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_voip_metrics_jbnominal, tvb, offset, 2, FALSE);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* JB Max */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_voip_metrics_jbmax, tvb, offset, 2, FALSE);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* JB Abs max */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_voip_metrics_jbabsmax, tvb, offset, 2, FALSE);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case RTCP_XR_STATS_SUMRY: {
|
|
|
|
/* Identifier */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_ssrc_source, tvb, offset, 4, FALSE);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Begin Seq */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_beginseq, tvb, offset, 2, FALSE);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* End Seq */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_endseq, tvb, offset, 2, FALSE);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Lost Pkts */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_stats_lost, tvb, offset, 4, FALSE);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Dup Pkts */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_stats_dups, tvb, offset, 4, FALSE);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Min Jitter */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_stats_minjitter, tvb, offset, 4, FALSE);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Max Jitter */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_stats_maxjitter, tvb, offset, 4, FALSE);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Mean Jitter */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_stats_meanjitter, tvb, offset, 4, FALSE);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Dev Jitter */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_stats_devjitter, tvb, offset, 4, FALSE);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Min TTL */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_stats_minttl, tvb, offset, 1, FALSE);
|
|
|
|
offset ++;
|
|
|
|
|
|
|
|
/* Max TTL */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_stats_maxttl, tvb, offset, 1, FALSE);
|
|
|
|
offset ++;
|
|
|
|
|
|
|
|
/* Mean TTL */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_stats_meanttl, tvb, offset, 1, FALSE);
|
|
|
|
offset ++;
|
|
|
|
|
|
|
|
/* Dev TTL */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_stats_devttl, tvb, offset, 1, FALSE);
|
|
|
|
offset ++;
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case RTCP_XR_REF_TIME: {
|
|
|
|
guint32 ts_msw, ts_lsw;
|
|
|
|
|
|
|
|
ts_msw = tvb_get_ntohl(tvb, offset);
|
|
|
|
proto_tree_add_text(content_tree, tvb, offset, 4, "Timestamp, MSW: %u", ts_msw);
|
|
|
|
offset += 4;
|
|
|
|
ts_lsw = tvb_get_ntohl(tvb, offset);
|
|
|
|
proto_tree_add_text(content_tree, tvb, offset, 4, "Timestamp, LSW: %u", ts_lsw);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case RTCP_XR_DLRR: {
|
|
|
|
/* Each report block is 12 bytes */
|
|
|
|
gint sources = content_length / 12;
|
|
|
|
gint counter = 0;
|
|
|
|
for(counter = 0; counter < sources; counter++) {
|
2005-02-24 05:45:15 +00:00
|
|
|
/* Create a new subtree for a length of 12 bytes */
|
|
|
|
proto_tree *ti = proto_tree_add_text(content_tree, tvb, offset, 12, "Source %u", counter + 1);
|
|
|
|
proto_tree *ssrc_tree = proto_item_add_subtree(ti, ett_xr_ssrc);
|
|
|
|
|
|
|
|
/* SSRC_n source identifier, 32 bits */
|
|
|
|
proto_tree_add_item(ssrc_tree, hf_rtcp_ssrc_source, tvb, offset, 4, FALSE);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Last RR timestamp */
|
|
|
|
proto_tree_add_item(ssrc_tree, hf_rtcp_xr_lrr, tvb, offset, 4, FALSE);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Delay since last RR timestamp */
|
|
|
|
proto_tree_add_item(ssrc_tree, hf_rtcp_xr_dlrr, tvb, offset, 4, FALSE);
|
|
|
|
offset += 4;
|
2005-02-13 03:41:44 +00:00
|
|
|
}
|
2005-02-24 05:45:15 +00:00
|
|
|
|
2005-02-13 03:41:44 +00:00
|
|
|
if (content_length % 12 != 0)
|
|
|
|
offset += content_length % 12;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case RTCP_XR_PKT_RXTIMES: {
|
|
|
|
/* 8 bytes of fixed header */
|
|
|
|
gint count = 0, skip = 8;
|
|
|
|
guint16 begin = 0;
|
|
|
|
|
|
|
|
/* Identifier */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_ssrc_source, tvb, offset, 4, FALSE);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Begin Seq */
|
|
|
|
begin = tvb_get_ntohs(tvb, offset);
|
|
|
|
proto_tree_add_uint(content_tree, hf_rtcp_xr_beginseq, tvb, offset, 2, begin);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* End Seq */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_endseq, tvb, offset, 2, FALSE);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
for(count = 0; skip < content_length; skip += 4, count++) {
|
|
|
|
proto_tree_add_text(content_tree, tvb, offset, 4, "Seq: %u, Timestamp: %u",
|
|
|
|
(begin + count) % 65536, FALSE);
|
|
|
|
offset += 4;
|
|
|
|
}
|
|
|
|
break;
|
2005-02-24 05:45:15 +00:00
|
|
|
}
|
2005-02-13 03:41:44 +00:00
|
|
|
|
|
|
|
case RTCP_XR_LOSS_RLE:
|
|
|
|
case RTCP_XR_DUP_RLE: {
|
|
|
|
/* 8 bytes of fixed header */
|
|
|
|
gint count = 0, skip = 8;
|
|
|
|
guint16 begin = 0;
|
2005-02-24 05:45:15 +00:00
|
|
|
proto_item *chunks_item;
|
|
|
|
proto_tree *chunks_tree;
|
|
|
|
|
2005-02-13 03:41:44 +00:00
|
|
|
/* Identifier */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_ssrc_source, tvb, offset, 4, FALSE);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Begin Seq */
|
|
|
|
begin = tvb_get_ntohs(tvb, offset);
|
|
|
|
proto_tree_add_uint(content_tree, hf_rtcp_xr_beginseq, tvb, offset, 2, begin);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* End Seq */
|
|
|
|
proto_tree_add_item(content_tree, hf_rtcp_xr_endseq, tvb, offset, 2, FALSE);
|
|
|
|
offset += 2;
|
|
|
|
|
2005-02-24 05:45:15 +00:00
|
|
|
/* report Chunks */
|
|
|
|
chunks_item = proto_tree_add_text(content_tree, tvb, offset, content_length,"Report Chunks");
|
|
|
|
chunks_tree = proto_item_add_subtree(chunks_item, ett_xr_loss_chunk);
|
|
|
|
|
|
|
|
for(count = 1; skip < content_length; skip += 2, count++) {
|
|
|
|
guint value = tvb_get_ntohs(tvb, offset);
|
|
|
|
|
|
|
|
if (value == 0) {
|
|
|
|
proto_tree_add_text(chunks_tree, tvb, offset, 2,
|
|
|
|
"Chunk: %u -- Null Terminator ",
|
|
|
|
count);
|
2005-12-31 02:19:24 +00:00
|
|
|
} else if ( ! ( value & 0x8000 )) {
|
2005-07-30 01:01:02 +00:00
|
|
|
const gchar* run_type = (value & 0x4000) ? "1s" : "0s";
|
2006-07-28 16:40:46 +00:00
|
|
|
value &= 0x3FFF;
|
2005-02-24 05:45:15 +00:00
|
|
|
proto_tree_add_text(chunks_tree, tvb, offset, 2,
|
|
|
|
"Chunk: %u -- Length Run %s, length: %u",
|
|
|
|
count, run_type, value);
|
|
|
|
} else {
|
|
|
|
char bits[20+1];
|
|
|
|
other_decode_bitfield_value(bits, value, 0x00007FFF, 16);
|
|
|
|
proto_tree_add_text(chunks_tree, tvb, offset, 2,
|
|
|
|
"Chunk: %u -- Bit Vector, bits: %s",
|
|
|
|
count, bits );
|
|
|
|
}
|
2005-02-13 03:41:44 +00:00
|
|
|
offset += 2;
|
|
|
|
}
|
2005-02-24 05:45:15 +00:00
|
|
|
|
2005-02-13 03:41:44 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
default:
|
|
|
|
/* skip over the unknown block */
|
|
|
|
offset += content_length;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
packet_len -= content_length;
|
|
|
|
}
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2000-04-21 01:45:58 +00:00
|
|
|
static int
|
2004-09-15 20:08:30 +00:00
|
|
|
dissect_rtcp_rr( packet_info *pinfo, tvbuff_t *tvb, int offset, proto_tree *tree,
|
2006-05-29 18:16:23 +00:00
|
|
|
unsigned int count, unsigned int packet_length )
|
2000-04-21 01:45:58 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
unsigned int counter = 1;
|
|
|
|
proto_tree *ssrc_tree = (proto_tree*) NULL;
|
|
|
|
proto_tree *ssrc_sub_tree = (proto_tree*) NULL;
|
|
|
|
proto_tree *high_sec_tree = (proto_tree*) NULL;
|
|
|
|
proto_item *ti = (proto_item*) NULL;
|
|
|
|
guint8 rr_flt;
|
|
|
|
unsigned int cum_nr = 0;
|
2006-05-29 18:16:23 +00:00
|
|
|
int rr_offset = offset;
|
2000-10-19 06:45:11 +00:00
|
|
|
|
|
|
|
while ( counter <= count ) {
|
2004-09-15 20:08:30 +00:00
|
|
|
guint32 lsr, dlsr;
|
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
/* Create a new subtree for a length of 24 bytes */
|
|
|
|
ti = proto_tree_add_text(tree, tvb, offset, 24,
|
|
|
|
"Source %u", counter );
|
|
|
|
ssrc_tree = proto_item_add_subtree( ti, ett_ssrc );
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
/* SSRC_n source identifier, 32 bits */
|
2005-02-13 03:41:44 +00:00
|
|
|
proto_tree_add_item( ssrc_tree, hf_rtcp_ssrc_source, tvb, offset, 4, FALSE );
|
2000-10-19 06:45:11 +00:00
|
|
|
offset += 4;
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
ti = proto_tree_add_text(ssrc_tree, tvb, offset, 20, "SSRC contents" );
|
|
|
|
ssrc_sub_tree = proto_item_add_subtree( ti, ett_ssrc_item );
|
|
|
|
|
|
|
|
/* Fraction lost, 8bits */
|
|
|
|
rr_flt = tvb_get_guint8( tvb, offset );
|
|
|
|
proto_tree_add_uint_format( ssrc_sub_tree, hf_rtcp_ssrc_fraction, tvb,
|
|
|
|
offset, 1, rr_flt, "Fraction lost: %u / 256", rr_flt );
|
|
|
|
offset++;
|
2000-04-21 01:45:58 +00:00
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
/* Cumulative number of packets lost, 24 bits */
|
|
|
|
cum_nr = tvb_get_ntohl( tvb, offset ) >> 8;
|
|
|
|
proto_tree_add_uint( ssrc_sub_tree, hf_rtcp_ssrc_cum_nr, tvb,
|
|
|
|
offset, 3, cum_nr );
|
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Extended highest sequence nr received, 32 bits
|
|
|
|
* Just for the sake of it, let's add another subtree
|
|
|
|
* because this might be a little clearer
|
|
|
|
*/
|
|
|
|
ti = proto_tree_add_uint( ssrc_tree, hf_rtcp_ssrc_ext_high_seq,
|
|
|
|
tvb, offset, 4, tvb_get_ntohl( tvb, offset ) );
|
|
|
|
high_sec_tree = proto_item_add_subtree( ti, ett_ssrc_ext_high );
|
|
|
|
/* Sequence number cycles */
|
2005-02-13 03:41:44 +00:00
|
|
|
proto_tree_add_item( high_sec_tree, hf_rtcp_ssrc_high_cycles,
|
|
|
|
tvb, offset, 2, FALSE );
|
2000-10-19 06:45:11 +00:00
|
|
|
offset += 2;
|
|
|
|
/* highest sequence number received */
|
2005-02-13 03:41:44 +00:00
|
|
|
proto_tree_add_item( high_sec_tree, hf_rtcp_ssrc_high_seq,
|
|
|
|
tvb, offset, 2, FALSE );
|
2000-10-19 06:45:11 +00:00
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Interarrival jitter */
|
2005-02-13 03:41:44 +00:00
|
|
|
proto_tree_add_item( ssrc_tree, hf_rtcp_ssrc_jitter, tvb,
|
|
|
|
offset, 4, FALSE );
|
2000-10-19 06:45:11 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Last SR timestamp */
|
2004-09-15 20:08:30 +00:00
|
|
|
lsr = tvb_get_ntohl( tvb, offset );
|
2000-10-19 06:45:11 +00:00
|
|
|
proto_tree_add_uint( ssrc_tree, hf_rtcp_ssrc_lsr, tvb,
|
2004-09-15 20:08:30 +00:00
|
|
|
offset, 4, lsr );
|
2000-10-19 06:45:11 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Delay since last SR timestamp */
|
2004-09-15 20:08:30 +00:00
|
|
|
dlsr = tvb_get_ntohl( tvb, offset );
|
2007-03-06 13:37:39 +00:00
|
|
|
ti = proto_tree_add_uint( ssrc_tree, hf_rtcp_ssrc_dlsr, tvb,
|
|
|
|
offset, 4, dlsr );
|
|
|
|
proto_item_append_text(ti, " (%d milliseconds)",
|
|
|
|
(int)(((double)dlsr/(double)65536) * 1000.0));
|
2000-10-19 06:45:11 +00:00
|
|
|
offset += 4;
|
2004-09-15 20:08:30 +00:00
|
|
|
|
|
|
|
/* Do roundtrip calculation */
|
|
|
|
if (global_rtcp_show_roundtrip_calculation)
|
|
|
|
{
|
2006-04-06 13:30:45 +00:00
|
|
|
/* Based on delay since SR was sent in other direction */
|
2004-09-15 20:08:30 +00:00
|
|
|
calculate_roundtrip_delay(tvb, pinfo, ssrc_tree, lsr, dlsr);
|
|
|
|
}
|
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
counter++;
|
2000-04-21 01:45:58 +00:00
|
|
|
}
|
2000-10-19 06:45:11 +00:00
|
|
|
|
2006-05-29 18:16:23 +00:00
|
|
|
/* If length remaining, assume profile-specific extension bytes */
|
|
|
|
if ((offset-rr_offset) < (int)packet_length)
|
|
|
|
{
|
|
|
|
proto_tree_add_item(tree, hf_rtcp_profile_specific_extension, tvb, offset,
|
|
|
|
packet_length - (offset - rr_offset), FALSE);
|
|
|
|
offset = rr_offset + packet_length;
|
|
|
|
}
|
|
|
|
|
2000-04-21 01:45:58 +00:00
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
2004-09-15 20:08:30 +00:00
|
|
|
dissect_rtcp_sr( packet_info *pinfo, tvbuff_t *tvb, int offset, proto_tree *tree,
|
2006-05-29 18:16:23 +00:00
|
|
|
unsigned int count, unsigned int packet_length )
|
2000-04-21 01:45:58 +00:00
|
|
|
{
|
2005-11-07 19:40:55 +00:00
|
|
|
proto_item* item;
|
2004-09-15 20:08:30 +00:00
|
|
|
guint32 ts_msw, ts_lsw;
|
2005-11-07 19:40:55 +00:00
|
|
|
gchar *buff;
|
2006-05-29 18:16:23 +00:00
|
|
|
int sr_offset = offset;
|
2004-09-15 20:08:30 +00:00
|
|
|
|
2006-04-06 13:30:45 +00:00
|
|
|
/* NTP timestamp */
|
2004-09-15 20:08:30 +00:00
|
|
|
ts_msw = tvb_get_ntohl(tvb, offset);
|
2006-04-06 13:30:45 +00:00
|
|
|
proto_tree_add_item(tree, hf_rtcp_ntp_msw, tvb, offset, 4, FALSE);
|
|
|
|
|
|
|
|
ts_lsw = tvb_get_ntohl(tvb, offset+4);
|
2006-04-06 20:47:22 +00:00
|
|
|
proto_tree_add_item(tree, hf_rtcp_ntp_lsw, tvb, offset+4, 4, FALSE);
|
2005-11-07 19:40:55 +00:00
|
|
|
|
2005-11-07 21:10:52 +00:00
|
|
|
buff=ntp_fmt_ts(tvb_get_ptr( tvb, offset, 8 ));
|
2006-04-06 13:30:45 +00:00
|
|
|
item = proto_tree_add_string_format( tree, hf_rtcp_ntp, tvb, offset, 8, ( const char* ) buff, "MSW and LSW as NTP timestamp: %s", buff );
|
2005-11-07 19:40:55 +00:00
|
|
|
PROTO_ITEM_SET_GENERATED(item);
|
2006-04-06 13:30:45 +00:00
|
|
|
offset += 8;
|
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
/* RTP timestamp, 32 bits */
|
|
|
|
proto_tree_add_uint( tree, hf_rtcp_rtp_timestamp, tvb, offset, 4, tvb_get_ntohl( tvb, offset ) );
|
|
|
|
offset += 4;
|
|
|
|
/* Sender's packet count, 32 bits */
|
|
|
|
proto_tree_add_uint( tree, hf_rtcp_sender_pkt_cnt, tvb, offset, 4, tvb_get_ntohl( tvb, offset ) );
|
|
|
|
offset += 4;
|
|
|
|
/* Sender's octet count, 32 bits */
|
|
|
|
proto_tree_add_uint( tree, hf_rtcp_sender_oct_cnt, tvb, offset, 4, tvb_get_ntohl( tvb, offset ) );
|
|
|
|
offset += 4;
|
2000-04-21 01:45:58 +00:00
|
|
|
|
2004-09-15 20:08:30 +00:00
|
|
|
/* Record the time of this packet in the sender's conversation */
|
|
|
|
if (global_rtcp_show_roundtrip_calculation)
|
|
|
|
{
|
|
|
|
/* Use middle 32 bits of 64-bit time value */
|
|
|
|
guint32 lsr = ((ts_msw & 0x0000ffff) << 16 | (ts_lsw & 0xffff0000) >> 16);
|
|
|
|
|
|
|
|
/* Record the time that we sent this in appropriate conversation */
|
|
|
|
remember_outgoing_sr(pinfo, lsr);
|
|
|
|
}
|
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
/* The rest of the packet is equal to the RR packet */
|
2001-09-03 08:10:46 +00:00
|
|
|
if ( count != 0 )
|
2006-05-29 18:16:23 +00:00
|
|
|
offset = dissect_rtcp_rr( pinfo, tvb, offset, tree, count, packet_length-(offset-sr_offset) );
|
|
|
|
else
|
|
|
|
{
|
|
|
|
/* If length remaining, assume profile-specific extension bytes */
|
|
|
|
if ((offset-sr_offset) < (int)packet_length)
|
|
|
|
{
|
|
|
|
proto_tree_add_item(tree, hf_rtcp_profile_specific_extension, tvb, offset,
|
|
|
|
packet_length - (offset - sr_offset), FALSE);
|
|
|
|
offset = sr_offset + packet_length;
|
|
|
|
}
|
|
|
|
}
|
2000-04-21 01:45:58 +00:00
|
|
|
|
2000-10-19 06:45:11 +00:00
|
|
|
return offset;
|
2000-04-21 01:45:58 +00:00
|
|
|
}
|
|
|
|
|
2004-06-15 18:26:08 +00:00
|
|
|
/* Look for conversation info and display any setup info found */
|
|
|
|
void show_setup_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|
|
|
{
|
|
|
|
/* Conversation and current data */
|
|
|
|
conversation_t *p_conv = NULL;
|
|
|
|
struct _rtcp_conversation_info *p_conv_data = NULL;
|
|
|
|
|
2004-06-30 21:08:58 +00:00
|
|
|
/* Use existing packet data if available */
|
|
|
|
p_conv_data = p_get_proto_data(pinfo->fd, proto_rtcp);
|
|
|
|
|
|
|
|
if (!p_conv_data)
|
2004-06-15 18:26:08 +00:00
|
|
|
{
|
|
|
|
/* First time, get info from conversation */
|
2005-02-02 20:07:03 +00:00
|
|
|
p_conv = find_conversation(pinfo->fd->num, &pinfo->net_dst, &pinfo->net_src,
|
2004-09-15 20:08:30 +00:00
|
|
|
pinfo->ptype,
|
|
|
|
pinfo->destport, pinfo->srcport, NO_ADDR_B);
|
2004-06-29 20:29:57 +00:00
|
|
|
|
2004-06-15 18:26:08 +00:00
|
|
|
if (p_conv)
|
|
|
|
{
|
2004-09-15 20:08:30 +00:00
|
|
|
/* Look for data in conversation */
|
2004-06-15 18:26:08 +00:00
|
|
|
struct _rtcp_conversation_info *p_conv_packet_data;
|
|
|
|
p_conv_data = conversation_get_proto_data(p_conv, proto_rtcp);
|
|
|
|
|
2004-08-16 05:54:01 +00:00
|
|
|
if (p_conv_data)
|
|
|
|
{
|
|
|
|
/* Save this conversation info into packet info */
|
2005-08-12 10:50:55 +00:00
|
|
|
p_conv_packet_data = se_alloc(sizeof(struct _rtcp_conversation_info));
|
2004-09-15 20:08:30 +00:00
|
|
|
if (!p_conv_packet_data)
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
memcpy(p_conv_packet_data, p_conv_data,
|
|
|
|
sizeof(struct _rtcp_conversation_info));
|
|
|
|
|
2004-08-16 05:54:01 +00:00
|
|
|
p_add_proto_data(pinfo->fd, proto_rtcp, p_conv_packet_data);
|
|
|
|
}
|
2004-06-15 18:26:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Create setup info subtree with summary info. */
|
2004-09-15 20:08:30 +00:00
|
|
|
if (p_conv_data && p_conv_data->setup_method_set)
|
2004-06-15 18:26:08 +00:00
|
|
|
{
|
|
|
|
proto_tree *rtcp_setup_tree;
|
|
|
|
proto_item *ti = proto_tree_add_string_format(tree, hf_rtcp_setup, tvb, 0, 0,
|
|
|
|
"",
|
2005-06-07 23:25:46 +00:00
|
|
|
"Stream setup by %s (frame %u)",
|
2004-09-15 20:08:30 +00:00
|
|
|
p_conv_data->setup_method,
|
|
|
|
p_conv_data->setup_frame_number);
|
2004-06-15 18:26:08 +00:00
|
|
|
PROTO_ITEM_SET_GENERATED(ti);
|
|
|
|
rtcp_setup_tree = proto_item_add_subtree(ti, ett_rtcp_setup);
|
|
|
|
if (rtcp_setup_tree)
|
|
|
|
{
|
|
|
|
/* Add details into subtree */
|
|
|
|
proto_item* item = proto_tree_add_uint(rtcp_setup_tree, hf_rtcp_setup_frame,
|
2004-09-15 20:08:30 +00:00
|
|
|
tvb, 0, 0, p_conv_data->setup_frame_number);
|
2004-06-15 18:26:08 +00:00
|
|
|
PROTO_ITEM_SET_GENERATED(item);
|
|
|
|
item = proto_tree_add_string(rtcp_setup_tree, hf_rtcp_setup_method,
|
2004-09-15 20:08:30 +00:00
|
|
|
tvb, 0, 0, p_conv_data->setup_method);
|
2004-06-15 18:26:08 +00:00
|
|
|
PROTO_ITEM_SET_GENERATED(item);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-09-15 20:08:30 +00:00
|
|
|
/* Update conversation data to record time that outgoing rr/sr was sent */
|
|
|
|
static void remember_outgoing_sr(packet_info *pinfo, long lsr)
|
|
|
|
{
|
|
|
|
conversation_t *p_conv = NULL;
|
|
|
|
struct _rtcp_conversation_info *p_conv_data = NULL;
|
|
|
|
struct _rtcp_conversation_info *p_packet_data = NULL;
|
|
|
|
|
|
|
|
/* This information will be accessed when an incoming packet comes back to
|
|
|
|
the side that sent this packet, so no use storing in the packet
|
|
|
|
info. However, do store the fact that we've already set this info
|
|
|
|
before */
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************/
|
|
|
|
/* First of all, see if we've already stored this information for this sr */
|
|
|
|
|
|
|
|
/* Look first in packet info */
|
|
|
|
p_packet_data = p_get_proto_data(pinfo->fd, proto_rtcp);
|
|
|
|
if (p_packet_data && p_packet_data->last_received_set &&
|
|
|
|
p_packet_data->last_received_frame_number >= pinfo->fd->num)
|
|
|
|
{
|
|
|
|
/* We already did this, OK */
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************/
|
|
|
|
/* Otherwise, we want to find/create the conversation and update it */
|
|
|
|
|
|
|
|
/* First time, get info from conversation.
|
|
|
|
Even though we think of this as an outgoing packet being sent,
|
|
|
|
we store the time as being received by the destination. */
|
2005-02-02 20:07:03 +00:00
|
|
|
p_conv = find_conversation(pinfo->fd->num, &pinfo->net_dst, &pinfo->net_src,
|
2004-09-15 20:08:30 +00:00
|
|
|
pinfo->ptype,
|
|
|
|
pinfo->destport, pinfo->srcport, NO_ADDR_B);
|
|
|
|
|
|
|
|
/* If the conversation doesn't exist, create it now. */
|
|
|
|
if (!p_conv)
|
|
|
|
{
|
2005-02-02 20:07:03 +00:00
|
|
|
p_conv = conversation_new(pinfo->fd->num, &pinfo->net_dst, &pinfo->net_src, PT_UDP,
|
2004-09-15 20:08:30 +00:00
|
|
|
pinfo->destport, pinfo->srcport,
|
|
|
|
NO_ADDR2);
|
|
|
|
if (!p_conv)
|
|
|
|
{
|
|
|
|
/* Give up if can't create it */
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/****************************************************/
|
|
|
|
/* Now find/create conversation data */
|
|
|
|
p_conv_data = conversation_get_proto_data(p_conv, proto_rtcp);
|
|
|
|
if (!p_conv_data)
|
|
|
|
{
|
|
|
|
/* Allocate memory for data */
|
2005-08-12 10:50:55 +00:00
|
|
|
p_conv_data = se_alloc(sizeof(struct _rtcp_conversation_info));
|
2004-09-15 20:08:30 +00:00
|
|
|
if (!p_conv_data)
|
|
|
|
{
|
|
|
|
/* Give up if couldn't allocate space for memory */
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
memset(p_conv_data, 0, sizeof(struct _rtcp_conversation_info));
|
|
|
|
|
|
|
|
/* Add it to conversation. */
|
|
|
|
conversation_add_proto_data(p_conv, proto_rtcp, p_conv_data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*******************************************************/
|
|
|
|
/* Update conversation data */
|
|
|
|
p_conv_data->last_received_set = TRUE;
|
|
|
|
p_conv_data->last_received_frame_number = pinfo->fd->num;
|
2005-08-24 21:31:56 +00:00
|
|
|
p_conv_data->last_received_timestamp = pinfo->fd->abs_ts;
|
2004-09-15 20:08:30 +00:00
|
|
|
p_conv_data->last_received_ts = lsr;
|
|
|
|
|
|
|
|
|
|
|
|
/****************************************************************/
|
|
|
|
/* Update packet info to record conversation state */
|
|
|
|
|
|
|
|
/* Will use/create packet info */
|
|
|
|
if (!p_packet_data)
|
|
|
|
{
|
2005-08-12 10:50:55 +00:00
|
|
|
p_packet_data = se_alloc(sizeof(struct _rtcp_conversation_info));
|
2004-09-15 20:08:30 +00:00
|
|
|
if (!p_packet_data)
|
|
|
|
{
|
|
|
|
/* Give up if allocation fails */
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
memset(p_packet_data, 0, sizeof(struct _rtcp_conversation_info));
|
|
|
|
|
|
|
|
p_add_proto_data(pinfo->fd, proto_rtcp, p_packet_data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Copy current conversation data into packet info */
|
|
|
|
p_packet_data->last_received_set = TRUE;
|
|
|
|
p_packet_data->last_received_frame_number = p_conv_data->last_received_frame_number;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Use received sr to work out what the roundtrip delay is
|
|
|
|
(at least between capture point and the other endpoint involved in
|
|
|
|
the conversation) */
|
|
|
|
static void calculate_roundtrip_delay(tvbuff_t *tvb, packet_info *pinfo,
|
|
|
|
proto_tree *tree, guint32 lsr, guint32 dlsr)
|
|
|
|
{
|
|
|
|
/*****************************************************/
|
|
|
|
/* This is called dissecting an SR. We need to:
|
|
|
|
- look in the packet info for stored calculation. If found, use.
|
|
|
|
- look up the conversation of the sending side to see when the
|
|
|
|
'last SR' was detected (received)
|
|
|
|
- calculate the network delay using the that packet time,
|
|
|
|
this packet time, and dlsr
|
|
|
|
*****************************************************/
|
|
|
|
|
|
|
|
conversation_t *p_conv = NULL;
|
|
|
|
struct _rtcp_conversation_info *p_conv_data = NULL;
|
|
|
|
struct _rtcp_conversation_info *p_packet_data = NULL;
|
|
|
|
|
|
|
|
|
|
|
|
/*************************************************/
|
2006-04-06 13:30:45 +00:00
|
|
|
/* Look for previous result */
|
2004-09-15 20:08:30 +00:00
|
|
|
p_packet_data = p_get_proto_data(pinfo->fd, proto_rtcp);
|
2006-04-06 13:30:45 +00:00
|
|
|
if (p_packet_data && p_packet_data->lsr_matched)
|
2004-09-15 20:08:30 +00:00
|
|
|
{
|
|
|
|
/* Show info. */
|
|
|
|
add_roundtrip_delay_info(tvb, pinfo, tree,
|
|
|
|
p_packet_data->calculated_delay_used_frame,
|
|
|
|
p_packet_data->calculated_delay);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/********************************************************************/
|
|
|
|
/* Look for captured timestamp of last SR in conversation of sender */
|
|
|
|
/* of this packet */
|
2005-02-02 20:07:03 +00:00
|
|
|
p_conv = find_conversation(pinfo->fd->num, &pinfo->net_src, &pinfo->net_dst,
|
2004-09-15 20:08:30 +00:00
|
|
|
pinfo->ptype,
|
2004-09-20 19:22:10 +00:00
|
|
|
pinfo->srcport, pinfo->destport, NO_ADDR_B);
|
2004-09-15 20:08:30 +00:00
|
|
|
if (!p_conv)
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Look for conversation data */
|
|
|
|
p_conv_data = conversation_get_proto_data(p_conv, proto_rtcp);
|
|
|
|
if (!p_conv_data)
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (p_conv_data->last_received_set)
|
|
|
|
{
|
|
|
|
/* Store result of calculation in packet info */
|
|
|
|
if (!p_packet_data)
|
|
|
|
{
|
|
|
|
/* Create packet info if it doesn't exist */
|
2005-08-12 10:50:55 +00:00
|
|
|
p_packet_data = se_alloc(sizeof(struct _rtcp_conversation_info));
|
2004-09-15 20:08:30 +00:00
|
|
|
if (!p_packet_data)
|
|
|
|
{
|
|
|
|
/* Give up if allocation fails */
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
memset(p_packet_data, 0, sizeof(struct _rtcp_conversation_info));
|
|
|
|
|
|
|
|
/* Set as packet info */
|
|
|
|
p_add_proto_data(pinfo->fd, proto_rtcp, p_packet_data);
|
|
|
|
}
|
|
|
|
|
2007-01-02 11:46:30 +00:00
|
|
|
/* Don't allow match seemingly calculated from same (or later!) frame */
|
|
|
|
if (pinfo->fd->num <= p_conv_data->last_received_frame_number)
|
2006-01-03 16:24:56 +00:00
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
2007-01-02 11:46:30 +00:00
|
|
|
|
|
|
|
/* The previous report must match the lsr given here */
|
2004-09-15 20:08:30 +00:00
|
|
|
if (p_conv_data->last_received_ts == lsr)
|
|
|
|
{
|
|
|
|
/* Look at time of since original packet was sent */
|
2007-03-23 00:51:21 +00:00
|
|
|
gint seconds_between_packets = (gint)
|
|
|
|
(pinfo->fd->abs_ts.secs - p_conv_data->last_received_timestamp.secs);
|
2005-08-24 21:31:56 +00:00
|
|
|
gint nseconds_between_packets =
|
|
|
|
pinfo->fd->abs_ts.nsecs - p_conv_data->last_received_timestamp.nsecs;
|
2004-09-15 20:08:30 +00:00
|
|
|
|
2006-01-03 16:24:56 +00:00
|
|
|
gint total_gap = (seconds_between_packets*1000) +
|
|
|
|
(nseconds_between_packets / 1000000);
|
2006-11-02 11:51:09 +00:00
|
|
|
gint dlsr_ms = (int)(((double)dlsr/(double)65536) * 1000.0);
|
|
|
|
gint delay;
|
2004-09-15 20:08:30 +00:00
|
|
|
|
2007-01-02 11:46:30 +00:00
|
|
|
/* Delay is gap - dlsr (N.B. this is allowed to be -ve) */
|
|
|
|
delay = total_gap - dlsr_ms;
|
2006-11-02 11:51:09 +00:00
|
|
|
|
|
|
|
/* Record that the LSR matches */
|
|
|
|
p_packet_data->lsr_matched = TRUE;
|
2006-04-06 13:30:45 +00:00
|
|
|
|
2004-09-15 20:08:30 +00:00
|
|
|
/* No useful calculation can be done if dlsr not set... */
|
2006-04-06 13:30:45 +00:00
|
|
|
if (dlsr)
|
2004-09-15 20:08:30 +00:00
|
|
|
{
|
2006-04-06 13:30:45 +00:00
|
|
|
p_packet_data->calculated_delay = delay;
|
|
|
|
p_packet_data->calculated_delay_used_frame = p_conv_data->last_received_frame_number;
|
2004-09-15 20:08:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Show info. */
|
|
|
|
add_roundtrip_delay_info(tvb, pinfo, tree, p_conv_data->last_received_frame_number, delay);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Show the calcaulted roundtrip delay info by adding protocol tree items
|
|
|
|
and appending text to the info column */
|
|
|
|
static void add_roundtrip_delay_info(tvbuff_t *tvb, packet_info *pinfo,
|
2007-01-02 11:46:30 +00:00
|
|
|
proto_tree *tree, guint frame, gint delay)
|
2004-09-15 20:08:30 +00:00
|
|
|
{
|
2006-04-06 13:30:45 +00:00
|
|
|
/* 'Last SR' frame used in calculation. Show this even if no delay shown */
|
|
|
|
proto_item* item = proto_tree_add_uint(tree,
|
|
|
|
hf_rtcp_last_sr_timestamp_frame,
|
|
|
|
tvb, 0, 0, frame);
|
|
|
|
PROTO_ITEM_SET_GENERATED(item);
|
2004-09-15 20:08:30 +00:00
|
|
|
|
2006-04-06 13:30:45 +00:00
|
|
|
/* Don't report on calculated delays below the threshold.
|
2007-01-02 11:46:30 +00:00
|
|
|
Will report delays less than -threshold, to highlight
|
|
|
|
problems with generated reports */
|
2007-03-20 17:20:36 +00:00
|
|
|
if (abs(delay) < (int)global_rtcp_show_roundtrip_calculation_minimum)
|
2004-09-15 20:08:30 +00:00
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2006-04-06 13:30:45 +00:00
|
|
|
/* Calculated delay in ms */
|
2007-01-02 11:46:30 +00:00
|
|
|
item = proto_tree_add_int(tree, hf_rtcp_roundtrip_delay, tvb, 0, 0, delay);
|
2006-04-06 13:30:45 +00:00
|
|
|
PROTO_ITEM_SET_GENERATED(item);
|
2004-09-15 20:08:30 +00:00
|
|
|
|
2006-10-20 14:05:18 +00:00
|
|
|
/* Add to expert info */
|
2007-01-02 11:46:30 +00:00
|
|
|
if (delay >= 0)
|
|
|
|
{
|
|
|
|
expert_add_info_format(pinfo, item,
|
|
|
|
PI_SEQUENCE, PI_NOTE,
|
|
|
|
"RTCP round-trip delay detected (%d ms)",
|
|
|
|
delay);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
expert_add_info_format(pinfo, item,
|
|
|
|
PI_SEQUENCE, PI_ERROR,
|
|
|
|
"Negative RTCP round-trip delay detected (%d ms)",
|
|
|
|
delay);
|
|
|
|
}
|
2006-10-20 14:05:18 +00:00
|
|
|
|
2004-09-15 20:08:30 +00:00
|
|
|
/* Report delay in INFO column */
|
|
|
|
if (check_col(pinfo->cinfo, COL_INFO))
|
|
|
|
{
|
2007-01-02 11:46:30 +00:00
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO,
|
|
|
|
" (roundtrip delay <-> %s = %dms, using frame %u) ",
|
|
|
|
address_to_str(&pinfo->net_src), delay, frame);
|
2004-09-15 20:08:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2001-11-27 07:13:32 +00:00
|
|
|
static void
|
2000-10-19 06:45:11 +00:00
|
|
|
dissect_rtcp( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree )
|
2000-04-21 01:45:58 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
proto_item *ti = NULL;
|
|
|
|
proto_tree *rtcp_tree = NULL;
|
|
|
|
unsigned int temp_byte = 0;
|
|
|
|
unsigned int padding_set = 0;
|
|
|
|
unsigned int elem_count = 0;
|
|
|
|
unsigned int packet_type = 0;
|
|
|
|
unsigned int offset = 0;
|
|
|
|
guint16 packet_length = 0;
|
2006-06-06 18:26:57 +00:00
|
|
|
guint16 total_packet_length = 0;
|
2004-05-31 19:35:53 +00:00
|
|
|
guint rtcp_subtype = 0;
|
2005-11-09 21:50:39 +00:00
|
|
|
guint32 app_length = 0;
|
2000-10-19 06:45:11 +00:00
|
|
|
|
2001-12-10 00:26:21 +00:00
|
|
|
if ( check_col( pinfo->cinfo, COL_PROTOCOL ) ) {
|
|
|
|
col_set_str( pinfo->cinfo, COL_PROTOCOL, "RTCP" );
|
2000-04-21 01:45:58 +00:00
|
|
|
}
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2004-09-15 20:08:30 +00:00
|
|
|
/*
|
|
|
|
* Check if there are at least 4 bytes left in the frame,
|
|
|
|
* the last 16 bits of those is the length of the current
|
|
|
|
* RTCP message. The last compound message contains padding,
|
|
|
|
* that enables us to break from the while loop.
|
|
|
|
*/
|
|
|
|
while ( tvb_bytes_exist( tvb, offset, 4) ) {
|
|
|
|
/*
|
|
|
|
* First retreive the packet_type
|
|
|
|
*/
|
|
|
|
packet_type = tvb_get_guint8( tvb, offset + 1 );
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Check if it's a valid type
|
|
|
|
*/
|
2005-02-13 03:41:44 +00:00
|
|
|
if ( ( packet_type < 192 ) || ( packet_type > 207 ) )
|
2004-09-15 20:08:30 +00:00
|
|
|
break;
|
|
|
|
|
2006-11-09 16:46:58 +00:00
|
|
|
if (check_col(pinfo->cinfo, COL_INFO))
|
|
|
|
{
|
|
|
|
col_add_fstr(pinfo->cinfo, COL_INFO, "%s ",
|
|
|
|
val_to_str(packet_type, rtcp_packet_type_vals, "Unknown"));
|
|
|
|
}
|
|
|
|
|
2004-09-15 20:08:30 +00:00
|
|
|
/*
|
|
|
|
* get the packet-length for the complete RTCP packet
|
|
|
|
*/
|
2006-06-06 18:26:57 +00:00
|
|
|
packet_length = ( tvb_get_ntohs( tvb, offset + 2 ) + 1 ) * 4;
|
|
|
|
total_packet_length += packet_length;
|
2004-09-15 20:08:30 +00:00
|
|
|
|
|
|
|
ti = proto_tree_add_item(tree, proto_rtcp, tvb, offset, packet_length, FALSE );
|
2005-12-07 00:35:16 +00:00
|
|
|
proto_item_append_text(ti, " (%s)",
|
|
|
|
val_to_str(packet_type,
|
|
|
|
rtcp_packet_type_vals,
|
|
|
|
"Unknown"));
|
|
|
|
|
2004-09-15 20:08:30 +00:00
|
|
|
rtcp_tree = proto_item_add_subtree( ti, ett_rtcp );
|
|
|
|
|
|
|
|
/* Conversation setup info */
|
|
|
|
if (global_rtcp_show_setup_info)
|
|
|
|
{
|
|
|
|
show_setup_info(tvb, pinfo, rtcp_tree);
|
|
|
|
}
|
2004-06-15 18:26:08 +00:00
|
|
|
|
|
|
|
|
2004-09-15 20:08:30 +00:00
|
|
|
temp_byte = tvb_get_guint8( tvb, offset );
|
|
|
|
|
|
|
|
proto_tree_add_uint( rtcp_tree, hf_rtcp_version, tvb,
|
|
|
|
offset, 1, temp_byte);
|
|
|
|
padding_set = RTCP_PADDING( temp_byte );
|
|
|
|
|
|
|
|
proto_tree_add_boolean( rtcp_tree, hf_rtcp_padding, tvb,
|
|
|
|
offset, 1, temp_byte );
|
|
|
|
elem_count = RTCP_COUNT( temp_byte );
|
|
|
|
|
|
|
|
switch ( packet_type ) {
|
|
|
|
case RTCP_SR:
|
|
|
|
case RTCP_RR:
|
|
|
|
/* Receiver report count, 5 bits */
|
|
|
|
proto_tree_add_uint( rtcp_tree, hf_rtcp_rc, tvb, offset, 1, temp_byte );
|
|
|
|
offset++;
|
|
|
|
/* Packet type, 8 bits */
|
|
|
|
proto_tree_add_item( rtcp_tree, hf_rtcp_pt, tvb, offset, 1, FALSE );
|
|
|
|
offset++;
|
|
|
|
/* Packet length in 32 bit words MINUS one, 16 bits */
|
2007-03-06 13:37:39 +00:00
|
|
|
offset = dissect_rtcp_length_field(rtcp_tree, tvb, offset);
|
2004-09-15 20:08:30 +00:00
|
|
|
/* Sender Synchronization source, 32 bits */
|
|
|
|
proto_tree_add_uint( rtcp_tree, hf_rtcp_ssrc_sender, tvb, offset, 4, tvb_get_ntohl( tvb, offset ) );
|
|
|
|
offset += 4;
|
|
|
|
|
2006-05-29 18:16:23 +00:00
|
|
|
if ( packet_type == RTCP_SR )
|
|
|
|
offset = dissect_rtcp_sr( pinfo, tvb, offset, rtcp_tree, elem_count, packet_length-8 );
|
|
|
|
else
|
|
|
|
offset = dissect_rtcp_rr( pinfo, tvb, offset, rtcp_tree, elem_count, packet_length-8 );
|
2004-09-15 20:08:30 +00:00
|
|
|
break;
|
|
|
|
case RTCP_SDES:
|
|
|
|
/* Source count, 5 bits */
|
|
|
|
proto_tree_add_uint( rtcp_tree, hf_rtcp_sc, tvb, offset, 1, temp_byte );
|
|
|
|
offset++;
|
|
|
|
/* Packet type, 8 bits */
|
|
|
|
proto_tree_add_item( rtcp_tree, hf_rtcp_pt, tvb, offset, 1, FALSE );
|
|
|
|
offset++;
|
|
|
|
/* Packet length in 32 bit words MINUS one, 16 bits */
|
2007-03-06 13:37:39 +00:00
|
|
|
offset = dissect_rtcp_length_field(rtcp_tree, tvb, offset);
|
2004-09-15 20:08:30 +00:00
|
|
|
dissect_rtcp_sdes( tvb, offset, rtcp_tree, elem_count );
|
|
|
|
offset += packet_length - 4;
|
|
|
|
break;
|
|
|
|
case RTCP_BYE:
|
|
|
|
/* Source count, 5 bits */
|
|
|
|
proto_tree_add_uint( rtcp_tree, hf_rtcp_sc, tvb, offset, 1, temp_byte );
|
|
|
|
offset++;
|
|
|
|
/* Packet type, 8 bits */
|
|
|
|
proto_tree_add_item( rtcp_tree, hf_rtcp_pt, tvb, offset, 1, FALSE );
|
|
|
|
offset++;
|
|
|
|
/* Packet length in 32 bit words MINUS one, 16 bits */
|
2007-03-06 13:37:39 +00:00
|
|
|
offset = dissect_rtcp_length_field(rtcp_tree, tvb, offset);
|
2004-09-15 20:08:30 +00:00
|
|
|
offset = dissect_rtcp_bye( tvb, offset, rtcp_tree, elem_count );
|
|
|
|
break;
|
|
|
|
case RTCP_APP:
|
|
|
|
/* Subtype, 5 bits */
|
|
|
|
rtcp_subtype = elem_count;
|
|
|
|
proto_tree_add_uint( rtcp_tree, hf_rtcp_subtype, tvb, offset, 1, elem_count );
|
|
|
|
offset++;
|
|
|
|
/* Packet type, 8 bits */
|
|
|
|
proto_tree_add_item( rtcp_tree, hf_rtcp_pt, tvb, offset, 1, FALSE );
|
|
|
|
offset++;
|
|
|
|
/* Packet length in 32 bit words MINUS one, 16 bits */
|
2006-06-06 18:26:57 +00:00
|
|
|
app_length = tvb_get_ntohs( tvb, offset ) <<2;
|
2007-03-06 13:37:39 +00:00
|
|
|
offset = dissect_rtcp_length_field(rtcp_tree, tvb, offset);
|
2005-11-09 21:50:39 +00:00
|
|
|
offset = dissect_rtcp_app( tvb, pinfo, offset,rtcp_tree, padding_set, packet_length - 4, rtcp_subtype, app_length);
|
2004-09-15 20:08:30 +00:00
|
|
|
break;
|
2005-02-13 03:41:44 +00:00
|
|
|
case RTCP_XR:
|
|
|
|
/* Reserved, 5 bits, Ignore */
|
|
|
|
offset++;
|
|
|
|
/* Packet type, 8 bits */
|
|
|
|
proto_tree_add_item( rtcp_tree, hf_rtcp_pt, tvb, offset, 1, FALSE );
|
|
|
|
offset++;
|
|
|
|
/* Packet length in 32 bit words MINUS one, 16 bits */
|
2007-03-06 13:37:39 +00:00
|
|
|
offset = dissect_rtcp_length_field(rtcp_tree, tvb, offset);
|
2005-02-13 03:41:44 +00:00
|
|
|
offset = dissect_rtcp_xr( tvb, pinfo, offset, rtcp_tree, packet_length - 4 );
|
|
|
|
break;
|
2004-09-15 20:08:30 +00:00
|
|
|
case RTCP_FIR:
|
|
|
|
offset = dissect_rtcp_fir( tvb, offset, rtcp_tree );
|
|
|
|
break;
|
|
|
|
case RTCP_NACK:
|
|
|
|
offset = dissect_rtcp_nack( tvb, offset, rtcp_tree );
|
|
|
|
break;
|
2007-02-24 17:31:55 +00:00
|
|
|
case RTCP_RTPFB:
|
|
|
|
/* Transport layer FB message */
|
|
|
|
/* Feedback message type (FMT): 5 bits */
|
|
|
|
proto_tree_add_item( rtcp_tree, hf_rtcp_rtpfb_fmt, tvb, offset, 1, FALSE );
|
|
|
|
offset++;
|
|
|
|
/* Packet type, 8 bits */
|
|
|
|
proto_tree_add_item( rtcp_tree, hf_rtcp_pt, tvb, offset, 1, FALSE );
|
|
|
|
offset++;
|
|
|
|
/* Packet length in 32 bit words MINUS one, 16 bits */
|
2007-03-06 13:37:39 +00:00
|
|
|
offset = dissect_rtcp_length_field(rtcp_tree, tvb, offset);
|
2007-02-24 17:31:55 +00:00
|
|
|
/* SSRC of packet sender, 32 bits */
|
|
|
|
proto_tree_add_uint( rtcp_tree, hf_rtcp_ssrc_sender, tvb, offset, 4, tvb_get_ntohl( tvb, offset ) );
|
|
|
|
offset += 4;
|
|
|
|
/* SSRC of media source, 32 bits */
|
|
|
|
proto_tree_add_uint( rtcp_tree, hf_rtcp_ssrc_sender, tvb, offset, 4, tvb_get_ntohl( tvb, offset ) );
|
|
|
|
offset += 4;
|
|
|
|
/* Feedback Control Information (FCI) */
|
|
|
|
if (packet_length > 2)
|
|
|
|
proto_tree_add_item( rtcp_tree, hf_rtcp_fci, tvb, offset, 1, FALSE );
|
|
|
|
break;
|
|
|
|
|
|
|
|
case RTCP_PSFB:
|
|
|
|
/* Payload-specific FB message */
|
|
|
|
/* Feedback message type (FMT): 5 bits */
|
|
|
|
proto_tree_add_item( rtcp_tree, hf_rtcp_psfb_fmt, tvb, offset, 1, FALSE );
|
|
|
|
offset++;
|
|
|
|
/* Packet type, 8 bits */
|
|
|
|
proto_tree_add_item( rtcp_tree, hf_rtcp_pt, tvb, offset, 1, FALSE );
|
|
|
|
offset++;
|
|
|
|
/* Packet length in 32 bit words MINUS one, 16 bits */
|
2007-03-06 13:37:39 +00:00
|
|
|
offset = dissect_rtcp_length_field(rtcp_tree, tvb, offset);
|
2007-02-24 17:31:55 +00:00
|
|
|
/* SSRC of packet sender, 32 bits */
|
|
|
|
proto_tree_add_uint( rtcp_tree, hf_rtcp_ssrc_sender, tvb, offset, 4, tvb_get_ntohl( tvb, offset ) );
|
|
|
|
offset += 4;
|
|
|
|
/* SSRC of media source, 32 bits */
|
|
|
|
proto_tree_add_uint( rtcp_tree, hf_rtcp_ssrc_sender, tvb, offset, 4, tvb_get_ntohl( tvb, offset ) );
|
|
|
|
offset += 4;
|
|
|
|
/* Feedback Control Information (FCI) */
|
|
|
|
if (packet_length > 2)
|
|
|
|
proto_tree_add_item( rtcp_tree, hf_rtcp_fci, tvb, offset, 1, FALSE );
|
|
|
|
break;
|
2004-09-15 20:08:30 +00:00
|
|
|
default:
|
|
|
|
/*
|
|
|
|
* To prevent endless loops in case of an unknown message type
|
|
|
|
* increase offset. Some time the while will end :-)
|
|
|
|
*/
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
}
|
2007-01-02 11:46:30 +00:00
|
|
|
|
|
|
|
col_set_fence(pinfo->cinfo, COL_INFO);
|
2004-09-15 20:08:30 +00:00
|
|
|
}
|
|
|
|
/* If the padding bit is set, the last octet of the
|
|
|
|
* packet contains the length of the padding
|
|
|
|
* We only have to check for this at the end of the LAST RTCP message
|
|
|
|
*/
|
|
|
|
if ( padding_set ) {
|
|
|
|
/* If everything went according to plan offset should now point to the
|
|
|
|
* first octet of the padding
|
|
|
|
*/
|
|
|
|
proto_tree_add_item( rtcp_tree, hf_rtcp_padding_data, tvb, offset, tvb_length_remaining( tvb, offset) - 1, FALSE );
|
|
|
|
offset += tvb_length_remaining( tvb, offset) - 1;
|
|
|
|
proto_tree_add_item( rtcp_tree, hf_rtcp_padding_count, tvb, offset, 1, FALSE );
|
|
|
|
}
|
2006-06-06 18:26:57 +00:00
|
|
|
|
|
|
|
/* offset should be total_packet_length by now... */
|
|
|
|
if (offset == (int)total_packet_length)
|
|
|
|
{
|
|
|
|
ti = proto_tree_add_boolean_format_value(tree, hf_rtcp_length_check, tvb,
|
|
|
|
0, 0, TRUE, "OK - %u bytes",
|
|
|
|
offset);
|
|
|
|
/* Hidden might be less annoying here...? */
|
|
|
|
PROTO_ITEM_SET_GENERATED(ti);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
ti = proto_tree_add_boolean_format_value(tree, hf_rtcp_length_check, tvb,
|
|
|
|
0, 0, FALSE,
|
|
|
|
"Wrong (expected %u bytes, found %d)",
|
|
|
|
total_packet_length, offset);
|
|
|
|
PROTO_ITEM_SET_GENERATED(ti);
|
|
|
|
|
|
|
|
expert_add_info_format(pinfo, ti,
|
|
|
|
PI_MALFORMED, PI_WARN,
|
|
|
|
"Incorrect RTCP packet length information (expected %u bytes, found %d)",
|
|
|
|
total_packet_length, offset);
|
|
|
|
}
|
2000-04-21 01:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
proto_register_rtcp(void)
|
|
|
|
{
|
2002-08-28 21:04:11 +00:00
|
|
|
static hf_register_info hf[] =
|
2000-10-19 06:45:11 +00:00
|
|
|
{
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_version,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Version",
|
|
|
|
"rtcp.version",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
VALS(rtcp_version_vals),
|
2003-11-09 22:55:35 +00:00
|
|
|
0xC0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_padding,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Padding",
|
|
|
|
"rtcp.padding",
|
|
|
|
FT_BOOLEAN,
|
2003-11-09 22:55:35 +00:00
|
|
|
8,
|
2002-08-28 21:04:11 +00:00
|
|
|
NULL,
|
2003-11-09 22:55:35 +00:00
|
|
|
0x20,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_rc,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Reception report count",
|
|
|
|
"rtcp.rc",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
2003-11-09 22:55:35 +00:00
|
|
|
0x1F,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_sc,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Source count",
|
|
|
|
"rtcp.sc",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
2003-11-09 22:55:35 +00:00
|
|
|
0x1F,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_pt,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Packet type",
|
|
|
|
"rtcp.pt",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
VALS( rtcp_packet_type_vals ),
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_length,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Length",
|
|
|
|
"rtcp.length",
|
|
|
|
FT_UINT16,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2006-06-06 18:26:57 +00:00
|
|
|
"32-bit words (-1) in packet", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_ssrc_sender,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Sender SSRC",
|
|
|
|
"rtcp.senderssrc",
|
|
|
|
FT_UINT32,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2006-04-06 13:30:45 +00:00
|
|
|
{
|
|
|
|
&hf_rtcp_ntp_msw,
|
|
|
|
{
|
|
|
|
"Timestamp, MSW",
|
|
|
|
"rtcp.timestamp.ntp.msw",
|
|
|
|
FT_UINT32,
|
|
|
|
BASE_DEC_HEX,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_ntp_lsw,
|
|
|
|
{
|
|
|
|
"Timestamp, LSW",
|
|
|
|
"rtcp.timestamp.ntp.lsw",
|
|
|
|
FT_UINT32,
|
|
|
|
BASE_DEC_HEX,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_ntp,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"NTP timestamp",
|
|
|
|
"rtcp.timestamp.ntp",
|
|
|
|
FT_STRING,
|
|
|
|
BASE_NONE,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_rtp_timestamp,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"RTP timestamp",
|
|
|
|
"rtcp.timestamp.rtp",
|
|
|
|
FT_UINT32,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_sender_pkt_cnt,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Sender's packet count",
|
|
|
|
"rtcp.sender.packetcount",
|
|
|
|
FT_UINT32,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_sender_oct_cnt,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Sender's octet count",
|
|
|
|
"rtcp.sender.octetcount",
|
|
|
|
FT_UINT32,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_ssrc_source,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Identifier",
|
|
|
|
"rtcp.ssrc.identifier",
|
|
|
|
FT_UINT32,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_ssrc_fraction,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Fraction lost",
|
|
|
|
"rtcp.ssrc.fraction",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_ssrc_cum_nr,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Cumulative number of packets lost",
|
|
|
|
"rtcp.ssrc.cum_nr",
|
|
|
|
FT_UINT32,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_ssrc_ext_high_seq,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Extended highest sequence number received",
|
|
|
|
"rtcp.ssrc.ext_high",
|
|
|
|
FT_UINT32,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_ssrc_high_seq,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Highest sequence number received",
|
|
|
|
"rtcp.ssrc.high_seq",
|
|
|
|
FT_UINT16,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_ssrc_high_cycles,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Sequence number cycles count",
|
|
|
|
"rtcp.ssrc.high_cycles",
|
|
|
|
FT_UINT16,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_ssrc_jitter,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Interarrival jitter",
|
|
|
|
"rtcp.ssrc.jitter",
|
|
|
|
FT_UINT32,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_ssrc_lsr,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Last SR timestamp",
|
|
|
|
"rtcp.ssrc.lsr",
|
|
|
|
FT_UINT32,
|
2006-04-13 22:30:20 +00:00
|
|
|
BASE_DEC_HEX,
|
2002-08-28 21:04:11 +00:00
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_ssrc_dlsr,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Delay since last SR timestamp",
|
|
|
|
"rtcp.ssrc.dlsr",
|
|
|
|
FT_UINT32,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_ssrc_csrc,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"SSRC / CSRC identifier",
|
|
|
|
"rtcp.sdes.ssrc_csrc",
|
|
|
|
FT_UINT32,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2005-11-09 21:50:39 +00:00
|
|
|
&hf_rtcp_sdes_type,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Type",
|
|
|
|
"rtcp.sdes.type",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
VALS( rtcp_sdes_type_vals ),
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2005-11-09 21:50:39 +00:00
|
|
|
&hf_rtcp_sdes_length,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Length",
|
|
|
|
"rtcp.sdes.length",
|
|
|
|
FT_UINT32,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2005-11-09 21:50:39 +00:00
|
|
|
&hf_rtcp_sdes_text,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Text",
|
|
|
|
"rtcp.sdes.text",
|
|
|
|
FT_STRING,
|
|
|
|
BASE_NONE,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2005-11-09 21:50:39 +00:00
|
|
|
&hf_rtcp_sdes_prefix_len,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Prefix length",
|
|
|
|
"rtcp.sdes.prefix.length",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2005-11-09 21:50:39 +00:00
|
|
|
&hf_rtcp_sdes_prefix_string,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Prefix string",
|
|
|
|
"rtcp.sdes.prefix.string",
|
|
|
|
FT_STRING,
|
|
|
|
BASE_NONE,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_subtype,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Subtype",
|
|
|
|
"rtcp.app.subtype",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_name_ascii,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Name (ASCII)",
|
|
|
|
"rtcp.app.name",
|
|
|
|
FT_STRING,
|
|
|
|
BASE_NONE,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_app_data,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Application specific data",
|
|
|
|
"rtcp.app.data",
|
|
|
|
FT_BYTES,
|
|
|
|
BASE_NONE,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2006-08-02 16:00:07 +00:00
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1,
|
|
|
|
{
|
|
|
|
"PoC1 Application specific data",
|
|
|
|
"rtcp.app.poc1",
|
|
|
|
FT_NONE,
|
|
|
|
BASE_NONE,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
2004-05-31 19:35:53 +00:00
|
|
|
{
|
2004-06-15 18:26:08 +00:00
|
|
|
&hf_rtcp_app_poc1_subtype,
|
2004-05-31 19:35:53 +00:00
|
|
|
{
|
|
|
|
"Subtype",
|
|
|
|
"rtcp.app.PoC1.subtype",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
VALS(rtcp_app_poc1_floor_cnt_type_vals),
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1_sip_uri,
|
2004-06-01 18:58:04 +00:00
|
|
|
{
|
2004-05-31 19:35:53 +00:00
|
|
|
"SIP URI",
|
|
|
|
"rtcp.app.poc1.sip.uri",
|
2006-12-21 17:05:42 +00:00
|
|
|
FT_UINT_STRING,
|
2004-05-31 19:35:53 +00:00
|
|
|
BASE_NONE,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1_disp_name,
|
2004-06-01 18:58:04 +00:00
|
|
|
{
|
2004-05-31 19:35:53 +00:00
|
|
|
"Display Name",
|
|
|
|
"rtcp.app.poc1.disp.name",
|
2006-12-21 17:05:42 +00:00
|
|
|
FT_UINT_STRING,
|
2004-05-31 19:35:53 +00:00
|
|
|
BASE_NONE,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
2006-08-02 16:00:07 +00:00
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1_priority,
|
|
|
|
{
|
|
|
|
"Priority",
|
|
|
|
"rtcp.app.poc1.priority",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
VALS(rtcp_app_poc1_qsresp_priority_vals),
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1_request_ts,
|
|
|
|
{
|
|
|
|
"Talk Burst Requst Timestamp",
|
|
|
|
"rtcp.app.poc1.request.ts",
|
|
|
|
FT_STRING,
|
|
|
|
BASE_NONE,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
2005-11-09 21:50:39 +00:00
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1_stt,
|
|
|
|
{
|
|
|
|
"Stop talking timer",
|
|
|
|
"rtcp.app.poc1.stt",
|
|
|
|
FT_UINT16,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1_partic,
|
|
|
|
{
|
|
|
|
"Number of participants",
|
|
|
|
"rtcp.app.poc1.participants",
|
|
|
|
FT_UINT16,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1_ssrc_granted,
|
|
|
|
{
|
|
|
|
"SSRC of client granted permission to talk",
|
|
|
|
"rtcp.app.poc1.ssrc.granted",
|
|
|
|
FT_UINT32,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
2004-05-31 19:35:53 +00:00
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1_last_pkt_seq_no,
|
2004-06-01 18:58:04 +00:00
|
|
|
{
|
2006-08-02 16:00:07 +00:00
|
|
|
"Sequence number of last RTP packet",
|
2004-05-31 19:35:53 +00:00
|
|
|
"rtcp.app.poc1.last.pkt.seq.no",
|
|
|
|
FT_UINT16,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
2006-08-02 16:00:07 +00:00
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1_ignore_seq_no,
|
|
|
|
{
|
|
|
|
"Ignore sequence number field",
|
|
|
|
"rtcp.app.poc1.ignore.seq.no",
|
|
|
|
FT_UINT16,
|
|
|
|
BASE_HEX,
|
|
|
|
NULL,
|
|
|
|
0x8000,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
2004-05-31 19:35:53 +00:00
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1_reason_code1,
|
2004-06-01 18:58:04 +00:00
|
|
|
{
|
2004-05-31 19:35:53 +00:00
|
|
|
"Reason code",
|
|
|
|
"rtcp.app.poc1.reason.code",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
2004-06-01 18:58:04 +00:00
|
|
|
VALS(rtcp_app_poc1_reason_code1_vals),
|
2004-05-31 19:35:53 +00:00
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1_reason1_phrase,
|
2004-06-01 18:58:04 +00:00
|
|
|
{
|
2004-05-31 19:35:53 +00:00
|
|
|
"Reason Phrase",
|
|
|
|
"rtcp.app.poc1.reason.phrase",
|
2006-08-21 11:41:32 +00:00
|
|
|
FT_UINT_STRING,
|
2004-05-31 19:35:53 +00:00
|
|
|
BASE_NONE,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1_reason_code2,
|
2004-06-01 18:58:04 +00:00
|
|
|
{
|
2004-05-31 19:35:53 +00:00
|
|
|
"Reason code",
|
|
|
|
"rtcp.app.poc1.reason.code",
|
|
|
|
FT_UINT16,
|
|
|
|
BASE_DEC,
|
|
|
|
VALS(rtcp_app_poc1_reason_code2_vals),
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2006-08-02 16:00:07 +00:00
|
|
|
&hf_rtcp_app_poc1_new_time_request,
|
2004-06-01 18:58:04 +00:00
|
|
|
{
|
2006-08-02 16:00:07 +00:00
|
|
|
"New time client can request (seconds)",
|
|
|
|
"rtcp.app.poc1.new.time.request",
|
2004-05-31 19:35:53 +00:00
|
|
|
FT_UINT16,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
2006-08-02 16:00:07 +00:00
|
|
|
"Time in seconds client can request for", HFILL
|
2004-05-31 19:35:53 +00:00
|
|
|
}
|
|
|
|
},
|
2005-08-22 16:26:29 +00:00
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1_ack_subtype,
|
|
|
|
{
|
|
|
|
"Subtype",
|
|
|
|
"rtcp.app.poc1.ack.subtype",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
VALS(rtcp_app_poc1_floor_cnt_type_vals),
|
|
|
|
0xf8,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1_ack_reason_code,
|
|
|
|
{
|
|
|
|
"Reason code",
|
|
|
|
"rtcp.app.poc1.ack.reason.code",
|
|
|
|
FT_UINT16,
|
|
|
|
BASE_DEC,
|
2005-11-09 21:50:39 +00:00
|
|
|
VALS(rtcp_app_poc1_reason_code_ack_vals),
|
2005-08-22 16:26:29 +00:00
|
|
|
0x07ff,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1_qsresp_priority,
|
|
|
|
{
|
|
|
|
"Priority",
|
|
|
|
"rtcp.app.poc1.qsresp.priority",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
VALS(rtcp_app_poc1_qsresp_priority_vals),
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1_qsresp_position,
|
|
|
|
{
|
2006-08-02 16:00:07 +00:00
|
|
|
"Position (number of clients ahead)",
|
2005-08-22 16:26:29 +00:00
|
|
|
"rtcp.app.poc1.qsresp.position",
|
|
|
|
FT_UINT16,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2006-08-02 16:00:07 +00:00
|
|
|
&hf_rtcp_app_poc1_conn_content[0],
|
2005-08-22 16:26:29 +00:00
|
|
|
{
|
|
|
|
"Identity of inviting client",
|
|
|
|
"rtcp.app.poc1.conn.content.a.id",
|
|
|
|
FT_BOOLEAN,
|
2006-08-02 16:00:07 +00:00
|
|
|
16,
|
2005-08-22 16:26:29 +00:00
|
|
|
NULL,
|
2006-08-02 16:00:07 +00:00
|
|
|
0x8000,
|
2005-08-22 16:26:29 +00:00
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2006-08-02 16:00:07 +00:00
|
|
|
&hf_rtcp_app_poc1_conn_content[1],
|
2005-08-22 16:26:29 +00:00
|
|
|
{
|
|
|
|
"Nick name of inviting client",
|
|
|
|
"rtcp.app.poc1.conn.content.a.dn",
|
|
|
|
FT_BOOLEAN,
|
2006-08-02 16:00:07 +00:00
|
|
|
16,
|
2005-08-22 16:26:29 +00:00
|
|
|
NULL,
|
2006-08-02 16:00:07 +00:00
|
|
|
0x4000,
|
2005-08-22 16:26:29 +00:00
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2006-08-02 16:00:07 +00:00
|
|
|
&hf_rtcp_app_poc1_conn_content[2],
|
2005-08-22 16:26:29 +00:00
|
|
|
{
|
|
|
|
"Session identity",
|
|
|
|
"rtcp.app.poc1.conn.content.sess.id",
|
|
|
|
FT_BOOLEAN,
|
2006-08-02 16:00:07 +00:00
|
|
|
16,
|
2005-08-22 16:26:29 +00:00
|
|
|
NULL,
|
2006-08-02 16:00:07 +00:00
|
|
|
0x2000,
|
2005-08-22 16:26:29 +00:00
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2006-08-02 16:00:07 +00:00
|
|
|
&hf_rtcp_app_poc1_conn_content[3],
|
2005-08-22 16:26:29 +00:00
|
|
|
{
|
|
|
|
"Group name",
|
|
|
|
"rtcp.app.poc1.conn.content.grp.dn",
|
|
|
|
FT_BOOLEAN,
|
2006-08-02 16:00:07 +00:00
|
|
|
16,
|
2005-08-22 16:26:29 +00:00
|
|
|
NULL,
|
2006-08-02 16:00:07 +00:00
|
|
|
0x1000,
|
2005-08-22 16:26:29 +00:00
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2006-08-02 16:00:07 +00:00
|
|
|
&hf_rtcp_app_poc1_conn_content[4],
|
2005-08-22 16:26:29 +00:00
|
|
|
{
|
|
|
|
"Group identity",
|
|
|
|
"rtcp.app.poc1.conn.content.grp.id",
|
|
|
|
FT_BOOLEAN,
|
2006-08-02 16:00:07 +00:00
|
|
|
16,
|
2005-08-22 16:26:29 +00:00
|
|
|
NULL,
|
2006-08-02 16:00:07 +00:00
|
|
|
0x0800,
|
2005-08-22 16:26:29 +00:00
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1_conn_session_type,
|
|
|
|
{
|
|
|
|
"Session type",
|
|
|
|
"rtcp.app.poc1.conn.session.type",
|
2005-08-24 20:34:15 +00:00
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
2005-08-22 16:26:29 +00:00
|
|
|
VALS(rtcp_app_poc1_conn_sess_type_vals),
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1_conn_add_ind_mao,
|
|
|
|
{
|
|
|
|
"Manual answer override",
|
|
|
|
"rtcp.app.poc1.conn.add.ind.mao",
|
|
|
|
FT_BOOLEAN,
|
|
|
|
8,
|
|
|
|
NULL,
|
|
|
|
0x80,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1_conn_sdes_items[0],
|
|
|
|
{
|
|
|
|
"Identity of inviting client",
|
|
|
|
"rtcp.app.poc1.conn.sdes.a.id",
|
|
|
|
FT_UINT_STRING,
|
|
|
|
BASE_NONE,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1_conn_sdes_items[1],
|
|
|
|
{
|
|
|
|
"Nick name of inviting client",
|
|
|
|
"rtcp.app.poc1.conn.sdes.a.dn",
|
|
|
|
FT_UINT_STRING,
|
|
|
|
BASE_NONE,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1_conn_sdes_items[2],
|
|
|
|
{
|
|
|
|
"Session identity",
|
|
|
|
"rtcp.app.poc1.conn.sdes.sess.id",
|
|
|
|
FT_UINT_STRING,
|
|
|
|
BASE_NONE,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1_conn_sdes_items[3],
|
|
|
|
{
|
|
|
|
"Group Name",
|
|
|
|
"rtcp.app.poc1.conn.sdes.grp.dn",
|
|
|
|
FT_UINT_STRING,
|
|
|
|
BASE_NONE,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_app_poc1_conn_sdes_items[4],
|
|
|
|
{
|
|
|
|
"Group identity",
|
|
|
|
"rtcp.app.poc1.conn.sdes.grp.id",
|
|
|
|
FT_UINT_STRING,
|
|
|
|
BASE_NONE,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_fsn,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"First sequence number",
|
|
|
|
"rtcp.nack.fsn",
|
|
|
|
FT_UINT16,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_blp,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Bitmask of following lost packets",
|
|
|
|
"rtcp.nack.blp",
|
|
|
|
FT_UINT16,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_padding_count,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Padding count",
|
|
|
|
"rtcp.padding.count",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2000-10-19 06:45:11 +00:00
|
|
|
&hf_rtcp_padding_data,
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
|
|
|
"Padding data",
|
|
|
|
"rtcp.padding.data",
|
|
|
|
FT_BYTES,
|
|
|
|
BASE_NONE,
|
|
|
|
NULL,
|
2000-10-19 06:45:11 +00:00
|
|
|
0x0,
|
2002-08-28 21:04:11 +00:00
|
|
|
"", HFILL
|
2000-10-19 06:45:11 +00:00
|
|
|
}
|
|
|
|
},
|
2006-05-29 18:16:23 +00:00
|
|
|
{
|
|
|
|
&hf_rtcp_profile_specific_extension,
|
2006-06-06 18:26:57 +00:00
|
|
|
{
|
|
|
|
"Profile-specific extension",
|
|
|
|
"rtcp.profile-specific-extension",
|
|
|
|
FT_BYTES,
|
|
|
|
BASE_NONE,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"Profile-specific extension", HFILL
|
|
|
|
}
|
|
|
|
},
|
2004-06-15 18:26:08 +00:00
|
|
|
{
|
|
|
|
&hf_rtcp_setup,
|
|
|
|
{
|
|
|
|
"Stream setup",
|
|
|
|
"rtcp.setup",
|
|
|
|
FT_STRING,
|
|
|
|
BASE_NONE,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"Stream setup, method and frame number", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_setup_frame,
|
|
|
|
{
|
|
|
|
"Setup frame",
|
|
|
|
"rtcp.setup-frame",
|
|
|
|
FT_FRAMENUM,
|
|
|
|
BASE_NONE,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"Frame that set up this stream", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_setup_method,
|
|
|
|
{
|
|
|
|
"Setup Method",
|
|
|
|
"rtcp.setup-method",
|
|
|
|
FT_STRING,
|
|
|
|
BASE_NONE,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"Method used to set up this stream", HFILL
|
|
|
|
}
|
2004-09-15 20:08:30 +00:00
|
|
|
},
|
|
|
|
{
|
2006-04-06 13:30:45 +00:00
|
|
|
&hf_rtcp_last_sr_timestamp_frame,
|
2004-09-15 20:08:30 +00:00
|
|
|
{
|
2006-04-06 13:30:45 +00:00
|
|
|
"Frame matching Last SR timestamp",
|
|
|
|
"rtcp.lsr-frame",
|
2004-09-15 20:08:30 +00:00
|
|
|
FT_FRAMENUM,
|
|
|
|
BASE_NONE,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
2006-04-06 13:30:45 +00:00
|
|
|
"Frame matching LSR field (used to calculate roundtrip delay)", HFILL
|
2004-09-15 20:08:30 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2006-04-06 13:30:45 +00:00
|
|
|
&hf_rtcp_roundtrip_delay,
|
2004-09-15 20:08:30 +00:00
|
|
|
{
|
|
|
|
"Roundtrip Delay(ms)",
|
2006-04-06 13:30:45 +00:00
|
|
|
"rtcp.roundtrip-delay",
|
2007-01-02 11:46:30 +00:00
|
|
|
FT_INT32,
|
2004-09-15 20:08:30 +00:00
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"Calculated roundtrip delay in ms", HFILL
|
|
|
|
}
|
2005-02-13 03:41:44 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_block_type,
|
|
|
|
{
|
|
|
|
"Type",
|
|
|
|
"rtcp.xr.bt",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
VALS(rtcp_xr_type_vals),
|
|
|
|
0x0,
|
|
|
|
"Block Type", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_block_specific,
|
|
|
|
{
|
|
|
|
"Type Specific",
|
|
|
|
"rtcp.xr.bs",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"Reserved", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_block_length,
|
|
|
|
{
|
|
|
|
"Length",
|
|
|
|
"rtcp.xr.bl",
|
|
|
|
FT_UINT16,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"Block Length", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_ssrc_discarded,
|
|
|
|
{
|
|
|
|
"Fraction discarded",
|
|
|
|
"rtcp.ssrc.discarded",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"Discard Rate", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_voip_metrics_burst_density,
|
|
|
|
{
|
|
|
|
"Burst Density",
|
|
|
|
"rtcp.xr.voipmetrics.burstdensity",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_voip_metrics_gap_density,
|
|
|
|
{
|
|
|
|
"Gap Density",
|
|
|
|
"rtcp.xr.voipmetrics.gapdensity",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_voip_metrics_burst_duration,
|
|
|
|
{
|
|
|
|
"Burst Duration(ms)",
|
|
|
|
"rtcp.xr.voipmetrics.burstduration",
|
|
|
|
FT_UINT16,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_voip_metrics_gap_duration,
|
|
|
|
{
|
|
|
|
"Gap Duration(ms)",
|
|
|
|
"rtcp.xr.voipmetrics.gapduration",
|
|
|
|
FT_UINT16,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_voip_metrics_rtdelay,
|
|
|
|
{
|
|
|
|
"Round Trip Delay(ms)",
|
|
|
|
"rtcp.xr.voipmetrics.rtdelay",
|
|
|
|
FT_UINT16,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_voip_metrics_esdelay,
|
|
|
|
{
|
|
|
|
"End System Delay(ms)",
|
|
|
|
"rtcp.xr.voipmetrics.esdelay",
|
|
|
|
FT_UINT16,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_voip_metrics_siglevel,
|
|
|
|
{
|
|
|
|
"Signal Level",
|
|
|
|
"rtcp.xr.voipmetrics.signallevel",
|
|
|
|
FT_INT8,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"Signal level of 127 indicates this parameter is unavailable", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_voip_metrics_noiselevel,
|
|
|
|
{
|
|
|
|
"Noise Level",
|
|
|
|
"rtcp.xr.voipmetrics.noiselevel",
|
|
|
|
FT_INT8,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"Noise level of 127 indicates this parameter is unavailable", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_voip_metrics_rerl,
|
|
|
|
{
|
|
|
|
"Residual Echo Return Loss",
|
|
|
|
"rtcp.xr.voipmetrics.rerl",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_voip_metrics_gmin,
|
|
|
|
{
|
|
|
|
"Gmin",
|
|
|
|
"rtcp.xr.voipmetrics.gmin",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_voip_metrics_rfactor,
|
|
|
|
{
|
|
|
|
"R Factor",
|
|
|
|
"rtcp.xr.voipmetrics.rfactor",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"R Factor is in the range of 0 to 100; 127 indicates this parameter is unavailable", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_voip_metrics_extrfactor,
|
|
|
|
{
|
|
|
|
"External R Factor",
|
|
|
|
"rtcp.xr.voipmetrics.extrfactor",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"R Factor is in the range of 0 to 100; 127 indicates this parameter is unavailable", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_voip_metrics_moslq,
|
|
|
|
{
|
|
|
|
"MOS - Listening Quality",
|
|
|
|
"rtcp.xr.voipmetrics.moslq",
|
|
|
|
FT_FLOAT,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"MOS is in the range of 1 to 5; 127 indicates this parameter is unavailable", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_voip_metrics_moscq,
|
|
|
|
{
|
|
|
|
"MOS - Conversational Quality",
|
|
|
|
"rtcp.xr.voipmetrics.moscq",
|
|
|
|
FT_FLOAT,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"MOS is in the range of 1 to 5; 127 indicates this parameter is unavailable", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_voip_metrics_plc,
|
|
|
|
{
|
|
|
|
"Packet Loss Conealment Algorithm",
|
|
|
|
"rtcp.xr.voipmetrics.plc",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
VALS(rtcp_xr_plc_algo_vals),
|
|
|
|
0xC0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_voip_metrics_jbadaptive,
|
|
|
|
{
|
|
|
|
"Adaptive Jitter Buffer Algorithm",
|
|
|
|
"rtcp.xr.voipmetrics.jba",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
VALS(rtcp_xr_jb_adaptive_vals),
|
|
|
|
0x30,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_voip_metrics_jbrate,
|
|
|
|
{
|
|
|
|
"Jitter Buffer Rate",
|
|
|
|
"rtcp.xr.voipmetrics.jbrate",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0F,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_voip_metrics_jbnominal,
|
|
|
|
{
|
|
|
|
"Nominal Jitter Buffer Size",
|
|
|
|
"rtcp.xr.voipmetrics.jbnominal",
|
|
|
|
FT_UINT16,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_voip_metrics_jbmax,
|
|
|
|
{
|
|
|
|
"Maximum Jitter Buffer Size",
|
|
|
|
"rtcp.xr.voipmetrics.jbmax",
|
|
|
|
FT_UINT16,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_voip_metrics_jbabsmax,
|
|
|
|
{
|
|
|
|
"Absolute Maximum Jitter Buffer Size",
|
|
|
|
"rtcp.xr.voipmetrics.jbabsmax",
|
|
|
|
FT_UINT16,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_thinning,
|
|
|
|
{
|
|
|
|
"Thinning factor",
|
|
|
|
"rtcp.xr.tf",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0F,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_stats_loss_flag,
|
|
|
|
{
|
|
|
|
"Loss Report Flag",
|
|
|
|
"rtcp.xr.stats.lrflag",
|
|
|
|
FT_BOOLEAN,
|
|
|
|
8,
|
|
|
|
NULL,
|
|
|
|
0x80,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_stats_dup_flag,
|
|
|
|
{
|
|
|
|
"Duplicates Report Flag",
|
|
|
|
"rtcp.xr.stats.dupflag",
|
|
|
|
FT_BOOLEAN,
|
|
|
|
8,
|
|
|
|
NULL,
|
|
|
|
0x40,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_stats_jitter_flag,
|
|
|
|
{
|
|
|
|
"Jitter Report Flag",
|
|
|
|
"rtcp.xr.stats.jitterflag",
|
|
|
|
FT_BOOLEAN,
|
|
|
|
8,
|
|
|
|
NULL,
|
|
|
|
0x20,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_stats_ttl,
|
|
|
|
{
|
|
|
|
"TTL or Hop Limit Flag",
|
|
|
|
"rtcp.xr.stats.ttl",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
VALS(rtcp_xr_ip_ttl_vals),
|
|
|
|
0x18,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_endseq,
|
|
|
|
{
|
|
|
|
"End Sequence Number",
|
|
|
|
"rtcp.xr.endseq",
|
|
|
|
FT_UINT16,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_beginseq,
|
|
|
|
{
|
|
|
|
"Begin Sequence Number",
|
|
|
|
"rtcp.xr.beginseq",
|
|
|
|
FT_UINT16,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_stats_lost,
|
|
|
|
{
|
|
|
|
"Lost Packets",
|
|
|
|
"rtcp.xr.stats.lost",
|
|
|
|
FT_UINT32,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_stats_dups,
|
|
|
|
{
|
|
|
|
"Duplicate Packets",
|
|
|
|
"rtcp.xr.stats.dups",
|
|
|
|
FT_UINT32,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_stats_minjitter,
|
|
|
|
{
|
|
|
|
"Minimum Jitter",
|
|
|
|
"rtcp.xr.stats.minjitter",
|
|
|
|
FT_UINT32,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_stats_maxjitter,
|
|
|
|
{
|
|
|
|
"Maximum Jitter",
|
|
|
|
"rtcp.xr.stats.maxjitter",
|
|
|
|
FT_UINT32,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_stats_meanjitter,
|
|
|
|
{
|
|
|
|
"Mean Jitter",
|
|
|
|
"rtcp.xr.stats.meanjitter",
|
|
|
|
FT_UINT32,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_stats_devjitter,
|
|
|
|
{
|
|
|
|
"Standard Deviation of Jitter",
|
|
|
|
"rtcp.xr.stats.devjitter",
|
|
|
|
FT_UINT32,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_stats_minttl,
|
|
|
|
{
|
|
|
|
"Minimum TTL or Hop Limit",
|
|
|
|
"rtcp.xr.stats.minttl",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_stats_maxttl,
|
|
|
|
{
|
|
|
|
"Maximum TTL or Hop Limit",
|
|
|
|
"rtcp.xr.stats.maxttl",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_stats_meanttl,
|
|
|
|
{
|
|
|
|
"Mean TTL or Hop Limit",
|
|
|
|
"rtcp.xr.stats.meanttl",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_stats_devttl,
|
|
|
|
{
|
|
|
|
"Standard Deviation of TTL",
|
|
|
|
"rtcp.xr.stats.devttl",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_lrr,
|
|
|
|
{
|
|
|
|
"Last RR timestamp",
|
|
|
|
"rtcp.xr.lrr",
|
|
|
|
FT_UINT32,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_xr_dlrr,
|
|
|
|
{
|
|
|
|
"Delay since last RR timestamp",
|
|
|
|
"rtcp.xr.dlrr",
|
|
|
|
FT_UINT32,
|
|
|
|
BASE_DEC,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"", HFILL
|
|
|
|
}
|
|
|
|
},
|
2006-06-06 18:26:57 +00:00
|
|
|
{
|
|
|
|
&hf_rtcp_length_check,
|
|
|
|
{
|
|
|
|
"RTCP frame length check",
|
|
|
|
"rtcp.length_check",
|
|
|
|
FT_BOOLEAN,
|
|
|
|
BASE_NONE,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"RTCP frame length check", HFILL
|
|
|
|
}
|
|
|
|
},
|
2007-02-24 17:31:55 +00:00
|
|
|
{
|
|
|
|
&hf_rtcp_rtpfb_fmt,
|
|
|
|
{
|
|
|
|
"RTCP Feedback message type (FMT)",
|
|
|
|
"rtcp.rtpfb.fmt",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
VALS(rtcp_rtpfb_fmt_vals),
|
|
|
|
0x15,
|
|
|
|
"RTCP Feedback message type (FMT)", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_psfb_fmt,
|
|
|
|
{
|
|
|
|
"RTCP Feedback message type (FMT)",
|
|
|
|
"rtcp.psfb.fmt",
|
|
|
|
FT_UINT8,
|
|
|
|
BASE_DEC,
|
|
|
|
VALS(rtcp_psfb_fmt_vals),
|
|
|
|
0x15,
|
|
|
|
"RTCP Feedback message type (FMT)", HFILL
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
&hf_rtcp_fci,
|
|
|
|
{
|
|
|
|
"Feedback Control Information (FCI)",
|
|
|
|
"rtcp.fci",
|
|
|
|
FT_BYTES,
|
|
|
|
BASE_NONE,
|
|
|
|
NULL,
|
|
|
|
0x0,
|
|
|
|
"Feedback Control Information (FCI)", HFILL
|
|
|
|
}
|
|
|
|
},
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2007-02-24 17:31:55 +00:00
|
|
|
};
|
2002-08-28 21:04:11 +00:00
|
|
|
static gint *ett[] =
|
2000-10-19 06:45:11 +00:00
|
|
|
{
|
2000-04-21 01:45:58 +00:00
|
|
|
&ett_rtcp,
|
2000-10-19 06:45:11 +00:00
|
|
|
&ett_ssrc,
|
|
|
|
&ett_ssrc_item,
|
|
|
|
&ett_ssrc_ext_high,
|
|
|
|
&ett_sdes,
|
|
|
|
&ett_sdes_item,
|
2004-05-31 19:35:53 +00:00
|
|
|
&ett_PoC1,
|
2004-09-15 20:08:30 +00:00
|
|
|
&ett_rtcp_setup,
|
2005-02-13 03:41:44 +00:00
|
|
|
&ett_rtcp_roundtrip_delay,
|
|
|
|
&ett_xr_block,
|
|
|
|
&ett_xr_block_contents,
|
|
|
|
&ett_xr_ssrc,
|
2005-08-22 16:26:29 +00:00
|
|
|
&ett_xr_loss_chunk,
|
|
|
|
&ett_poc1_conn_contents
|
2000-04-21 01:45:58 +00:00
|
|
|
};
|
|
|
|
|
2004-06-15 18:26:08 +00:00
|
|
|
module_t *rtcp_module;
|
2000-10-19 06:45:11 +00:00
|
|
|
|
2001-01-03 06:56:03 +00:00
|
|
|
proto_rtcp = proto_register_protocol("Real-time Transport Control Protocol",
|
|
|
|
"RTCP", "rtcp");
|
2000-10-19 06:45:11 +00:00
|
|
|
proto_register_field_array(proto_rtcp, hf, array_length(hf));
|
2000-04-21 01:45:58 +00:00
|
|
|
proto_register_subtree_array(ett, array_length(ett));
|
2000-10-19 06:45:11 +00:00
|
|
|
|
2001-09-08 00:43:51 +00:00
|
|
|
register_dissector("rtcp", dissect_rtcp, proto_rtcp);
|
|
|
|
|
2004-06-15 18:26:08 +00:00
|
|
|
rtcp_module = prefs_register_protocol(proto_rtcp, NULL);
|
|
|
|
|
|
|
|
prefs_register_bool_preference(rtcp_module, "show_setup_info",
|
|
|
|
"Show stream setup information",
|
|
|
|
"Where available, show which protocol and frame caused "
|
|
|
|
"this RTCP stream to be created",
|
|
|
|
&global_rtcp_show_setup_info);
|
|
|
|
|
2004-08-16 05:54:01 +00:00
|
|
|
prefs_register_bool_preference(rtcp_module, "heuristic_rtcp",
|
|
|
|
"Try to decode RTCP outside of conversations ",
|
2004-09-15 20:08:30 +00:00
|
|
|
"If call control SIP/H.323/RTSP/.. messages are missing in the trace, "
|
|
|
|
"RTCP isn't decoded without this",
|
2004-08-16 05:54:01 +00:00
|
|
|
&global_rtcp_heur);
|
|
|
|
|
2004-09-15 20:08:30 +00:00
|
|
|
prefs_register_bool_preference(rtcp_module, "show_roundtrip_calculation",
|
2004-09-20 19:22:10 +00:00
|
|
|
"Show relative roundtrip calculations",
|
2004-09-15 20:08:30 +00:00
|
|
|
"Try to work out network delay by comparing time between packets "
|
|
|
|
"as captured and delays as seen by endpoint",
|
|
|
|
&global_rtcp_show_roundtrip_calculation);
|
|
|
|
|
|
|
|
prefs_register_uint_preference(rtcp_module, "roundtrip_min_threshhold",
|
2007-01-02 11:46:30 +00:00
|
|
|
"Minimum roundtrip calculation to report (ms)",
|
|
|
|
"Minimum (absolute) calculated roundtrip delay time in milliseconds that "
|
2004-09-15 20:08:30 +00:00
|
|
|
"should be reported",
|
2006-10-20 14:05:18 +00:00
|
|
|
10, &global_rtcp_show_roundtrip_calculation_minimum);
|
2004-09-15 20:08:30 +00:00
|
|
|
|
|
|
|
|
2000-04-21 01:45:58 +00:00
|
|
|
}
|
Add tables of "conversation" dissectors, which are associated with
particular protocols, and which keep track of all dissectors that could
be associated with conversations using those particular protocols - for
example, the RTP and RTCP dissectors could be assigned to UDP
conversations.
This is for future use with UI features allowing the dissector for a
given conversation to be set from the UI, to allow
1) conversations between two ports, both of which have
dissectors associated with them, that have been given to the
wrong dissector to be given to the right dissector;
2) conversations between two ports, neither of which have
dissectors associated with them, to be given to a dissector
(RTP and RTCP, for example, typically run on random ports,
and if you don't have, in a capture, traffic that would say
"OK, traffic between these two hosts and ports will be RTP
traffic", you may have to tell Ethereal explicitly what
protocol the conversation is).
svn path=/trunk/; revision=2848
2001-01-09 05:53:21 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
proto_reg_handoff_rtcp(void)
|
|
|
|
{
|
|
|
|
/*
|
Get rid of the lists of conversation dissectors; instead, have a
dissector table contain both a hash table, to use to look up port
numbers to find a dissector, and a list of all dissectors that *could*
be assigned to ports in that hash table, to be used by user interface
code.
Make the "Decode As" dialog box code use that.
Also make it *not* let you choose whether to set the dissector for both
the UDP and TCP versions of a port; some protocols run only atop TCP,
some run only atop UDP, and even those that can run atop both may have
different dissector handles to use over TCP and UDP, so handling a
single merged list would be a mess. (If the user is setting the
dissector for a TCP port, only those protocols that Ethereal can handle
over TCP should be listed; if the user is setting the dissector for a
UDP port, only those protocols that Ethereal can handle over TCP should
be listed; if the user is setting a dissector for both, only those
protocols that Ethereal can handle over *both* TCP *and* UDP should be
listed, *and* there needs to be a way to let the "Decode As" code get
both the TCP handle *and* the UDP handle and use the right ones. If
somebody really wants that, they need to implement all of the above if
they want the code to be correct.)
Fix the code that handles setting the dissection for the IP protocol
number to correctly update the lists of protocols being dissected as TCP
and as UDP; the code before this change wasn't updating the single such
list to add new protocols.
svn path=/trunk/; revision=4311
2001-12-03 08:47:31 +00:00
|
|
|
* Register this dissector as one that can be selected by a
|
|
|
|
* UDP port number.
|
Add tables of "conversation" dissectors, which are associated with
particular protocols, and which keep track of all dissectors that could
be associated with conversations using those particular protocols - for
example, the RTP and RTCP dissectors could be assigned to UDP
conversations.
This is for future use with UI features allowing the dissector for a
given conversation to be set from the UI, to allow
1) conversations between two ports, both of which have
dissectors associated with them, that have been given to the
wrong dissector to be given to the right dissector;
2) conversations between two ports, neither of which have
dissectors associated with them, to be given to a dissector
(RTP and RTCP, for example, typically run on random ports,
and if you don't have, in a capture, traffic that would say
"OK, traffic between these two hosts and ports will be RTP
traffic", you may have to tell Ethereal explicitly what
protocol the conversation is).
svn path=/trunk/; revision=2848
2001-01-09 05:53:21 +00:00
|
|
|
*/
|
2001-12-03 04:00:26 +00:00
|
|
|
rtcp_handle = find_dissector("rtcp");
|
Get rid of the lists of conversation dissectors; instead, have a
dissector table contain both a hash table, to use to look up port
numbers to find a dissector, and a list of all dissectors that *could*
be assigned to ports in that hash table, to be used by user interface
code.
Make the "Decode As" dialog box code use that.
Also make it *not* let you choose whether to set the dissector for both
the UDP and TCP versions of a port; some protocols run only atop TCP,
some run only atop UDP, and even those that can run atop both may have
different dissector handles to use over TCP and UDP, so handling a
single merged list would be a mess. (If the user is setting the
dissector for a TCP port, only those protocols that Ethereal can handle
over TCP should be listed; if the user is setting the dissector for a
UDP port, only those protocols that Ethereal can handle over TCP should
be listed; if the user is setting a dissector for both, only those
protocols that Ethereal can handle over *both* TCP *and* UDP should be
listed, *and* there needs to be a way to let the "Decode As" code get
both the TCP handle *and* the UDP handle and use the right ones. If
somebody really wants that, they need to implement all of the above if
they want the code to be correct.)
Fix the code that handles setting the dissection for the IP protocol
number to correctly update the lists of protocols being dissected as TCP
and as UDP; the code before this change wasn't updating the single such
list to add new protocols.
svn path=/trunk/; revision=4311
2001-12-03 08:47:31 +00:00
|
|
|
dissector_add_handle("udp.port", rtcp_handle);
|
2004-08-16 05:54:01 +00:00
|
|
|
|
|
|
|
heur_dissector_add( "udp", dissect_rtcp_heur, proto_rtcp);
|
Add tables of "conversation" dissectors, which are associated with
particular protocols, and which keep track of all dissectors that could
be associated with conversations using those particular protocols - for
example, the RTP and RTCP dissectors could be assigned to UDP
conversations.
This is for future use with UI features allowing the dissector for a
given conversation to be set from the UI, to allow
1) conversations between two ports, both of which have
dissectors associated with them, that have been given to the
wrong dissector to be given to the right dissector;
2) conversations between two ports, neither of which have
dissectors associated with them, to be given to a dissector
(RTP and RTCP, for example, typically run on random ports,
and if you don't have, in a capture, traffic that would say
"OK, traffic between these two hosts and ports will be RTP
traffic", you may have to tell Ethereal explicitly what
protocol the conversation is).
svn path=/trunk/; revision=2848
2001-01-09 05:53:21 +00:00
|
|
|
}
|