Commit graph

82 commits

Author SHA1 Message Date
Jaap Keuter
7acc2762e3 Fix for bug 2778:
Bye string is "null padded", not "null terminated". Change code to test for that fact.

svn path=/trunk/; revision=25964
2008-08-08 21:22:33 +00:00
Anders Broman
47aca4c30f From stéphane bryant:
STUN, STUN2 and TURN dissection enhancements.

svn path=/trunk/; revision=25895
2008-08-01 15:11:06 +00:00
Bill Meier
b3aa52f573 Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25307
2008-05-15 12:54:27 +00:00
Martin Mathieson
693291377e Stop using deprecated functions identified by checkAPIs script.
svn path=/trunk/; revision=25258
2008-05-08 14:01:31 +00:00
Stig Bjørlykke
5d7dee8953 From Mike Davies (bug 2454):
Include support for RTCP extended reports containing block type 8
as defined in RFC5093.

svn path=/trunk/; revision=24963
2008-04-12 22:20:23 +00:00
Stig Bjørlykke
188543e98d Added some casts from double to float.
svn path=/trunk/; revision=24877
2008-04-10 18:22:59 +00:00
Jaap Keuter
9afe93024a Fix for bug 2440 and 2187:
Properly promote the result to a float by dividing by a float i.s.o. elaborate casts

svn path=/trunk/; revision=24874
2008-04-10 06:47:31 +00:00
Anders Broman
63c5c71cf8 Remove:
#ifdef NEED_G_ASCII_STRCASECMP_H
#include "g_ascii_strcasecmp.h"
#endif

svn path=/trunk/; revision=24859
2008-04-09 05:36:08 +00:00
Stig Bjørlykke
b091b8d26c Rewrote to use g_strlcpy and g_strlcat.
svn path=/trunk/; revision=24525
2008-03-01 17:23:39 +00:00
Martin Mathieson
4a925e9cd9 Fix bitmasks for feedback message type fields.
Fixes bug 2312.

svn path=/trunk/; revision=24498
2008-02-28 16:11:55 +00:00
Ashok Narayanan
51c90d25e6 Added RTCP Feedback NAK PLI dissectors.
svn path=/trunk/; revision=24336
2008-02-15 17:18:29 +00:00
Jaap Keuter
3bca993c0b Fix for bug 2187.
Don't cast so rigorously that you loose the mantissa.

svn path=/trunk/; revision=24062
2008-01-10 22:27:28 +00:00
Martin Mathieson
d786333ab2 #ifdef DEBUG around left-over printfs. Should these just be deleted?
svn path=/trunk/; revision=24045
2008-01-09 16:21:03 +00:00
Tomas Kukosa
27a531e06a more sophisticated H245 OLC handling focusing on more reliable T.38 establishment
svn path=/trunk/; revision=24043
2008-01-09 13:30:31 +00:00
Martin Mathieson
4dd5de365b Explicitly check for missing NULL terminator on RTCP BYE reason string (this bug has been seen on 2 stacks now...).
Fixes bug 2180.

svn path=/trunk/; revision=24042
2008-01-09 12:39:14 +00:00
Guy Harris
9c89cdaaa3 strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp() delenda
est.  Use g_ascii_strcasecmp() and g_ascii_strncasecmp(), and supply our
own versions if they're missing from GLib (as is the case with GLib
1.x).

In the code to build the list of named fields for Diameter, don't use
g_strdown(); do our own g_ascii_-style upper-case to lower-case mapping
in the hash function and use g_ascii_strcasecmp() in the compare
function.

We do this because there is no guarantee that toupper(), tolower(), and
functions that use them will, for example, map between "I" and "i" in
all locales; in Turkish locales, for example, there are, in both
upper case and lower case, versions of "i" with and without a dot, and
the upper-case version of "i" is "I"-with-a-dot and the lower-case
version of "I" is "i"-without-a-dot.  This causes strings that should
match not to match.

This finishes fixing bug 2010 - an earlier checkin prevented the crash
(as there are other ways to produce the same crash, e.g. a bogus
dictionary.xml file), but didn't fix the case-insensitive string matching.

svn path=/trunk/; revision=23623
2007-11-27 18:52:51 +00:00
Richard van der Hoff
25f64f9d27 fix a signedness-in-comparison warning
svn path=/trunk/; revision=22569
2007-08-21 20:32:22 +00:00
Jaap Keuter
7b593acb18 From Neil Piercy:
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.

