From 9f45a0b0f5d45d8d84e0abd2854d34693d6f3b06 Mon Sep 17 00:00:00 2001 From: Gilbert Ramirez Date: Tue, 16 May 2000 06:21:33 +0000 Subject: Convert Ethernet and Lucent/Ascend dissectors to use tvbuff. Note in AUTHORS file that we use the exception module from kazlib. svn path=/trunk/; revision=1966 --- packet-isl.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'packet-isl.c') diff --git a/packet-isl.c b/packet-isl.c index 55c679e0e5..a466f346ad 100644 --- a/packet-isl.c +++ b/packet-isl.c @@ -1,7 +1,7 @@ /* packet-isl.c * Routines for Cisco ISL Ethernet header disassembly * - * $Id: packet-isl.c,v 1.10 2000/05/16 04:44:11 gram Exp $ + * $Id: packet-isl.c,v 1.11 2000/05/16 06:21:32 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -209,7 +209,8 @@ dissect_isl(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) switch (type) { case TYPE_ETHER: - dissect_eth(pd, offset+26, fd, tree); + next_tvb = tvb_new_subset(pi.compat_top_tvb, offset+26, -1, -1); + dissect_eth(next_tvb, &pi, tree); break; case TYPE_TR: @@ -230,7 +231,8 @@ dissect_isl(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) break; default: - dissect_data(pd, offset+26, fd, tree); + next_tvb = tvb_new_subset(pi.compat_top_tvb, offset+26, -1, -1); + dissect_data_tvb(next_tvb, &pi, tree); break; } } -- cgit v1.2.3