diff options
author | Ethan Young <imfargo@gmail.com> | 2016-12-18 15:37:56 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-12-20 19:27:38 +0000 |
commit | caadaaf62317a88f99373d9095b827102999e4e3 (patch) | |
tree | 80ea1209f594bf1faa03fb093be15b81cc38df0b /epan/dissectors/packet-eapol.h | |
parent | b7ee557d88841bc77f65c1fdc8b70ee4751624d6 (diff) |
Make EAPOL packet types into a dissector table.
This decouples EAPOL from the few dissectors it needs to call based
on packet type and moves registration to the dissectors themselves.
Change-Id: Ia8412fe33370f4aeece52c2c80cda7f140a950cf
Reviewed-on: https://code.wireshark.org/review/19328
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-eapol.h')
-rw-r--r-- | epan/dissectors/packet-eapol.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/epan/dissectors/packet-eapol.h b/epan/dissectors/packet-eapol.h new file mode 100644 index 0000000000..e4d9f0c06c --- /dev/null +++ b/epan/dissectors/packet-eapol.h @@ -0,0 +1,51 @@ +/* packet-eapol.h + * Common definitions for EAPOL protocol. + * Copyright 2016, Ethan Young <imfargo@gmail.com> + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1998 Gerald Combs + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef __PACKET_EAPOL_H__ +#define __PACKET_EAPOL_H__ + +/* EAPOL packet types. */ +#define EAPOL_EAP 0 +#define EAPOL_START 1 +#define EAPOL_LOGOFF 2 +#define EAPOL_KEY 3 +#define EAPOL_ENCAP_ASF_ALERT 4 +#define EAPOL_MKA 5 +#define EAPOL_ANNOUNCEMENT_GENERIC 6 +#define EAPOL_ANNOUNCEMENT_SPECIFIC 7 +#define EAPOL_ANNOUNCEMENT_REQUEST 8 + +#endif /* __PACKET_EAPOL_H__ */ + +/* + * Editor modelines - http://www.wireshark.org/tools/modelines.html + * + * Local variables: + * c-basic-offset: 4 + * tab-width: 8 + * indent-tabs-mode: nil + * End: + * + * vi: set shiftwidth=4 tabstop=8 expandtab: + * :indentSize=4:tabSize=8:noTabs=true: + */ |