aboutsummaryrefslogtreecommitdiffstats
path: root/packet-eth.c
diff options
context:
space:
mode:
authorgram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>2000-11-29 05:16:15 +0000
committergram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>2000-11-29 05:16:15 +0000
commitfdb1111e958124a68463e3c76a66c621d7d26915 (patch)
tree5469fa22c76501813519d37f54fc09a373e07c8c /packet-eth.c
parentf9fd8376e4516c310d9b8e3074892f14e9251dfa (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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2708 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-eth.c')
-rw-r--r--packet-eth.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/packet-eth.c b/packet-eth.c
index cbf297e2c5..8e2b802a76 100644
--- a/packet-eth.c
+++ b/packet-eth.c
@@ -1,7 +1,7 @@
/* packet-eth.c
* Routines for ethernet packet disassembly
*
- * $Id: packet-eth.c,v 1.49 2000/11/19 08:53:57 guy Exp $
+ * $Id: packet-eth.c,v 1.50 2000/11/29 05:16:15 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -376,3 +376,9 @@ proto_register_eth(void)
register_dissector("eth", dissect_eth);
}
+
+void
+proto_reg_handoff_eth(void)
+{
+ dissector_add("wtap_encap", WTAP_ENCAP_ETHERNET, dissect_eth);
+}