svn path=/trunk/; revision=22562
2007-08-21 07:23:34 +00:00
Stephen Fisher
2745f06d96 From Lars Ruoff:
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.


svn path=/trunk/; revision=22017
2007-05-31 18:41:25 +00:00
Martin Mathieson
8e98967075 When reporting roundtrip delay, show delay since timestamp of LSR frame.
svn path=/trunk/; revision=21985
2007-05-29 14:37:34 +00:00
Martin Mathieson
198f8f8185 Fix problem from previous commit (confused myself with FT_UINT_STRING needing length of 1 when adding to tree...), and show display-name in info column.
svn path=/trunk/; revision=21790
2007-05-15 15:26:13 +00:00
Martin Mathieson
dc9745267b TBCP fixes:
- more careful checking of packet length
- skip padding at end of SDES items block
- formatting

svn path=/trunk/; revision=21789
2007-05-15 14:49:26 +00:00
Sebastien Tandel
be81a9cabb fix gcc warning
svn path=/trunk/; revision=21416
2007-04-13 20:38:19 +00:00
Ulf Lamping
411249419d fix some more warnings (type casts)
svn path=/trunk/; revision=21141
2007-03-23 00:51:21 +00:00
Martin Mathieson
09f3f70a7a Try to squash a warning seen by win32 buildbot
svn path=/trunk/; revision=21074
2007-03-20 17:20:36 +00:00
Martin Mathieson
262de6677a Append ms calculation to DLSR field.
Show number of bytes derived from length field.

svn path=/trunk/; revision=20982
2007-03-06 13:37:39 +00:00
Anders Broman
7a615b9729 Add basic support for RFC4585.
svn path=/trunk/; revision=20916
2007-02-24 17:31:55 +00:00
Martin Mathieson
b9f69234ad Check in trivial changes before generating a big diff...
svn path=/trunk/; revision=20304
2007-01-04 13:25:25 +00:00
Martin Mathieson
7e2db474c8 Fix for bug 1279 (Negative values for RTCP round trip delay
cannot be stored in guint32).
- Makes the threshold preference value an absolute value.
- There is now a separate expert info item for -ve roundtrips

N.B. There is still a problem with filtering -ve values on this
FT_INT32 field, i.e. rtcp.roundtrip-delay < 0 never matches with
frames that it should (even if rtcp.roundtrip-delay == -3 can
be used to match specific frames...).

svn path=/trunk/; revision=20264
2007-01-02 11:46:30 +00:00
Martin Mathieson
7a84ccbe0f TBCP changes:
- Fix 'ignored' flag that wasn't wide enough to take result
- Use FP_UINT_STRING in a couple of places

svn path=/trunk/; revision=20183
2006-12-21 17:05:42 +00:00
Martin Mathieson
9cc8175f5f Use value_string for info column. Also use fences to handle compound packets
svn path=/trunk/; revision=19872
2006-11-09 16:46:58 +00:00
Martin Mathieson
8dbd2e1f1d Don't try to report -ve roundtrip delays
svn path=/trunk/; revision=19778
2006-11-02 11:51:09 +00:00
Martin Mathieson
e7323183d0 Try to declare and cast away warnings
svn path=/trunk/; revision=19709
2006-10-26 16:52:55 +00:00
Martin Mathieson
0812a4cb6f Report roundtrip delay as expert item
svn path=/trunk/; revision=19627
2006-10-20 14:05:18 +00:00
Martin Mathieson
bd6931e2d3 Use FT_UINT_STRING for TBCP DENY reason-phrase
svn path=/trunk/; revision=18968
2006-08-21 11:41:32 +00:00
Martin Mathieson
e2767088d8 Minor TBCP fixes
svn path=/trunk/; revision=18860
2006-08-09 17:23:10 +00:00
Martin Mathieson
9e1f690fc6 Update to TBCP ("PoC1" application). This is based on the "Approved Version 1.0 09 Jun 2006"
- updated to the current (approved) spec.  I'm not sure how backwards-compatible this is with older drafts...
- prettified the existing code, including more details in the info column

Also included is a fix to the way the offset at the end of an RTCP BYE packet is calculated (taking into account the NULL.  This avoids the 'length wrong' expert item) 

