diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-11-10 06:50:37 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-11-10 06:50:37 +0000 |
commit | 07eb30403dae13dde668ff3b06d7d6c9bf677de9 (patch) | |
tree | 7a4c3b5a8262e5ec32132dd69225fd74d1a5fd16 /packet-sip.c | |
parent | 9eb37f04e72d4d5a6f50e04e808757a648314fac (diff) | |
download | wireshark-07eb30403dae13dde668ff3b06d7d6c9bf677de9.tar.gz wireshark-07eb30403dae13dde668ff3b06d7d6c9bf677de9.tar.bz2 wireshark-07eb30403dae13dde668ff3b06d7d6c9bf677de9.zip |
Tvbuffify the SAP and SDP dissectors.
Add "tvb_find_line_end_unquoted()" for the benefit of the SDP dissector;
get rid of "find_line_end_unquoted()" as nobody uses it any more.
Add "tvb_pbrk_guint8()" for the benefit of
"tvb_find_line_end_unquoted()"; it searches for any of a number of
characters, unlike "tvb_find_guint8()" which searches for only one.
svn path=/trunk/; revision=2595
Diffstat (limited to 'packet-sip.c')
-rw-r--r-- | packet-sip.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/packet-sip.c b/packet-sip.c index b307407486..71b5d5435b 100644 --- a/packet-sip.c +++ b/packet-sip.c @@ -8,7 +8,7 @@ * * Copyright 2000, Heikki Vatiainen <hessu@cs.tut.fi> * - * $Id: packet-sip.c,v 1.1 2000/11/04 07:50:47 guy Exp $ + * $Id: packet-sip.c,v 1.2 2000/11/10 06:50:36 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -75,8 +75,6 @@ static void dissect_sip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) guint32 offset; gint eol, msg_offset; tvbuff_t *next_tvb; - const guint8 *next_pd; - int next_offset; CHECK_DISPLAY_AS_DATA(proto_sip, tvb, pinfo, tree); @@ -131,8 +129,7 @@ static void dissect_sip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (tvb_length_remaining(tvb, offset) > 0) { next_tvb = tvb_new_subset(tvb, offset, -1, -1); - tvb_compat(next_tvb, &next_pd, &next_offset); - dissect_sdp(next_pd, next_offset, pinfo->fd, tree); + dissect_sdp(next_tvb, pinfo, tree); } return; |