summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-usb-ccid.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-11-21 01:18:23 +0000
committerMichael Mann <mmann78@netscape.net>2013-11-21 01:18:23 +0000
commit3111b6c88968bec609dfc04912f6cfaf65a6927a (patch)
tree42fb760fbefc0b94d25f750cb9b295aa0df257a0 /epan/dissectors/packet-usb-ccid.c
parent091fd3d12b70cb91a04130fe4372885ac23c87a0 (diff)
downloadwireshark-3111b6c88968bec609dfc04912f6cfaf65a6927a.tar.gz
USB CCID and PN532_HCI can be now used in Decode As. Bug 9445 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9445)
From Michal Labedzki svn path=/trunk/; revision=53463
Diffstat (limited to 'epan/dissectors/packet-usb-ccid.c')
-rw-r--r--epan/dissectors/packet-usb-ccid.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/epan/dissectors/packet-usb-ccid.c b/epan/dissectors/packet-usb-ccid.c
index bd528bb3e0..ce46a504ce 100644
--- a/epan/dissectors/packet-usb-ccid.c
+++ b/epan/dissectors/packet-usb-ccid.c
@@ -73,6 +73,8 @@ static int hf_ccid_wLcdLayout = -1;
static int hf_ccid_bPINSupport = -1;
static int hf_ccid_bMaxCCIDBusySlots = -1;
+static dissector_handle_t usb_ccid_handle;
+
static const int *bVoltageLevel_fields[] = {
&hf_ccid_bVoltageSupport50,
&hf_ccid_bVoltageSupport30,
@@ -671,21 +673,24 @@ proto_register_ccid(void)
ccid_dissector_table = register_dissector_table("usbccid.payload",
"USBCCID Payload", FT_UINT8, BASE_DEC);
- new_register_dissector("usbccid", dissect_ccid, proto_ccid);
+ usb_ccid_handle = new_register_dissector("usbccid", dissect_ccid, proto_ccid);
}
/* Handler registration */
void
proto_reg_handoff_ccid(void)
{
- dissector_handle_t usb_ccid_bulk_handle, usb_ccid_descr_handle;
+ dissector_handle_t usb_ccid_descr_handle;
usb_ccid_descr_handle = new_create_dissector_handle(
dissect_usb_ccid_descriptor, proto_ccid);
dissector_add_uint("usb.descriptor", IF_CLASS_SMART_CARD, usb_ccid_descr_handle);
- usb_ccid_bulk_handle = find_dissector("usbccid");
- dissector_add_uint("usb.bulk", IF_CLASS_SMART_CARD, usb_ccid_bulk_handle);
+ dissector_add_uint("usb.bulk", IF_CLASS_SMART_CARD, usb_ccid_handle);
+
+ dissector_add_handle("usb.device", usb_ccid_handle);
+ dissector_add_handle("usb.product", usb_ccid_handle);
+ dissector_add_handle("usb.protocol", usb_ccid_handle);
sub_handles[SUB_DATA] = find_dissector("data");
sub_handles[SUB_ISO7816] = find_dissector("iso7816");