diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-03-23 12:17:23 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-03-23 19:18:51 +0000 |
commit | 2d7828794c0c79a3238ce71ec6f7f013245e9a88 (patch) | |
tree | 72ed953f6603e2cecd2ebefb054f49ddb087182c /epan/eapol_keydes_types.h | |
parent | 2a6e50ca7df17874c940db4ae6fd93abafbc5818 (diff) | |
download | wireshark-2d7828794c0c79a3238ce71ec6f7f013245e9a88.tar.gz |
Add a dissector table for EAPOL Key Descriptor types.
Instead of having a switch statement in the EAPOL dissector for Key
Descriptor types, have a dissector table, and:
have the EAPOL dissector register with a dissector for the RC4
type;
have the 802.11 dissector register with dissectors for WPA and
RSN types.
This means that ieee_80211_add_tagged_parameters() no longer needs to be
public; make it static.
Change-Id: I68e0592c3ea055c693d6d5d5a9eb88634ea37a95
Reviewed-on: https://code.wireshark.org/review/800
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/eapol_keydes_types.h')
-rw-r--r-- | epan/eapol_keydes_types.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/epan/eapol_keydes_types.h b/epan/eapol_keydes_types.h new file mode 100644 index 0000000000..4ec0788d0f --- /dev/null +++ b/epan/eapol_keydes_types.h @@ -0,0 +1,30 @@ +/* eapol_keydes_types.h + * Declarations of EAPOL Key Descriptor types + * + * 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 __EAPOL_KEYDES_TYPES_H__ +#define __EAPOL_KEYDES_TYPES_H__ + +#define EAPOL_RC4_KEY 1 /* RC4 - deprecated */ +#define EAPOL_RSN_KEY 2 /* 802.11i - "work in progress" */ +#define EAPOL_WPA_KEY 254 + +#endif /* __EAPOL_KEYDES_TYPES_H__ */ |