Commit Graph

148 Commits

Author SHA1 Message Date
Jeff Morriss 8d32d2066a There's no need to pass the result of tvb_get_ptr() as the 'value' in
proto_tree_add_*(): just use proto_tree_add_item().

Replace some tvb_get_ptr()s with tvb_get_ephemeral_string() or
tvb_get_const_stringz().

Use tvb_memeql() & tvb_memcmp().

svn path=/trunk/; revision=35558
2011-01-16 20:51:21 +00:00
Chris Maynard 44955378b5 From Richard Sharpe via bug 5466: "Changes to dissect persistentreserveout
parameters", with some whitespace changes by me.

svn path=/trunk/; revision=35173
2010-12-10 15:49:33 +00:00
Chris Maynard c0565d8936 Improve dissection of bit-oriented fields. Patch from Richard Sharpe via
bug #5466 with some minor whitespace modifications from me and a fix of an
invalid offset introduced with the patch.  Fuzz testing still needs to be done.
I can't seem to get the fuzz tester to work with the capture files attached to
the bug report. 

svn path=/trunk/; revision=35137
2010-12-06 22:00:08 +00:00
Jeff Morriss a098de3e0a From Zachary Mark via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5457 :
The scsi_persresv_type_val field in packet-scsi.c contains a mapping of
persistent reservation opcodes to their descriptive types.  The opcode for the
Exclusive Access - Registrants Only field is incorrectly set to 7, when the
correct opcode is 6 (as per SPC-2 onward).  The attached patch corrects this
discrepancy.

The attached patch also adds support for dissecting opcodes 7 and 8, the two
all registrants reservation types present in SPC-3 onward.

svn path=/trunk/; revision=35099
2010-12-01 23:30:06 +00:00
Bill Meier 9675740701 Use value_string_ext fcns to access certain value_string arrays;
Sort several value_string arrays to be in ascending order.
Also: Minor whitespace cleanup.

svn path=/trunk/; revision=34766
2010-11-03 22:08:49 +00:00
Bill Meier 4a43e13976 Use value_string_ext to access several "relatively large" value-strings.
svn path=/trunk/; revision=34689
2010-10-29 17:48:39 +00:00
Anders Broman f1bdb63766 From Yaniv Kaul:
[PATCH] Add specific names to 'Flags' in packet-scsi.c
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5259

svn path=/trunk/; revision=34258
2010-09-27 06:05:24 +00:00
Bill Meier 055dd62063 #include <string.h> not needed.
svn path=/trunk/; revision=32410
2010-04-06 21:14:01 +00:00
Stig Bjørlykke 47e732e29e Changed "reassembled_length" -> "reassembled.length".
svn path=/trunk/; revision=31776
2010-02-03 08:47:15 +00:00
Stig Bjørlykke 88b72356ad Introduce "Reassembled length" filter element for all protocols doing
reassembly.

svn path=/trunk/; revision=31767
2010-02-02 16:01:52 +00:00
Stig Bjørlykke b228488bc0 From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
    for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
    FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero

svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
Bill Meier 10bb70f09d FT_BOOLEAN fields with bitmask: Display is 'parent bitfield width' not BASE...
svn path=/trunk/; revision=28316
2009-05-08 20:15:35 +00:00
Jaap Keuter a5e56107f2 From Reinhard Speyerer:
This patch fixes several misspellings/typos in Wireshark SVN revision 28201.

