aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-rtp.c
AgeCommit message (Collapse)AuthorFilesLines
2009-09-06Rename address_to_str() to ep_address_to_str() because:krj1-10/+10
1) This indicates that the string has ephemeral lifetime 2) More consistent with its existing seasonal counterpart, se_address_to_str(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29747 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-29Replace "repeated blurb" by NULL in two cases;wmeier1-3/+4
Reformat a long line. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29606 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-16Switch a bunch of dissectors over to using tvb_new_subset_remaining()krj1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29446 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_set_str (COL_INFO/COL_PROTOCOL) with col_checkkrj1-11/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29345 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-07Changed flags_set_truth -> tfs_set_notsetstig1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28989 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-18From Kovarththanan Rajaratnam via bug 3548:stig1-24/+24
(1) Trailing/leading spaces are removed from 'name's/'blurb's (2) Duplicate 'blurb's are replaced with NULL (3) Empty ("") 'blurb's are replaced with NULL (4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME, FT_PROTOCOL, FT_STRING and FT_STRINGZ field types (5) Only allow non-zero value for 'display' if 'bitmask' is non-zero git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28770 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-25From Michael Lum:jake1-2/+2
Some of the hard-coded 96 and 127 values representing dynamic payloads were changed to use #defines from rtp_pt.h but not all. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28466 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-20From Alex Lindberg via bug 3094:gerald1-29/+101
Added descriptions for dynamic RTP Payload types. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28433 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-19Get info about media type(Video or not) a first step towards usage in rtp ↵etxrab1-3/+11
statistics. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28415 f5534014-38df-0310-8fa8-9805f1628bb7
2009-04-13Section 11 of RFC 3550, "RTP over Network and Transport Protocols",guy1-2/+2
speaks only of destination ports; in the heuristic dissectors, don't check whether the source port is even or odd. The total length of an RTCP packet is in tvb_reported_length(), not tvb_length() - the latter includes only the actual captured data, which might be cut short by a snapshot length. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28041 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-29More size_t casts.etxrab1-9/+9
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27887 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-22(Minor) Change a g_snprint to a g_strlcpy;wmeier1-3/+2
Also: Fix an off-by-1 inadvertantly introduced a while back. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27820 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-06Adjust some indentation; reformat a line or two.wmeier1-18/+20
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27628 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-12dissect_rtp_heur: prevent a 'false positive' when trying stun dissection.wmeier1-4/+6
Specifically: when dissect_rtp_heur calls the stun dissector: - Don't do a 'data' dissection if stun dissection fails; (ie: use call_dissector_only instead of call_dissector). - return the stun dissector success/fail status to the caller of dissect_rtp_heur; (Done by registering and calling the heuristic version of the stun dissector). Also: use call_dissector_only for each of the dissectors called by dissect_rtp_heur (altho it really makes no difference at this point except for the call to the stun dissector). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27443 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-19Back out r27047 and r27053.gerald1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27062 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-18Update calls to proto_tree_add_bytes_format to reflect r27047.gerald1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27053 f5534014-38df-0310-8fa8-9805f1628bb7
2008-10-13Back out the expert info - it's wrong.etxrab1-16/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26441 f5534014-38df-0310-8fa8-9805f1628bb7
2008-10-11Add an expert item if src port = dst port.etxrab1-2/+17
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26410 f5534014-38df-0310-8fa8-9805f1628bb7
2008-09-25From Sagar Pai:jake1-9/+20
This is a dissector for ZRTP, the Zfone projects secure media protocol, developed by Phil Zimmermann. It is updated to the latest IETF draft draft-zimmermann-avt-zrtp-08. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26274 f5534014-38df-0310-8fa8-9805f1628bb7
2008-09-15Fix so pkt_ccc port pref works; proto_reg_handoff's: gen'l cleanup.wmeier1-26/+35
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26205 f5534014-38df-0310-8fa8-9805f1628bb7
2008-08-01From stéphane bryant:etxrab1-0/+1
STUN, STUN2 and TURN dissection enhancements. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25895 f5534014-38df-0310-8fa8-9805f1628bb7
2008-07-11prefs_register_uint_preference() takes as its argument a pointer to a uint, ↵morriss1-7/+7
not a pointer to a gboolean. Similarly prefs_register_enum_preference takes a pointer to a gint, not a guint. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25710 f5534014-38df-0310-8fa8-9805f1628bb7
2008-07-11In a call to proto_tree_add_bytes_format(): actually pass a pointer to the ↵morriss1-34/+34
start of the bytes git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25709 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-27From Alon Tal:jake1-1/+4
RTP header extensions that are longer than 4 bytes (rtp.ext.len > 1) get dissected incorrectly. The first 4 bytes of the header extension are repeated rtp.ext.len times, and the remaining bytes are ignored. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25184 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-23From Peter Fuller:jake1-5/+5
If a UDP packet is submitted to the RTP heuristic dissector with either odd src or dst ports, the heuristic will correctly return FALSE. However, that interferes with the next few lines of code that can potentially treat version 0 RTP packets as either STUN or T38 depending on preference settings. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25150 f5534014-38df-0310-8fa8-9805f1628bb7
2008-03-07Adjust the RTP heuristic dissector:martinm1-15/+21
- loosen by accpepting dynamic payload type range - tighten by only accepting even-numbered ports git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24583 f5534014-38df-0310-8fa8-9805f1628bb7
2008-03-01Rewrote to use g_strlcpy and g_strlcat.stig1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24525 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-25Avoid misreporting of cryto state of RTP payload.jake1-4/+7
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24461 f5534014-38df-0310-8fa8-9805f1628bb7
2008-01-09#ifdef DEBUG around left-over printfs. Should these just be deleted?martinm1-0/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24045 f5534014-38df-0310-8fa8-9805f1628bb7
2008-01-09more sophisticated H245 OLC handling focusing on more reliable T.38 ↵kukosa1-0/+2
establishment git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24043 f5534014-38df-0310-8fa8-9805f1628bb7
2008-01-06Fix for bug 2026:jake1-18/+10
Clean up RTP header extension code. Remove duplicate raw presentation. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24016 f5534014-38df-0310-8fa8-9805f1628bb7
2007-12-23From Andreas St:jake1-0/+15
In our communication systems, we make use of the RTP header extension to encode signalling information in the form of a bit mask. To improve our debugging, we extended the default RTP dissector to call back any subdissector registering for a particular RTP payload type string. This allows to render the value of the header extension in a different, more flexible way compared to the default numeric representation, such as in form of a subtree. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23943 f5534014-38df-0310-8fa8-9805f1628bb7
2007-12-12- register RFC 2198 as RTP dynamic payload type "red"kukosa1-5/+22
- display dynamic payload type names inside RFC 2198 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23846 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-02display SRTP isntead of RTP if stream is established like a SRTPkukosa1-1/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23337 f5534014-38df-0310-8fa8-9805f1628bb7
2007-09-13Allow for full size setup method name.jake1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22863 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-21From Neil Piercy:jake1-6/+95
This patch set provides a an API for out of band signalling protocols to register flows as SRTP/SRTCP using extended versions of the existing rt(c)p_add_address functions. At present the encrypted portions of the payloads are simply skipped, and the auth tags etc added as fields. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22562 f5534014-38df-0310-8fa8-9805f1628bb7
2007-07-23Make contributing items and hdr extensions proper fields.martinm1-3/+33
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22382 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-31From Lars Ruoff:sfisher1-4/+4
find attached several trivial diffs for viewing RTP SSRC values in Hex rather than Dec at various places in the UI. Also includes change from BASE_DEC to BASE_HEX_DEC for corresponding RTP and RTCP dissector header fields. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22017 f5534014-38df-0310-8fa8-9805f1628bb7
2007-02-23From Charles Lepple:etxrab1-2/+2
When dissecting RTP packets with a H.263 payload, the "Mark" flag runs into the Mode A/B flag in the info column. From me abriviate Payload type to PT. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20899 f5534014-38df-0310-8fa8-9805f1628bb7
2007-02-22From Richard van der Hoff:etxrab1-4/+5
Along with this bug, identified by Mark, there is another problem, in that one of the chunks of my earlier patch seemed to get missed off when Anders committed it. This won't break anything yet, as the H.223-over-RTP dissection hasn't landed on trunk yet, but it will cause all sorts of nasties when it does. Here is a new patch, against current trunk, which should fix Mark's bug, my bug, and a comment typo. And a patch wich improves the general robustness of the h.223 dissector (making it less likely to crash on malformed data). Hopefully this also fixes a bug raised by Fabio Sguanci a few weeks ago. Fabio: I think a better way to fix the problem is to stop the dissector crashing when it finds a malformed PDU, so that it just treats the first pdu as malformed; there is then no need to special-case it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20898 f5534014-38df-0310-8fa8-9805f1628bb7
2007-02-21From Richard van der Hoff:etxrab1-9/+411
Here's a patch which adds an option enabling subdissectors to request defragmentation of packets over RTP streams, using the pinfo->desegment_{len,offset} API. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20891 f5534014-38df-0310-8fa8-9805f1628bb7
2007-02-16Make RFC2198 pt preference work (wasn't callingmartinm1-9/+19
proto_reg_handoff_rtp when prefs changed). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20822 f5534014-38df-0310-8fa8-9805f1628bb7
2007-02-01Don't call subdissector for dynamic PT based on PT number if conversation ↵etxrab1-2/+12
info exists. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20678 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-02Set correct length for extensions rootmartinm1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19393 f5534014-38df-0310-8fa8-9805f1628bb7
2006-06-27the 1st very simple attempt to support RFC 2198 Redundant Audio Datakukosa1-1/+138
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18581 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21change a whole bunch of ethereal into wiresharksahlberg1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18196 f5534014-38df-0310-8fa8-9805f1628bb7
2006-02-09ntp_fmt_ts() doesn't take two arguments any more.gerald1-7/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17231 f5534014-38df-0310-8fa8-9805f1628bb7
2006-02-09Add support for PacketCable CCC-encapsulated RTP data, described ingerald1-1/+114
PKT-SP-ESP1.5-I01-050128. Sponsored by CableLabs. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17230 f5534014-38df-0310-8fa8-9805f1628bb7
2006-01-31Fix description of version0_type, now that it also supports T.38.guy1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17130 f5534014-38df-0310-8fa8-9805f1628bb7
2006-01-29Add an option to dissect purported RTP packets with a version number ofguy1-0/+12
0 as T.38 rather than STUN. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17116 f5534014-38df-0310-8fa8-9805f1628bb7