aboutsummaryrefslogtreecommitdiffstats
path: root/packet-sna.c
diff options
context:
space:
mode:
authorhagbard <hagbard@f5534014-38df-0310-8fa8-9805f1628bb7>2001-11-26 04:52:51 +0000
committerhagbard <hagbard@f5534014-38df-0310-8fa8-9805f1628bb7>2001-11-26 04:52:51 +0000
commita90f625bec257a54bc43f9c352378bc4ee91495d (patch)
treeb423f343624fa9219216fac49dd6a23b2c4d5586 /packet-sna.c
parent7b8d96ee2ccdb3be61d045d60dd9773742ce4455 (diff)
Moved from using dissect_data() to using call_dissector()
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4269 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-sna.c')
-rw-r--r--packet-sna.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/packet-sna.c b/packet-sna.c
index f4bc0bc1fd..a3eee6b65a 100644
--- a/packet-sna.c
+++ b/packet-sna.c
@@ -2,7 +2,7 @@
* Routines for SNA
* Gilbert Ramirez <gram@alumni.rice.edu>
*
- * $Id: packet-sna.c,v 1.33 2001/11/15 21:11:01 gram Exp $
+ * $Id: packet-sna.c,v 1.34 2001/11/26 04:52:51 hagbard Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -120,6 +120,8 @@ static gint ett_sna_rh_0 = -1;
static gint ett_sna_rh_1 = -1;
static gint ett_sna_rh_2 = -1;
+static dissector_handle_t data_handle;
+
/* Format Identifier */
static const value_string sna_th_fid_vals[] = {
{ 0x0, "SNA device <--> Non-SNA Device" },
@@ -378,7 +380,7 @@ dissect_sna(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
th_header_len = dissect_fidf(tvb, th_tree);
break;
default:
- dissect_data(tvb, 1, pinfo, tree);
+ call_dissector(data_handle,tvb_new_subset(tvb, 1,-1,tvb_reported_length_remaining(tvb,1)), pinfo, tree);
}
sna_header_len += th_header_len;
@@ -402,7 +404,7 @@ dissect_sna(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
if (tvb_offset_exists(tvb, offset+1)) {
- dissect_data(tvb, offset, pinfo, tree);
+ call_dissector(data_handle,tvb_new_subset(tvb, offset, -1, tvb_reported_length_remaining(tvb,offset)),pinfo, tree);
}
}
@@ -1199,4 +1201,5 @@ proto_reg_handoff_sna(void)
{
dissector_add("llc.dsap", SAP_SNA_PATHCTRL, dissect_sna,
proto_sna);
+ data_handle = find_dissector("data");
}