EAPOL-MKA: Included fixes for the distributed sak handling.
authormaisheri <maisheri.hitesh@gmail.com>
Sat, 17 Jan 2015 08:35:38 +0000 (14:05 +0530)
committerAlexis La Goutte <alexis.lagoutte@gmail.com>
Sat, 17 Jan 2015 15:03:18 +0000 (15:03 +0000)
Change-Id: Id91ba408266f18a9336811bf9d8b875796ea0cc1
Reviewed-on: https://code.wireshark.org/review/6582
Reviewed-by: maisheri <maisheri.hitesh@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
.mailmap
AUTHORS
epan/dissectors/packet-mka.c

index 9361c5508c92e6e6664b79dfa491798855555929..54b1e0803abd079ccbcf0a9130e5802507582d82 100644 (file)
--- a/.mailmap
+++ b/.mailmap
@@ -14,6 +14,7 @@ Gilbert Ramirez <gram@alumni.rice.edu> <gilramir@cisco.com>
 Gerald Combs <gerald@wireshark.org> <gerald@zing.org>
 Hadriel Kaplan <hadrielk@yahoo.com> <hadriel@128technology.com>
 Hannes R. Boehm <hannes@boehm.org> hannes <hannes@localhost>
 Gerald Combs <gerald@wireshark.org> <gerald@zing.org>
 Hadriel Kaplan <hadrielk@yahoo.com> <hadriel@128technology.com>
 Hannes R. Boehm <hannes@boehm.org> hannes <hannes@localhost>
+Hitesh K. Maisheri <maisheri.hitesh@gmail.com> <hmaisher@cisco.com>
 Irene Rüngeler <ruengeler@wireshark.org> Irene Ruengeler <ruengeler@wireshark.org>
 Irene Rüngeler <ruengeler@wireshark.org> ruengeler <ruengeler@wireshark.org>
 Irene Rüngeler <ruengeler@wireshark.org> <I.Ruengeler@fh-muenster.de>
 Irene Rüngeler <ruengeler@wireshark.org> Irene Ruengeler <ruengeler@wireshark.org>
 Irene Rüngeler <ruengeler@wireshark.org> ruengeler <ruengeler@wireshark.org>
 Irene Rüngeler <ruengeler@wireshark.org> <I.Ruengeler@fh-muenster.de>
diff --git a/AUTHORS b/AUTHORS
index 5c700c2d92fd62a265136b9dfaa66216127ec191..8bf409e340bc39fd95288be6d9597448ab34019d 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -3644,6 +3644,9 @@ Enrico Jorns              <ejo[AT]pengutronix.de> {
        CANopen dissector enhancements and fixes
 }
 
        CANopen dissector enhancements and fixes
 }
 
+Hitesh K Maisheri       <maisheri.hitesh[AT]gmail.com> {
+        EAPOL-MKA support
+}
 
 and by:
 
 
 and by:
 
index 360df2a20e788024fdfb8529a1ae77c9dfdafcdd..346010958caf3b90fa278c4b0a89b7c285da4867 100644 (file)
@@ -1,5 +1,7 @@
 /* packet-mka.c
  * Routines for EAPOL-MKA 802.1X authentication header disassembly
 /* packet-mka.c
  * Routines for EAPOL-MKA 802.1X authentication header disassembly
+ * Copyright 2014, Hitesh K Maisheri <maisheri.hitesh@gmail.com>
+ *
  * (From IEEE Draft P802.1X/D11; is there a later draft, or a
  * final standard?  If so, check it.)
  *
  * (From IEEE Draft P802.1X/D11; is there a later draft, or a
  * final standard?  If so, check it.)
  *
@@ -335,14 +337,28 @@ dissect_distributed_sak(proto_tree *mka_tree, packet_info *pinfo, tvbuff_t *tvb,
     offset += 4;
 
     proto_tree_add_item(distributed_sak_tree, hf_mka_macsec_cipher_suite,
     offset += 4;
 
     proto_tree_add_item(distributed_sak_tree, hf_mka_macsec_cipher_suite,
-                        tvb, offset, 4, ENC_NA);
-    offset += 4;
+                        tvb, offset, 8, ENC_NA);
+    offset += 8;
 
     proto_tree_add_item(distributed_sak_tree, hf_mka_aes_key_wrap_sak,
                         tvb, offset, 24, ENC_NA);
     offset += 24;
     break;
 
 
     proto_tree_add_item(distributed_sak_tree, hf_mka_aes_key_wrap_sak,
                         tvb, offset, 24, ENC_NA);
     offset += 24;
     break;
 
+  case 50:
+    proto_tree_add_item(distributed_sak_tree, hf_mka_key_number,
+                        tvb, offset, 4, ENC_NA);
+    offset += 4;
+
+    proto_tree_add_item(distributed_sak_tree, hf_mka_macsec_cipher_suite,
+                        tvb, offset, 8, ENC_NA);
+    offset += 8;
+
+    proto_tree_add_item(distributed_sak_tree, hf_mka_aes_key_wrap_sak,
+                        tvb, offset, 38, ENC_NA);
+    offset += 38;
+    break;
+
   default:
     proto_tree_add_expert(distributed_sak_tree, pinfo, &ei_mka_undecoded, tvb, offset, distributed_sak_len);
     offset += distributed_sak_len;
   default:
     proto_tree_add_expert(distributed_sak_tree, pinfo, &ei_mka_undecoded, tvb, offset, distributed_sak_len);
     offset += distributed_sak_len;
@@ -716,7 +732,7 @@ proto_register_mka(void)
 
     { &hf_mka_macsec_cipher_suite, {
         "MACsec Cipher Suite", "mka.macsec_cipher_suite",
 
     { &hf_mka_macsec_cipher_suite, {
         "MACsec Cipher Suite", "mka.macsec_cipher_suite",
-        FT_BYTES, BASE_NONE, NULL, 0x0,
+        FT_UINT64, BASE_HEX, NULL, 0x0,
         NULL, HFILL }},
 
     { &hf_mka_kmd, {
         NULL, HFILL }},
 
     { &hf_mka_kmd, {