Commit Graph

96 Commits

Author SHA1 Message Date
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
Guy Harris 9fea197bf9 Why duplicate the code of "tvb_get_string()" when you could just use
"tvb_get_string()"?

Why even bother with "tvb_get_string()" when you can just use
"proto_tree_add_item()" with a string item?

Make sure that the prefix in a PRIV item isn't bigger than the item
itself.  That fixes bug 603.

svn path=/trunk/; revision=16716
2005-12-07 03:03:37 +00:00
Ronnie Sahlberg a9a437d64a From Martin M various updates and fixes
Hi, Some tiddly changes: pppoe- don't create an empty discovery tags tree when the payload length is 0 chap- make chap.value work as a filterable field rtcp- append the packet type to the protocol tree name 


svn path=/trunk/; revision=16712
2005-12-07 00:35:16 +00:00
Ronnie Sahlberg e93abb6669 rtcp fix for sdes_prefix_string
svn path=/trunk/; revision=16656
2005-12-02 21:12:22 +00:00
Anders Broman f86d2d458c From Andrei Emeltchenko
I have added new RTCP POC fields as OMA standard says. With some additions. 

svn path=/trunk/; revision=16452
2005-11-09 21:50:39 +00:00
Guy Harris 6c521f90f5 The return value of tvb_get_ptr() is a const ptr; assign it to a const
ptr.

The answer to the question
"??????????????????????????????????????????????????????????????????" is
"No - the return value of tvb_get_ptr() is a reference, not an allocated
copy, and it cannot be freed and doesn't need to be freed."

svn path=/trunk/; revision=16426
2005-11-07 21:10:52 +00:00
Anders Broman 708d793e63 Display MSW and LSW as NTP timestamp as well.
svn path=/trunk/; revision=16421
2005-11-07 19:40:55 +00:00
Ronnie Sahlberg 8b32f13476 get rid of strcpy in packet-ntp.c
at the same time  change ntp_fmt_ts to return a pointer to ian ep-allocated buffer.
remove the redundant buffer parameter in the signature and change all callers.


svn path=/trunk/; revision=15939
2005-09-21 20:05:13 +00:00
Ronnie Sahlberg 6caf6d5d1c add missing value_string termination
svn path=/trunk/; revision=15584
2005-08-28 03:01:37 +00:00
Ulf Lamping 6f43fbb2f0 EVERYTHING IN THE BUILDBOT IS GOING TO BE RED!!! Sorry!
I've done more than a day to change the timestamp resolution from microseconds to nanoseconds. As I really don't want to loose those changes, I'm going to check in the changes I've done so far. Hopefully someone else will give me a helping hand with the things left ...

What's done: I've changed the timestamp resolution from usec to nsec in almost any place in the sources. I've changed parts of the implementation in nstime.s/.h and a lot of places elsewhere.

As I don't understand the editcap source (well, I'm maybe just too tired right now), hopefully someone else might be able to fix this soon.

Doing all those changes, we get native nanosecond timestamp resolution in Ethereal. After fixing all the remaining issues, I'll take a look how to display this in a convenient way...

As I've also changed the wiretap timestamp resolution from usec to nsec we might want to change the wiretap version number...

svn path=/trunk/; revision=15520
2005-08-24 21:31:56 +00:00
Gerald Combs ef81f7d060 Properly initialize our hf_ arrays. Make hf_rtcp_app_poc1_conn_session_type
an FT_UINT8 instead of an FT_BOOLEAN.  This keeps the Solaris builder from
crashing while running "-G values".

svn path=/trunk/; revision=15519
2005-08-24 20:34:15 +00:00
Anders Broman bdec656b1a From Timo Metsala:
Updates the  PoC floor control parsing to comply to the latest version of the 
specification. 

svn path=/trunk/; revision=15511
2005-08-22 16:26:29 +00:00
Ronnie Sahlberg d7cf8bfc97 remove g_malloc()s from rtcp
svn path=/trunk/; revision=15382
2005-08-17 08:54:25 +00:00
Ronnie Sahlberg 234f09c663 more gmemchunk -> se_alloc() improvements
svn path=/trunk/; revision=15312
2005-08-12 10:50:55 +00:00
Ronnie Sahlberg ec3ab9ec3e rename ep_tvb_get_string() to tvb_get_ephemeral_string() asnd update the documentation in README.developer
svn path=/trunk/; revision=15270
2005-08-10 13:41:13 +00:00
Jörg Mayer 5602f5bb83 Make some funtions static. More char -> const char warning fixes
svn path=/trunk/; revision=15146
2005-07-30 01:01:02 +00:00
Ronnie Sahlberg 9ef6568c56 some more dissectors converted to ep_tvb_get_string
again   at least one obvious memleak was found in the old code



svn path=/trunk/; revision=15031
2005-07-24 03:01:41 +00:00
Luis Ontanon 763afdea30 From: Martin Mathieson
fix cases where %d has been used instead of %u...