svn path=/trunk/; revision=28224
2009-05-01 07:19:31 +00:00
Bill Meier c0e92cbc04 Fix various typos and spelling errors (mostly in text strings)
svn path=/trunk/; revision=27065
2008-12-20 00:09:02 +00:00
Bill Meier 33c99f44fd Fix typos and spelling (mostly in text strings)
svn path=/trunk/; revision=27028
2008-12-17 00:08:38 +00:00
Bill Meier c3ea1560bd Minor cleanup related to proto_register and proto_reg_handoff
svn path=/trunk/; revision=26281
2008-09-26 22:07:45 +00:00
Bill Meier b3aa52f573 Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25307
2008-05-15 12:54:27 +00:00
Jeff Morriss bb323055b2 match_strval() may return NULL so don't blindly pass its return value into col_add_*() or proto_add_*(); use val_to_str() (returning "Unknown (%d)" if no match is found) instead.
svn path=/trunk/; revision=24557
2008-03-04 21:05:21 +00:00
Stig Bjørlykke f95de28c72 Updated scsi_verdesc_val from appendix D in spc-3.
Dump Inquiry Vendor Specific and Reserved fields as bytes.
(still missing dumping of Clocking/QAS/IUS bits)

svn path=/trunk/; revision=23060
2007-10-03 16:22:50 +00:00
Stig Bjørlykke 05043ca65d Use correct offset for sccs, bque and reladdr flags.
svn path=/trunk/; revision=23059
2007-10-03 15:00:58 +00:00
Guy Harris 5a43799a17 Use G_GINT64_MODIFIER, rather than the PRI[douxX]64 macros, for GLib
routines and routines using those routines.  GLib might use different
modifiers for 64-bit quantities than the platform's C library does.

svn path=/trunk/; revision=21990
2007-05-29 18:52:42 +00:00
Sebastien Tandel a7615a1afb another attempt to let windows buildbot becoming green
fix rev21398 (gcc warning fix)

svn path=/trunk/; revision=21412
2007-04-13 17:16:24 +00:00
Sebastien Tandel 42791e157b use of volatile for every functions and not only the ones using the Exception
mechanisms. (fix rev21398)

Windows buildbot sould be green again as formal parameters are the same as the
ones in the declaration now.

svn path=/trunk/; revision=21409
2007-04-13 15:23:47 +00:00
Stephen Fisher f002ac6db5 Fix various warnings
Move packet-cops.c out of clean dissectors due to a #define conflict
in the headers of net-snmp with our config.h


svn path=/trunk/; revision=21398
2007-04-13 00:50:23 +00:00
Jeff Morriss 4d21c49929 Get rid of some more g_assert*()'s in the dissectors. There are a few
remaining that I'm not sure exactly what to do with at the moment:
the one in packet-frame probably should be there, the others probably
shouldn't but they also should never fail unless there's a compile or build
problem (AFAICS).


svn path=/trunk/; revision=21367
2007-04-10 14:48:06 +00:00
Ulf Lamping f1a58d41d4 from Peter Johansson:
compilation warnings fixed

svn path=/trunk/; revision=21230
2007-03-27 21:20:19 +00:00
Stephen Fisher d565967b58 From Peter Johansson:
Fix warnings


svn path=/trunk/; revision=21214
2007-03-26 21:16:21 +00:00
Ulf Lamping 411249419d fix some more warnings (type casts)
svn path=/trunk/; revision=21141
2007-03-23 00:51:21 +00:00
Ronnie Sahlberg f6f95ea6a0 remove the revision number from the spc symbols
change all spc2 and spc3 to spc



svn path=/trunk/; revision=20779
2007-02-11 00:45:15 +00:00
Ronnie Sahlberg 9535fb5e42 dont encode a specific revision of the standard in the symbol names
change all symbols from smc2 to smc

svn path=/trunk/; revision=20778
2007-02-11 00:20:37 +00:00
Ronnie Sahlberg a99fb4ebb7 add the remaining TAPE ALERT log flags from ssc3r01c
svn path=/trunk/; revision=20719
2007-02-05 11:31:21 +00:00
Ronnie Sahlberg 059f550b16 add some infrastructure to enable us to dissect the content of LOG SENSE pages and parameters
dissect the READ WARNING flag in the TAPE-ALERT log page as an example


