aboutsummaryrefslogtreecommitdiffstats
path: root/packet-llc.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2000-11-29 05:16:15 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2000-11-29 05:16:15 +0000
commitd673500082461b67f57914dca6176447f73f6c27 (patch)
tree5469fa22c76501813519d37f54fc09a373e07c8c /packet-llc.c
parentd6d2a9ccc99fadfb5a0fd6b1c9052bf6c2bcdb54 (diff)
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
Diffstat (limited to 'packet-llc.c')
-rw-r--r--packet-llc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/packet-llc.c b/packet-llc.c
index e1dba55387..3a98eb0d6d 100644
--- a/packet-llc.c
+++ b/packet-llc.c
@@ -2,7 +2,7 @@
* Routines for IEEE 802.2 LLC layer
* Gilbert Ramirez <gram@xiexie.org>
*
- * $Id: packet-llc.c,v 1.71 2000/11/19 08:53:59 guy Exp $
+ * $Id: packet-llc.c,v 1.72 2000/11/29 05:16:15 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -504,4 +504,5 @@ proto_reg_handoff_llc(void)
* Get a handle for the BPDU dissector.
*/
bpdu_handle = find_dissector("bpdu");
+ dissector_add("wtap_encap", WTAP_ENCAP_ATM_RFC1483, dissect_llc);
}