svn path=/trunk/; revision=14583
2005-06-07 23:25:46 +00:00
Guy Harris cb1e20b79c Clean up white space.
"decode_boolean_bitfield()" returns a "const char *" - don't cast it to
a "gchar *" and modify what it points to.  Instead, just use
"other_decode_bitfield_value()".

svn path=/trunk/; revision=13494
2005-02-24 05:45:15 +00:00
Ulf Lamping 2f836c20a8 fix a typo: lenght -> length
This seems to be a "more common" typo, fixed it 13 times throughout the code ...

svn path=/trunk/; revision=13452
2005-02-20 22:36:34 +00:00
Luis Ontanon 1704803382 From Venna, Nagarjuna:
add support for RTCP-XR as specified in RFC 3611 

svn path=/trunk/; revision=13390
2005-02-13 03:41:44 +00:00
Anders Broman 851ecd2ac4 From Jon Ringle:
1) Added a setup_frame parameter to conversation_t
2) Used the conversation_t next to maintain a list of conversations with the 
same src/dest tuple but different setup_frame number.
3) Changed the signature of find_conversation() and conversation_new() to pass 
in the frame number.
4) Adjusted packet-sdp to select RTP conversation if both m=audio and m=image 
are present, and T.38 conversation if only m=image is present. I expect that 
RTP/T.38 dissecting to be better, but I don't have a way to generate T.38 
packets.

svn path=/trunk/; revision=13243
2005-02-02 20:07:03 +00:00
Guy Harris 766b213ed6 If an item in a source description chunk begins with 4 bytes of zero,
that doesn't mean it's padding at the end of a previous item - it might,
for example, be the *first* item in the chunk.  Don't treat it as
padding.

Do, however, treat an item that begins with a zero byte as an item, but
break out of the loop processing items as soon as the item type is put
into the protocol tree, as there's no length field or data in an
RTCP_SDES_END item.  Fix the comment for that loop to indicate that the
loop checks both for end-of-frame and for an RTCP_SDES_END item.

svn path=/trunk/; revision=13040
2005-01-14 19:28:02 +00:00
Guy Harris bbe7f89742 Move prefs.c and prefs.h into the epan subdirectory.
svn path=/trunk/; revision=12115
2004-09-27 22:55:15 +00:00
Anders Broman 356e4e9247 From Martin Mathieson: Fix a simple bug, in calculate_roundtrip_delay(), where the conversation is looked up, the port arguments are given in reverse order.
svn path=/trunk/; revision=12055
2004-09-20 19:22:10 +00:00
Anders Broman a1e74f0b11 Fiax a MSVC Warning
svn path=/trunk/; revision=12044
2004-09-18 21:31:20 +00:00
Anders Broman 28476a2a18 From Martin Mathieson:
I've written this patch to use the 'Delay since last SR' (DLSR) field found
in SR reports to calculate and report roundtrip-propagation delays.  This is
described in rfc 3550, section 6.4.1, inside the description of DLSR.

Only the endpoint can compute the end-end roundtrip delay, and only they
know exactly when the report is received and can compare it with the 'Last
SR timestamp' (LSR) that they set.  This patch instead takes the difference
between the capture times of the 2 reports and subtracts the DLSR (the LSR
is checked in case the SR it's referring to wasn't captured).  The time
difference represents a roundtrip network delay between the point of capture
and the sender of the SR containing the DLSR.


svn path=/trunk/; revision=11998
2004-09-15 20:08:30 +00:00
Guy Harris 8e149c4e97 Get rid of unused variables.
svn path=/trunk/; revision=11983
2004-09-13 07:47:49 +00:00
Anders Broman 10816e79c4 Added some valuestring parameters for PoC
svn path=/trunk/; revision=11942
2004-09-08 19:24:32 +00:00
Guy Harris 344dddb124 Pass an "address *" to "rtp_add_address()" and "rtcp_add_address()", so
so that they could handle IPv6 addresses.

Clean up white space.

svn path=/trunk/; revision=11854
2004-08-30 10:03:54 +00:00
Guy Harris 643495f263 Don't assume that if we find a conversation that we've set a dissector
for it, or that we've given it a conversation data item - the
conversation might exist for other reasons. 

svn path=/trunk/; revision=11767
2004-08-18 07:34:15 +00:00
Guy Harris 97e73c43e9 From Martin Mathieson:
- test for NULL conversation data to avoid a potential crash when
	  looking up stream setup info (as RTP dissector does);

	- adds a heuristic function (like RTP, this is a preference
	  initially set to off).

svn path=/trunk/; revision=11748
2004-08-16 05:54:01 +00:00
Gilbert Ramirez 669db206cb Move dissectors to epan/dissectors directory.
Also move ncp222.py, x11-fields, process-x11-fields.pl,
make-reg-dotc, and make-reg-dotc.py.

Adjust #include lines in files that include packet-*.h
files.

svn path=/trunk/; revision=11410
2004-07-18 18:06:47 +00:00