diff options
author | hagbard <hagbard@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-11-26 04:52:51 +0000 |
---|---|---|
committer | hagbard <hagbard@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-11-26 04:52:51 +0000 |
commit | a90f625bec257a54bc43f9c352378bc4ee91495d (patch) | |
tree | b423f343624fa9219216fac49dd6a23b2c4d5586 /packet-ipp.c | |
parent | 7b8d96ee2ccdb3be61d045d60dd9773742ce4455 (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-ipp.c')
-rw-r--r-- | packet-ipp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packet-ipp.c b/packet-ipp.c index 6893aae6c4..7235226eb5 100644 --- a/packet-ipp.c +++ b/packet-ipp.c @@ -3,7 +3,7 @@ * * Guy Harris <guy@alum.mit.edu> * - * $Id: packet-ipp.c,v 1.22 2001/01/11 06:30:54 guy Exp $ + * $Id: packet-ipp.c,v 1.23 2001/11/26 04:52:50 hagbard Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -49,6 +49,8 @@ static gint ett_ipp = -1; static gint ett_ipp_as = -1; static gint ett_ipp_attr = -1; +static dissector_handle_t data_handle; + #define PRINT_JOB 0x0002 #define PRINT_URI 0x0003 #define VALIDATE_JOB 0x0004 @@ -236,7 +238,7 @@ dissect_ipp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) offset = parse_attributes(tvb, offset, ipp_tree); if (tvb_offset_exists(tvb, offset)) - dissect_data(tvb, offset, pinfo, ipp_tree); + call_dissector(data_handle,tvb_new_subset(tvb, offset,-1,tvb_reported_length_remaining(tvb,offset)), pinfo, ipp_tree); } } @@ -568,5 +570,6 @@ proto_reg_handoff_ipp(void) /* * Register ourselves as running atop HTTP and using port 631. */ + data_handle = find_dissector("data"); http_dissector_add(631, dissect_ipp, proto_ipp); } |