svn path=/trunk/; revision=20718
2007-02-05 09:39:36 +00:00
Ronnie Sahlberg c1ccab43aa update the LOG SELECT dissector slightly and harmonize the hf fields so both LOG SELECT and LOG SENSE use the same variables
svn path=/trunk/; revision=20703
2007-02-03 22:03:39 +00:00
Ronnie Sahlberg b06f81f4b4 updates to the LOG SELECT CDB decoding
svn path=/trunk/; revision=20696
2007-02-03 16:21:21 +00:00
Ronnie Sahlberg 9a0b5c4d4a use the correct offset to access the service action in PERSISTENT RESERVE IN
svn path=/trunk/; revision=20672
2007-02-01 20:10:51 +00:00
Stephen Fisher 7317125c33 From Patrick vd Lageweg:
The PERSISTENT REVERVE OUT dissectors uses the table of the PERSISTENT REVERVE
IN command to decode the Service Action field which is obviously not correct.
This patch fixes the problem.


svn path=/trunk/; revision=20631
2007-01-30 19:43:29 +00:00
Jaap Keuter f8be165898 From Patrick vd Lageweg:
This patch fixes three problems with the SCSI persistent reserve in command:
- The Additional length starts at offset 4 and not 0
- The len field contains the length used by the keys and doesn't include the header length. 
  So don't substract the header length from the length.
- The key list is traversed from the beginning to end end and not the other way around.

svn path=/trunk/; revision=20568
2007-01-26 17:06:17 +00:00
Gerald Combs e7bda1efe4 Attempt to squelch Coverity CID 222.
svn path=/trunk/; revision=20551
2007-01-25 06:45:09 +00:00
Jaap Keuter b99ce1a967 From Patrick vd Lageweg:
The "NUMBER OF BLOCKS" field in the SCSI MODE SENSE return data is 24 bits and not 32 bits. This patch fixes that.

svn path=/trunk/; revision=20462
2007-01-17 17:11:09 +00:00
Ronnie Sahlberg 34824cb310 change all sbc2 references into sbc
svn path=/trunk/; revision=20100
2006-12-10 13:52:30 +00:00
Ronnie Sahlberg 41c258daf3 create a nice helper to dissect bitmasks and implement some test useage of it in the scsi dissector
svn path=/trunk/; revision=20002
2006-11-27 14:50:23 +00:00
Ronnie Sahlberg 3dca5cbed9 break the SCSI SBC commandset out into its own dissector
svn path=/trunk/; revision=20000
2006-11-27 11:00:06 +00:00
Ronnie Sahlberg bd16443f38 add some missing commandsets to the preference for default commandset and to the scsi srt statistics
svn path=/trunk/; revision=19973
2006-11-24 08:22:30 +00:00
Jaap Keuter 14a576d293 From Patrick vd Lageweg:
This patch fixes a simple typo.

svn path=/trunk/; revision=19972
2006-11-24 07:28:02 +00:00
Ronnie Sahlberg 303187fad8 break the SCSI SMC commandset out into its own dissector
svn path=/trunk/; revision=19964
2006-11-23 09:21:16 +00:00
Ronnie Sahlberg 651ed76925 break the SCSI SSC commandset out into its own dissector
svn path=/trunk/; revision=19957
2006-11-22 10:12:59 +00:00
Ronnie Sahlberg b7e08d5059 ssc space6 count is a signed integer
svn path=/trunk/; revision=19956
2006-11-22 09:00:36 +00:00
Ronnie Sahlberg 541d2f8baa Patrick vd Lageweg <patrick@bitwizard.nl>
Hi,

The rease/release commands are also usable on SSC devices. This patch adds them to the valid SSC command.

        Patrick
_______________________________________________


svn path=/trunk/; revision=19947
2006-11-21 09:18:28 +00:00
Ronnie Sahlberg c0cccf43c2 start splitting the monolitic scsi dissector up into commandset dissectors
split the MMC commandset out of the main scsi dissector



svn path=/trunk/; revision=19738
2006-10-30 12:18:29 +00:00
Gerald Combs fb22815c2b Attempt to squelch Coverity CID 221.
svn path=/trunk/; revision=19678
2006-10-25 00:49:36 +00:00