aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-usb.c
AgeCommit message (Collapse)AuthorFilesLines
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
2012-10-04try to fix usb-related fuzz test crashesMartin Kaiser1-3/+1
in dissect_usb_interface_descriptor() and dissect_usb_endpoint_descriptor, the offset should be incremented depending on the number of bytes we dissected, not based on the len field (len field==0 would then cause an endless loop) also fixed one occurrence of old_offset-offset, that's probably a typo, the values will always be negative... svn path=/trunk/; revision=45310
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=45017
2012-09-11Add data parameter to dissector_try_heuristicJakub Zawadzki1-5/+5
svn path=/trunk/; revision=44871
2012-08-01remove unnecessary underscores from display filtersMichael Mann1-1/+1
svn path=/trunk/; revision=44181
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-05-17General Cleanup including:Bill Meier1-279/+280
- Remove unneeded #include <stdlib.h>; - Remove "README.developer" comments; - Reformat hf[] entries; - Remove unneeded variable initialization; - "localize" some variables; - Whitespace/indentation/long lines/formatting - (In one case) proto_tree_add_uint returns a proto_item* (not a proto_tree *); svn path=/trunk/; revision=42678
2012-04-27From Steve Magnani:Anders Broman1-2/+31
Add decoding of fields within endpoint descriptor wMaxPacketSize https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7206 svn path=/trunk/; revision=42286
2012-04-20Fix some Dead Store (Dead assignement/Dead increment) Warning found by ClangAlexis La Goutte1-1/+0
svn path=/trunk/; revision=42165
2012-04-10From Johannes Stezenbach:pascal1-1/+1
Use right value for SET_FEATURE request code https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7058 svn path=/trunk/; revision=42009
2012-03-31Fix off by one shift errors introduced in r39530 where it seemed proper[1]Jakub Zawadzki1-1/+1
[1] I'm unsure of packet-dtpt, so I haven't patch it. svn path=/trunk/; revision=41873
2012-03-21Fix fuzz failure reported in Jeff Morriss1-20/+22
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6976 : Don't assume that all responses have conversations to find. svn path=/trunk/; revision=41726
2012-03-21From Steve Magnani:Anders Broman1-12/+106
USB: incorrect generated bInterfaceClass for composite device CONTROL transactions. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6964 svn path=/trunk/; revision=41715
2012-03-17From Steve Magnani via ↵Jeff Morriss1-4/+4
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6963 : Conversation address generation during processing of endpoint descriptors is not being done in a manner consistent with that of general USB packet dissection. I am not aware of any observable manifestation of this bug. svn path=/trunk/; revision=41634
2012-03-11From Steve Magnani: knock URB Setup out from under USB URB ↵Anders Broman1-14/+14
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6934 svn path=/trunk/; revision=41492
2012-03-10From martijn: subdissectors for URB_INTERRUPT. ↵Anders Broman1-1/+37
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6929 svn path=/trunk/; revision=41459
2012-03-10From Steve Magnani: USB: centralize some common dissection code for class ↵Anders Broman1-60/+41
reuse. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6930 svn path=/trunk/; revision=41458
2012-03-07USB: unknown GET DESCRIPTOR response triggers assert failure ↵Anders Broman1-8/+2
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6826 svn path=/trunk/; revision=41388
2012-03-06From Steve Magnani: USB: incorrect decoding of Endpoint-targeted ↵Anders Broman1-2/+2
class-specific SETUP https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6910 svn path=/trunk/; revision=41371
2012-03-02Don't add an FT_BYTES with proto_tree_add_uint().Jeff Morriss1-9/+10
svn path=/trunk/; revision=41325
2012-02-27From Steve Magnani via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6873Alexis La Goutte1-6/+6
USB: SETUP information can be added to incorrect tree svn path=/trunk/; revision=41210
2012-02-23From Steve Magnani:Anders Broman1-5/+92
USB: Add dissection for Interface Association descriptor. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6842 svn path=/trunk/; revision=41157
2012-02-12From Steve Magnani:Anders Broman1-1/+13
USB: add infrastructure for dissecting class-specific descriptors. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6825 svn path=/trunk/; revision=40979
2012-02-11From Steve Magnani:Anders Broman1-2/+5
USB: support filtering of isochronous packets via usb.bInterfaceClass. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6824 svn path=/trunk/; revision=40973
2012-02-08From Steve Magnani:Anders Broman1-6/+6
USB: Endpoint bmAttributes not decoded correctly. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6814 svn path=/trunk/; revision=40939
2011-12-19Add support for dissecting AT commands in USB URB_CONTROL packets. Fixes ↵Chris Maynard1-6/+25
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6037 svn path=/trunk/; revision=40247
2011-10-24Fix encoding arg for various fcn calls:Bill Meier1-1/+1
- proto_tree_add_bits_item - proto_tree_add_bits_ret_val - proto_tree_add_bitmask - tvb_get_bits - tvb_get_bits16 - tvb_get_bits24 - tvb_get_bits32 - tvb_get_bits64 svn path=/trunk/; revision=39539
2011-10-23Replace use of tvb_get_ephemeral_faked_unicode() by use of ↵Bill Meier1-1/+1
tvb_get_ephemeral_unicode_string(); Fix encoding arg as needed. svn path=/trunk/; revision=39530
2011-10-18From Daniel via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6461 :Jeff Morriss1-0/+1
Register the USB dissector by name. svn path=/trunk/; revision=39453
2011-10-10 Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵Bill Meier1-5/+5
non-autogenerated epan/dissectors: Specifically: Replace FALSE|0 and TRUE|1 by ENC_BIG_ENDIAN|ENC_LITTLE_ENDIAN as the encoding parameter for proto_tree_add_item() calls which directly reference an item in hf[] which has a type of: FT_BOOLEAN FT_IPv4 FT_EUI64 FT_GUID FT_UINT_STRING Also: For type FT_ITv6 use ENC_NA. (This was missed in SVN #39260) svn path=/trunk/; revision=39328
2011-10-06Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵Bill Meier1-111/+111
non-autogenerated epan/dissectors: Specifically: Replace FALSE|0 and TRUE|1 by ENC_BIG_ENDIAN|ENC_LITTLE_ENDIAN as the encoding parameter for proto_tree_add_item() calls which directly reference an item in hf[] which has a type of: FT_UINT8 FT_UINT16 FT_UINT24 FT_UINT32 FT_UINT64 FT_INT8 FT_INT16 FT_INT24 FT_INT32 FT_INT64 FT_FLOAT FT_DOUBLE svn path=/trunk/; revision=39288
2011-10-04Use ENC_NA as encoding for proto_tree_add_item() calls which directly ↵Bill Meier1-2/+2
reference an hf item (in hf[] with types: FT_NONE FT_BYTES FT_IPV6 FT_IPXNET FT_OID Note: Encoding field set to ENC_NA only if the field was previously TRUE|FALSE|ENC_LITTLE_ENDIAN|ENC_BIG_ENDIAN svn path=/trunk/; revision=39260
2011-08-08No need to check that usb_trans_info is not NULL here. The only way it ↵Chris Maynard1-1/+1
could have been NULL is if se_alloc0() returned NULL, but then it would have already been dereferenced before now. Fixes Coverity CID 612, "REVERSE INULL". svn path=/trunk/; revision=38417
2011-05-10Allow both PPP and ISO/IEC 13818-1 over USB to be dissected using heuristics.Chris Maynard1-2/+16
Resolves bug 4814. svn path=/trunk/; revision=37039
2011-04-21Add #include <ctype.h> before #include "isprint.h";Bill Meier1-187/+188
Remove an unneeded line of code; Do some indentation & whitespace cleanup. svn path=/trunk/; revision=36785
2011-04-21Fix Dead Store (Dead assignement/Dead increment) Warning found by ClangAlexis La Goutte1-1/+0
svn path=/trunk/; revision=36765
2011-04-21Fix Dead Store (Dead nested assignment) Warning found by Clang Alexis La Goutte1-5/+5
svn path=/trunk/; revision=36761
2011-03-25Change urb_type from FT_STRING to FT_UINT8. This fixes the display filteringChris Maynard1-18/+5
for this field. This change was prompted because of the following query: http://ask.wireshark.org/questions/3113/usburb_type-values Also, remove 2 unused fields found by running tools/checkhf.pl. svn path=/trunk/; revision=36331