Wireshark-bugs: [Wireshark-bugs] [Bug 2512] Need EAP decoder to decode PKM_ATTR_PKM_EAP_PAYLOAD

Date: Mon, 28 Apr 2008 19:27:49 -0700 (PDT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2512





--- Comment #1 from cfreeer <cfreeer@xxxxxxxxxxxx>  2008-04-28 19:27:45 GMT ---
My patch, tested with my capture file.

--- wireshark/plugins/wimax/wimax_utils.c       2008-04-09 10:33:07.000000000
+0800
+++ wimax_utils.c       2008-04-29 10:22:41.000000000 +0800
@@ -84,6 +84,8 @@
 static guint scheduling_service_type = -1;
 gint seen_a_service_type = 0;

+static dissector_handle_t eap_handle;
+
 /* The following two functions set and access the variables above */
 guint get_service_type( void )
 {
@@ -1689,6 +1691,8 @@
                proto_register_field_array(proto_wimax_utility_decoders,
hf_snp, array_length(hf_snp));
                proto_register_field_array(proto_wimax_utility_decoders,
hf_pkm, array_length(hf_pkm));
                proto_register_field_array(proto_wimax_utility_decoders,
hf_common_tlv, array_length(hf_common_tlv));
+        
+        eap_handle = find_dissector("eap");
        }
 }

@@ -2945,7 +2949,10 @@
                        break;
                        case PKM_ATTR_PKM_EAP_PAYLOAD:
                                tlv_tree = add_tlv_subtree(&tlv_info,
ett_pkm_tlv_encoded_attributes_decoder, tree, hf_pkm_attr_eap_payload, tvb,
offset, tlv_len, FALSE);
-                               proto_tree_add_item(tlv_tree,
hf_pkm_attr_eap_payload, tvb, offset, tlv_len, FALSE);
+                               /*proto_tree_add_item(tlv_tree,
hf_pkm_attr_eap_payload, tvb, offset, tlv_len, FALSE);*/
+                
+                call_dissector(eap_handle, tvb_new_subset(tvb, offset,
tlv_len,
+                                            tlv_len), pinfo, tlv_tree);
                        break;
                        case PKM_ATTR_PKM_NONCE:
                                tlv_tree = add_tlv_subtree(&tlv_info,
ett_pkm_tlv_encoded_attributes_decoder, tree, hf_pkm_attr_nonce, tvb, offset,
tlv_len, FALSE);


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.