aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sdp.c
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2007-03-01 00:24:57 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2007-03-01 00:24:57 +0000
commitaa654a1f8a0cd043eef60b7029f6874e4571dcaa (patch)
treedede6998581886ce7df706fa62545aea93e1920b /epan/dissectors/packet-sdp.c
parentd3b873b60d78e87896f26b359d3b56db576a925d (diff)
Those two spaces before sdp were bctp (Q.1990), a protocol conveniently encoded to be two spaces in case of IPBCP (SDP+extras).
There's probably something similar in packet-isup.c svn path=/trunk/; revision=20952
Diffstat (limited to 'epan/dissectors/packet-sdp.c')
-rw-r--r--epan/dissectors/packet-sdp.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/epan/dissectors/packet-sdp.c b/epan/dissectors/packet-sdp.c
index 87f236a4d1..f93ce41f93 100644
--- a/epan/dissectors/packet-sdp.c
+++ b/epan/dissectors/packet-sdp.c
@@ -303,13 +303,6 @@ dissect_sdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
*/
in_media_description = FALSE;
- /*
- * in order to avoid an invalid line when used to dissect a q1950 parameter
- * we will find the first useful character and start parsing from there
- */
- offset = tvb_pbrk_guint8(tvb, offset, -1,"abcdefghijklmnopqrstuvwxyz");
- if (offset < 0) offset = 0;
-
while (tvb_reported_length_remaining(tvb, offset) > 0) {
/*
* Find the end of the line.
@@ -1835,4 +1828,5 @@ proto_reg_handoff_sdp(void)
sdp_handle = find_dissector("sdp");
dissector_add_string("media_type", "application/sdp", sdp_handle);
+ dissector_add("bctp.tpi", 0x20, sdp_handle);
}