svn path=/trunk/; revision=18820
2006-08-02 16:00:07 +00:00
Luis Ontanon
ed3b76044e as per RFC 3611 - 4.1.1 run length is 14 bits not 15.
Fixes Bug 1022


svn path=/trunk/; revision=18805
2006-07-28 16:40:46 +00:00
Jörg Mayer
eb808f2cdb rtcp.profile-specific-extension was defined twice
svn path=/trunk/; revision=18400
2006-06-08 14:42:53 +00:00
Anders Broman
65aadc0d79 From Martin Mathieson:
- shows profile-specific extension data at the end of SR/RR reports (if 
packet length has not yet been reached after parsing normal data) and 
advances offset (further packets were not recognised+dissected as this 
data wasn't being skipped).
- checks that the length of the RTCP data in the whole frame matches the 
combined length from the length fields (the last check in RFC 3550, "A.2 
RTCP Header Validity Checks") with a generated field and expert info 
when wrong.
- reports the length field in all of the message types consistently (the 
length was confusingly shown multiplied by 4 only in APP packets...)

svn path=/trunk/; revision=18357
2006-06-06 18:26:57 +00:00
Anders Broman
9491711ab4 From Martin Mathieson:
- shows profile-specific extension data at the end of SR/RR reports (if 
packet length has not yet been reached after parsing normal data) and 
advances offset (further packets were not recognised+dissected as this 
data wasn't being skipped).

svn path=/trunk/; revision=18245
2006-05-29 18:16:23 +00:00
Ronnie Sahlberg
feab79e328 change a whole bunch of ethereal into wireshark
svn path=/trunk/; revision=18196
2006-05-21 04:49:01 +00:00
Anders Broman
746598b9e9 From Martin mathieson:
While looking at bug 882 (which seems to have been fixed since 0.10.14) I noticed the RTCP heuristic dissector wasn't picking up the frame.

This patch fixes the parenthesis to test the packet-type properly.

svn path=/trunk/; revision=17914
2006-04-19 19:45:56 +00:00
Anders Broman
f92ed70a3f From Martin Mathieson:
-  Also show vpi/vci in info column 

svn path=/trunk/; revision=17859
2006-04-13 22:30:20 +00:00
Jaap Keuter
cdc0de3de5 Better read NTP LSW from the right spot
svn path=/trunk/; revision=17836
2006-04-06 20:47:22 +00:00
Jaap Keuter
0834b09ca2 From: Martin Mathieson
- fixes bug 863 (RTCP sender report's NTP time display incorrect - use using wrong bytes)
- makes NTP timestamp MSW and LSW proper filterable fields, displaying them in dec and hex
- when doing roundtrip calculations, rationalise fields added, add link to LSR frame whenever it matches

svn path=/trunk/; revision=17834
2006-04-06 13:30:45 +00:00
Anders Broman
b05b62d64a From Andrei Emeltchenko:
OMA again has changed the format of the 2 RTCP packets:

RTCP Grant and RTCP Taken

In RTCP Grant instead of spare 2 bytes there are: magic number and item_len.

In RTCP Taken there is an extra field "Number of participants" like in Grant.
http://www.openmobilealliance.org/release_program/docs/CopyrightClick.asp?pck=PoC&file=V1_0-20051104-C/OMA-TS-PoC-UserPlane-V1_0-20051104-C.pdf

svn path=/trunk/; revision=17125
2006-01-30 05:35:39 +00:00
Anders Broman
d74d5995e2 From Martin Mathieson
I keep finding finding traces that show new problems with this code.  This patch fixes 2 problems:
- I've seen RTCP frames containing a SR and RR with identical source info and the lsr matching the current MSW/LSW timestamp of the SR.  Don't want to do calculation without real roundtrip info
- calculating the gap between the 2 frames was still wrong (sigh)

svn path=/trunk/; revision=16934
2006-01-03 16:24:56 +00:00
Luis Ontanon
ada9131e3b Fixes Bug 531 (Incorrect Interpretation of Bit vector and RLE RTCP XR Blocks).
svn path=/trunk/; revision=16921
2005-12-31 02:19:24 +00:00
Anders Broman
5b106306fd From Martin Mathieson:
there are only 1000 ms in one second

svn path=/trunk/; revision=16882
2005-12-22 16:26:26 +00:00