aboutsummaryrefslogtreecommitdiffstats
path: root/packet-icap.c
diff options
context:
space:
mode:
authorEd Warnicke <hagbard@physics.rutgers.edu>2001-11-26 04:52:51 +0000
committerEd Warnicke <hagbard@physics.rutgers.edu>2001-11-26 04:52:51 +0000
commitfcd5b352af60e034a4b63601272b43b6644029cd (patch)
treeb423f343624fa9219216fac49dd6a23b2c4d5586 /packet-icap.c
parent7537283cc691e6370db67fd5b0e393583074bf7f (diff)
Moved from using dissect_data() to using call_dissector()
svn path=/trunk/; revision=4269
Diffstat (limited to 'packet-icap.c')
-rw-r--r--packet-icap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/packet-icap.c b/packet-icap.c
index c7fbc56449..225794b617 100644
--- a/packet-icap.c
+++ b/packet-icap.c
@@ -56,6 +56,8 @@ static int hf_icap_other = -1;
static gint ett_icap = -1;
+static dissector_handle_t data_handle;
+
#define TCP_PORT_ICAP 1344
static int is_icap_message(const u_char *data, int linelen, icap_type_t *type);
static void
@@ -224,7 +226,7 @@ is_icap_header:
datalen = tvb_length_remaining(tvb, offset);
if (datalen > 0) {
- dissect_data(tvb, offset, pinfo, icap_tree);
+ call_dissector(data_handle,tvb_new_subset(tvb, offset, -1, tvb_reported_length_remaining(tvb,offset)), pinfo, icap_tree);
}
}
@@ -296,5 +298,6 @@ proto_register_icap(void)
void
proto_reg_handoff_icap(void)
{
+ data_handle = find_dissector("data");
dissector_add("tcp.port", TCP_PORT_ICAP, dissect_icap, proto_icap);
}