diff options
author | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-11-26 04:52:51 +0000 |
---|---|---|
committer | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-11-26 04:52:51 +0000 |
commit | fcd5b352af60e034a4b63601272b43b6644029cd (patch) | |
tree | b423f343624fa9219216fac49dd6a23b2c4d5586 /packet-cdp.c | |
parent | 7537283cc691e6370db67fd5b0e393583074bf7f (diff) | |
download | wireshark-fcd5b352af60e034a4b63601272b43b6644029cd.tar.gz wireshark-fcd5b352af60e034a4b63601272b43b6644029cd.tar.bz2 wireshark-fcd5b352af60e034a4b63601272b43b6644029cd.zip |
Moved from using dissect_data() to using call_dissector()
svn path=/trunk/; revision=4269
Diffstat (limited to 'packet-cdp.c')
-rw-r--r-- | packet-cdp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packet-cdp.c b/packet-cdp.c index 6e516566bc..e435c12041 100644 --- a/packet-cdp.c +++ b/packet-cdp.c @@ -2,7 +2,7 @@ * Routines for the disassembly of the "Cisco Discovery Protocol" * (c) Copyright Hannes R. Boehm <hannes@boehm.org> * - * $Id: packet-cdp.c,v 1.39 2001/08/28 08:28:14 guy Exp $ + * $Id: packet-cdp.c,v 1.40 2001/11/26 04:52:49 hagbard Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -61,6 +61,8 @@ static gint ett_cdp_tlv = -1; static gint ett_cdp_address = -1; static gint ett_cdp_capabilities = -1; +static dissector_handle_t data_handle; + static int dissect_address_tlv(tvbuff_t *tvb, int offset, int length, proto_tree *tree); static void @@ -355,7 +357,7 @@ dissect_cdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) offset += length; } } - dissect_data(tvb, offset, pinfo, cdp_tree); + call_dissector(data_handle,tvb_new_subset(tvb, offset,-1,tvb_reported_length_remaining(tvb,offset)), pinfo, cdp_tree); } } @@ -578,6 +580,7 @@ proto_register_cdp(void) void proto_reg_handoff_cdp(void) { + data_handle = find_dissector("data"); dissector_add("llc.cisco_pid", 0x2000, dissect_cdp, proto_cdp); dissector_add("chdlctype", 0x2000, dissect_cdp, proto_cdp); } |