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-mka.c | |
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-mka.c')
-rw-r--r-- | epan/dissectors/packet-mka.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/epan/dissectors/packet-mka.c b/epan/dissectors/packet-mka.c index 5eae03e741..32a6eaf065 100644 --- a/epan/dissectors/packet-mka.c +++ b/epan/dissectors/packet-mka.c @@ -29,6 +29,8 @@ #include <epan/packet.h> #include <epan/expert.h> +#include "packet-eapol.h" + #define BASIC_PARAM_SET_TYPE 1 #define LIVE_PEER_LIST_TYPE 1 #define POTENTIAL_PEER_LIST_TYPE 2 @@ -39,6 +41,7 @@ #define ICV_TYPE 255 void proto_register_mka(void); +void proto_reg_handoff_mka(void); static int proto_mka = -1; @@ -777,6 +780,15 @@ proto_register_mka(void) } +void +proto_reg_handoff_mka(void) +{ + static dissector_handle_t mka_handle; + + mka_handle = create_dissector_handle(dissect_mka, proto_mka); + dissector_add_uint("eapol.type", EAPOL_MKA, mka_handle); +} + /* * Editor modelines * |