aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-usb.c
AgeCommit message (Collapse)AuthorFilesLines
2013-11-29Expand macros: htoles(), htolel(), htolell()Jakub Zawadzki1-10/+9
svn path=/trunk/; revision=53651
2013-11-28GUINT_TO_POINTER() does just enough casting to suppress complaints aboutGuy Harris1-2/+2
32-bit integers and 64-bit pointers, so it needs to be handed a guint (or equivalent type); it doesn't suppress warnings about 8-bit or 16-bit integers, so those have to be cast up to guint first. svn path=/trunk/; revision=53630
2013-11-28USB: Enable Decode As. Bug 9445 ↵Michael Mann1-11/+138
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9445) From Michal Labedzki From me: Have #defines in packet-usb.c because they are only used in the module. Break out the value computation so that it can be properly wrapped in GUINT_TO_POINTER without adding more complexity. svn path=/trunk/; revision=53625
2013-11-27Create/use several extended value_strings;Bill Meier1-13/+31
Add editor modelines. svn path=/trunk/; revision=53613
2013-11-21Fix DecodeBy priorities. Bug 9445 ↵Michael Mann1-41/+18
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9445) From Michal Labedzki. svn path=/trunk/; revision=53462
2013-11-12From Michal LabedzkiMartin Kaiser1-0/+3
add forward declarations https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9333 svn path=/trunk/; revision=53287
2013-11-12Remove usb_conv_info_t from packet_info and pass the data directly into the ↵Michael Mann1-82/+49
subdissectors. Bug 9413 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9413) svn path=/trunk/; revision=53274
2013-11-10Add missing includes in order to remove exceptions.h from proto.h (next commit).Jakub Zawadzki1-0/+1
svn path=/trunk/; revision=53230
2013-11-09include <wsutil/pint.h> only when needed.Jakub Zawadzki1-0/+1
svn path=/trunk/; revision=53196
2013-10-31USB/PN532: Fix dissector to use new dissector *data instead of ↵Michael Mann1-35/+55
private_data. Bug 9333 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9333) From Michal Labedzki svn path=/trunk/; revision=53003
2013-10-27From Michal Labedzki via ↵Pascal Quantin1-5/+46
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9333 : USB: Decode HID interface subclasses and protocols svn path=/trunk/; revision=52903
2013-10-27From Michal Labedzki via ↵Pascal Quantin1-3/+66
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9333 : USB: Decode CDC subclasses and protocols svn path=/trunk/; revision=52901
2013-10-22Pass usb_data_t "private data" into subdissectors instead of using ↵Michael Mann1-9/+4
pinfo->private_data. svn path=/trunk/; revision=52750
2013-10-13whitespace fixes; mostly: remove trailing blanksBill Meier1-2/+2
svn path=/trunk/; revision=52591
2013-09-22emem -> wmem conversion:Pascal Quantin1-2/+2
- ep_tvb_get_bits() -> wmem_packet_tvb_get_bits() - tvb_g_memdup()/ep_tvb_memdup() -> tvb_memdup() - tvb_fake_unicode()/tvb_get_ephemeral_faked_unicode() -> tvb_get_faked_unicode() - tvb_get_g_string()/tvb_get_ephemeral_string()/tvb_get_seasonal_string() -> tvb_get_string() - tvb_get_g_unicode_string()/tvb_get_ephemeral_unicode_string() -> tvb_get_unicode_string() - tvb_get_ephemeral_string_enc() -> tvb_get_string_enc() - update docs accordingly svn path=/trunk/; revision=52172
2013-09-02dissect_usb_descriptor_header() takes an additional value_stringMartin Kaiser1-16/+27
parameter to intrepret the descriptor type depending on the class per default, the list of standard descriptor types is used svn path=/trunk/; revision=51642
2013-09-02remove class specific descriptor types from the global listMartin Kaiser1-23/+14
rename the value string to std_descriptor_type_vals_ext in order to clarify that this is for the standard descriptors only svn path=/trunk/; revision=51641
2013-09-02display usb descriptor type as hex valueMartin Kaiser1-1/+1
this is what all the class specs do svn path=/trunk/; revision=51637
2013-08-27register a dissector for HID class specific descriptorsMartin Kaiser1-1/+0
start dissecting the HID descriptor svn path=/trunk/; revision=51528
2013-08-14use the correct length for the tvbuff of an unknown usb descriptorMartin Kaiser1-1/+1
svn path=/trunk/; revision=51359
2013-08-05Keep result of [new_]register_dissector in some dissectors.Jakub Zawadzki1-3/+3
svn path=/trunk/; revision=51156
2013-07-31Convert the USB dissectors to wmem.Evan Huus1-27/+27
svn path=/trunk/; revision=51042
2013-07-03expert_add_info_format_text + proto_tree_add_text = ↵Michael Mann1-5/+2
proto_tree_add_expert_format, where applicable. svn path=/trunk/; revision=50377
2013-06-14Removed check_col() and the occasional tree.Michael Mann1-24/+15
svn path=/trunk/; revision=49938
2013-05-28Batch of filterable expert infos. This (mostly) completes the non-ASN.1 ↵Michael Mann1-3/+15
list of (built-in) dissectors that only had a small handful of add_expert_info_format calls. svn path=/trunk/; revision=49602
2013-04-14From Tomasz Mon via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8503 :Pascal Quantin1-141/+629
Add USBPcap support svn path=/trunk/; revision=48847
2013-03-30From Michal Labedzki via ↵Evan Huus1-1/+1
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8509 Round 2 of Bluetooth SDP updates: - replace a lot of proto_tree_add_text with named fields - dissect more of the protocol - misc fixes svn path=/trunk/; revision=48655
2013-03-19From beroset:Anders Broman1-1/+1
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 svn path=/trunk/; revision=48430
2013-03-18From Michal Labedzki:Anders Broman1-11/+21
USB: Use hfi name instead of hardcoded value. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8304 svn path=/trunk/; revision=48385
2013-03-17From beroset:Anders Broman1-14/+14
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 svn path=/trunk/; revision=48356
2013-03-07From Max Baker via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8431Evan Huus1-5/+18
Add a few member variables to the USB conversation structure, necessary for a USB PTP dissector. svn path=/trunk/; revision=48184
2013-03-01From Steve Magnani via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8338Evan Huus1-17/+24
Centralize logic related to per-interface conversations, and expose it for use by class-specific dissectors. Class-specific descriptor dissectors also need to know the interface in whose context they are called to work. This is a prerequisite for a USB Video Class dissector, which needs to decode many class-specific descriptors. svn path=/trunk/; revision=47990
2013-02-19How can I get a new tvbuff that starts at an offset within a givenGuy Harris1-1/+1
tvbuff and runs to the end of the tvbuff? Let me count the ways.... Replace a bunch of different ways of doing that (some incorrect, in that they're not properly handling tvbuffs where the captured and reported lengths are different) with tvb_new_subset_remaining(). svn path=/trunk/; revision=47751
2013-02-15From Steve Magnani via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8264Evan Huus1-25/+31
Improve handling of truncated USB Configuration descriptors. In contrast to other descriptor types, configuration descriptors have varying lengths and may be quite long. This makes them much more prone to truncation by a host that is cautious about reading large descriptors. A real-world case has arisen where a host requests a partial configuration descriptor of a USB webcam, and wireshark improperly reports that the response is malformed. Change configuration descriptor dissection to distinguish between truncation induced by the host, which is not an error, and descriptor truncation or reporting of invalid descriptor lengths by the device, which are. This patch also relieves class-specific dissectors of the burden of checking that the descriptor length and type fields are available, and that all the bytes claimed by the descriptor length are also available. svn path=/trunk/; revision=47676
2013-01-31Use '#if 0 ... #endif' rather than /** ... **/ to comment outBill Meier1-2/+2
unused hf[] entries (which I should have done in the first place). svn path=/trunk/; revision=47390
2013-01-26Comment out cases of unused hf array entries found by checkhf.Bill Meier1-1/+3
svn path=/trunk/; revision=47302
2013-01-22#include <epan/reassemble.h> not needed.Bill Meier1-1/+0
svn path=/trunk/; revision=47212
2012-12-03From Michal Labedzki:Anders Broman1-0/+2
Bluetooth: Fix uninitialized fields on the USB side Also make indentation/spaces cleanup in hci_usb dissector. Part of: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5032 svn path=/trunk/; revision=46341
2012-11-30From Michal Labedzki:Anders Broman1-42/+210
PATCH] USB: Add support for vendor_id/product_id, bus_id/device_address and class/subclass/protocol tables USB subdissectors can be decoded by class/subclass/protocol. If fail try vendor_id/product_id. bus_id/device_address is intented to use by DecodeBy, so user can decode specified device as need. Part of: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5032 svn path=/trunk/; revision=46306
2012-11-29From Michal Labedzki:Anders Broman1-8/+9
USB: Add support for vendor_id/product_id, bus_id/device_address and class/subclass/protocol tables USB subdissectors can be decoded by class/subclass/protocol. If fail try vendor_id/product_id. bus_id/device_address is intented to use by DecodeBy, so user can decode specified device as need. Part of: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5032 svn path=/trunk/; revision=46283
2012-11-29Remove the second definition of a variable. Define an undefined variable.Jeff Morriss1-2/+1
svn path=/trunk/; revision=46282
2012-11-29From Michal Labedzki:Anders Broman1-4/+16
USB: Add support for vendor and product names from usb.ids database Part of: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5032 svn path=/trunk/; revision=46280
2012-11-29From Michal Labedzki:Anders Broman1-66/+119
USB: Update some descriptions found in USB 3.0 specification Part of: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5032 svn path=/trunk/; revision=46279
2012-11-28"??" introduces a trigraph in C; escape "???" to avoid that.Guy Harris1-2/+2
svn path=/trunk/; revision=46256
2012-11-28Fix a [-Wshadow] warning;Bill Meier1-407/+572
Also: - create/use several extended variable strings; - remove some uneeded variable initializers; - reformat some long lines; - reformat hf[] entries; - do some whitespace and formatting changes to use a consistent style. svn path=/trunk/; revision=46253
2012-11-07From Tomasz MonMartin Kaiser1-3/+25
handle USB string type descriptors with odd bLength dissect them by omitting the last byte and report the illegal length https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7959 svn path=/trunk/; revision=45964
2012-11-05From Steve Magnani:Anders Broman1-0/+5
Add display of (bInterfaceNumber.bAlternateSetting) and bInterfaceClass to the root item of INTERFACE descriptor subtrees. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7957 svn path=/trunk/; revision=45930
2012-10-23From Steve MagnaniMartin Kaiser1-4/+6
fix USB descriptor parsing https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7909 svn path=/trunk/; revision=45742
2012-10-08From Steve Magnani via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7796Evan Huus1-9/+15
Add summary information to USB isodesc trees to make interesting descriptors obvious to the user. svn path=/trunk/; revision=45403
2012-10-06Fix error caught by valgrind where we were running off the end of aEvan Huus1-7/+10
variable because we were passing the address of a single guint8 as a char*. Work around it by making the guint8 an array and filling the last element with 0 as if it were a null-terminated string. svn path=/trunk/; revision=45339