Wireshark-bugs: [Wireshark-bugs] [Bug 7754] New: Enable "Decode As" for Bluetooth L2CAP
Date: Tue, 25 Sep 2012 03:27:12 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7754

           Summary: Enable "Decode As" for Bluetooth L2CAP
           Product: Wireshark
           Version: SVN
          Platform: x86
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Low
         Component: Dissection engine (libwireshark)
        AssignedTo: bugzilla-admin@xxxxxxxxxxxxx
        ReportedBy: andrei.emeltchenko.news@xxxxxxxxx


Build Information:
Paste the COMPLETE build information from "Help->About Wireshark", "wireshark
-v", or "tshark -v".
--
I want to add decoding Bluetooth L2CAP packets with "Decode As". Dissectors
might be differentiated by "btl2cap.cid".

Do I understand right if I add handle like:

diff --git a/epan/dissectors/packet-btobex.c b/epan/dissectors/packet-btobex.c
index 965adc6..2934ca7 100644
--- a/epan/dissectors/packet-btobex.c
+++ b/epan/dissectors/packet-btobex.c
@@ -776,5 +776,7 @@ proto_reg_handoff_btobex(void)

     xml_handle  = find_dissector("xml");
     data_handle = find_dissector("data");
+
+    dissector_add_handle("btl2cap.cid", btobex_handle);
 }

then it should appear in "Decode As"? For some reason this is not working.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.