diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-04-15 21:25:05 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-04-15 21:25:05 +0000 |
commit | 8440dc631667afbc7883380982ef8ffc7b544f1d (patch) | |
tree | 03154f54787571fa7e9ca72f9ccd875028f8c880 /packet-rtcp.c | |
parent | 91dbbe7b2e1a0ee6cfd5aa5b1c52ed7a0165de2f (diff) | |
download | wireshark-8440dc631667afbc7883380982ef8ffc7b544f1d.tar.gz wireshark-8440dc631667afbc7883380982ef8ffc7b544f1d.tar.bz2 wireshark-8440dc631667afbc7883380982ef8ffc7b544f1d.zip |
From Jason Lango: a hack to get SDES length correct on QT packets.
svn path=/trunk/; revision=5167
Diffstat (limited to 'packet-rtcp.c')
-rw-r--r-- | packet-rtcp.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/packet-rtcp.c b/packet-rtcp.c index 20dc11a369..d822fefa0c 100644 --- a/packet-rtcp.c +++ b/packet-rtcp.c @@ -1,6 +1,6 @@ /* packet-rtcp.c * - * $Id: packet-rtcp.c,v 1.31 2002/04/09 09:04:33 guy Exp $ + * $Id: packet-rtcp.c,v 1.32 2002/04/15 21:25:05 guy Exp $ * * Routines for RTCP dissection * RTCP = Real-time Transport Control Protocol @@ -405,7 +405,7 @@ dissect_rtcp_bye( tvbuff_t *tvb, int offset, proto_tree *tree, } -static int +static void dissect_rtcp_sdes( tvbuff_t *tvb, int offset, proto_tree *tree, unsigned int count ) { @@ -505,9 +505,6 @@ dissect_rtcp_sdes( tvbuff_t *tvb, int offset, proto_tree *tree, chunk++; } - - - return offset; } static int @@ -738,7 +735,8 @@ dissect_rtcp( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree ) /* Packet length in 32 bit words MINUS one, 16 bits */ proto_tree_add_uint( rtcp_tree, hf_rtcp_length, tvb, offset, 2, tvb_get_ntohs( tvb, offset ) ); offset += 2; - offset = dissect_rtcp_sdes( tvb, offset, rtcp_tree, elem_count ); + dissect_rtcp_sdes( tvb, offset, rtcp_tree, elem_count ); + offset += packet_length - 4; break; case RTCP_BYE: /* Source count, 5 bits */ |