diff options
author | hagbard <hagbard@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-11-26 04:52:51 +0000 |
---|---|---|
committer | hagbard <hagbard@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-11-26 04:52:51 +0000 |
commit | a90f625bec257a54bc43f9c352378bc4ee91495d (patch) | |
tree | b423f343624fa9219216fac49dd6a23b2c4d5586 /packet-eapol.c | |
parent | 7b8d96ee2ccdb3be61d045d60dd9773742ce4455 (diff) |
Moved from using dissect_data() to using call_dissector()
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4269 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-eapol.c')
-rw-r--r-- | packet-eapol.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packet-eapol.c b/packet-eapol.c index 3e6a1b8e0c..de6bbae858 100644 --- a/packet-eapol.c +++ b/packet-eapol.c @@ -1,7 +1,7 @@ /* packet-eapol.c * Routines for EAPOL 802.1X authentication header disassembly * - * $Id: packet-eapol.c,v 1.1 2001/11/06 20:30:39 guy Exp $ + * $Id: packet-eapol.c,v 1.2 2001/11/26 04:52:49 hagbard Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -48,6 +48,8 @@ static int hf_eapol_len = -1; static gint ett_eapol = -1; +static dissector_handle_t data_handle; + typedef struct _e_eapol { guint8 eapol_ver; @@ -106,7 +108,7 @@ dissect_eapol(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (eapolh.eapol_type == 0 && next_tvb != NULL) dissect_eap(next_tvb, pinfo, eapol_tree); else - dissect_data(tvb, 4, pinfo, tree); + call_dissector(data_handle,tvb_new_subset(tvb, 4,-1,tvb_reported_length_remaining(tvb,4)), pinfo, tree); } void @@ -135,5 +137,6 @@ proto_register_eapol(void) void proto_reg_handoff_eapol(void) { + data_handle = find_dissector("data"); dissector_add("ethertype", ETHERTYPE_EAPOL, dissect_eapol, proto_eapol); } |