aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-h248_q1950.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-h248_q1950.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-h248_q1950.c')
-rw-r--r--epan/dissectors/packet-h248_q1950.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/epan/dissectors/packet-h248_q1950.c b/epan/dissectors/packet-h248_q1950.c
index 1c79ab0c58..ea52b4ef16 100644
--- a/epan/dissectors/packet-h248_q1950.c
+++ b/epan/dissectors/packet-h248_q1950.c
@@ -258,7 +258,7 @@ static h248_package_t h248_pkg_GB = {
/* A.7 Bearer control tunnelling package */
-static dissector_handle_t sdp_dissector = NULL;
+static dissector_handle_t bctp_dissector = NULL;
static int hf_h248_pkg_bt = -1;
static int hf_h248_pkg_bt_tind = -1;
@@ -270,7 +270,7 @@ static gint ett_h248_pkg_bt_tind = -1;
static gint ett_h248_pkg_bt_bit= -1;
static void dissect_bt_tunneled_proto(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo, int hfid, h248_curr_info_t* i _U_, void* d _U_) {
- tvbuff_t* sdp_tvb = NULL;
+ tvbuff_t* bctp_tvb = NULL;
gint8 class;
gboolean pc;
gint32 tag;
@@ -279,11 +279,10 @@ static void dissect_bt_tunneled_proto(proto_tree* tree, tvbuff_t* tvb, packet_in
/* XXX: is this enough to guess it? */
if ((tag==BER_UNI_TAG_OCTETSTRING)) {
- dissect_ber_octet_string(FALSE, pinfo, tree, tvb, 0, hfid, &sdp_tvb);
+ dissect_ber_octet_string(FALSE, pinfo, tree, tvb, 0, hfid, &bctp_tvb);
- if (sdp_tvb) {
- /* XXX: are we sure it is always sdp? */
- call_dissector(sdp_dissector,sdp_tvb,pinfo,tree);
+ if (bctp_tvb) {
+ call_dissector(bctp_dissector,bctp_tvb,pinfo,tree);
}
} else {
proto_tree_add_item(tree,hfid,tvb,0,-1,FALSE);
@@ -417,7 +416,7 @@ static h248_package_t h248_pkg_bcg = {
void proto_reg_handoff_q1950(void) {
- sdp_dissector = find_dissector("sdp");
+ bctp_dissector = find_dissector("bctp");
}