From d673500082461b67f57914dca6176447f73f6c27 Mon Sep 17 00:00:00 2001 From: Gilbert Ramirez Date: Wed, 29 Nov 2000 05:16:15 +0000 Subject: Wrap the dissect_fddi() call (with a 4th argument) with dissect_fddi_not_bitswapped() and dissect_fddi_bitswapped(), both of which use the standard 3-argument tvbuffified-dissector argument list. Add a dissector table called "wtap_encap" which is used to call dissectors from dissect_frame(). The switch() statement from this top-level dissector is removed. The link-layer dissectors register themselves with the "wtap_encap" dissector table. The dissectors are now static where possible. svn path=/trunk/; revision=2708 --- packet-tr.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'packet-tr.c') diff --git a/packet-tr.c b/packet-tr.c index 16060cfad0..3e383303dd 100644 --- a/packet-tr.c +++ b/packet-tr.c @@ -2,7 +2,7 @@ * Routines for Token-Ring packet disassembly * Gilbert Ramirez * - * $Id: packet-tr.c,v 1.51 2000/11/19 08:54:10 guy Exp $ + * $Id: packet-tr.c,v 1.52 2000/11/29 05:16:15 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -671,3 +671,8 @@ proto_register_tr(void) proto_register_subtree_array(ett, array_length(ett)); } +void +proto_reg_handoff_tr(void) +{ + dissector_add("wtap_encap", WTAP_ENCAP_TOKEN_RING, dissect_tr); +} -- cgit v1.2.3