aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-scsi.h
AgeCommit message (Collapse)AuthorFilesLines
2013-05-18SCSI: Add dissection of REPORT SUPPORTED OPCODESRonnie Sahlberg1-1/+6
svn path=/trunk/; revision=49408
2013-03-01Export libwireshark symbols using WS_DLL_PUBLIC defineBalint Reczey1-1/+2
Also remove old WS_VAR_IMPORT define and related Makefile magic everywhere in the project. svn path=/trunk/; revision=47992
2013-02-27Move show_exception() and show_reported_bounds_error() toGuy Harris1-3/+0
epan/show_exception.c, as it's used outside epan/dissectors/packet-frame.c. Update their callers to include <epan/show_exception.h> to get their declaration. Add a CATCH_NONFATAL_ERRORS macro that catches all exceptions that, if there's more stuff in the packet to dissect after the dissector call that threw the exception, doesn't mean you shouldn't go ahead and dissect that stuff. Use it in all those cases, including ones where BoundsError was inappropriately being caught (you want those passed up to the top level, so that the packet is reported as having been cut short in the capture process). Add a CATCH_BOUNDS_ERRORS macro that catches all exceptions that correspond to running past the end of the data for a tvbuff; use it rather than explicitly catching those exceptions individually, and rather than just catching all exceptions (the only place that DissectorError should be caught, for example, is at the top level, so dissector bugs show up in the protocol tree). Don't catch and then immediately rethrow exceptions without doing anything else; just let the exceptions go up to the final catcher. Use show_exception() to report non-fatal errors, rather than doing it yourself. If a dissector is called from Lua, catch all non-fatal errors and use show_exception() to report them rather than catching only ReportedBoundsError and adding a proto_malformed item. Don't catch exceptions when constructing a trailer tvbuff in packet-ieee8023.c - just construct it after the payload has been dissected, and let whatever exceptions that throws be handled at the top level. Avoid some TRY/CATCH/ENDTRY cases by using checks such as tvb_bytes_exist() before even looking in the tvbuff. svn path=/trunk/; revision=47924
2012-07-27SCSI/ISCSI: Add decode of LUNs with address mode/bus and lunRonnie Sahlberg1-0/+2
Dont implement the complex "extended logical unit addressing format" just yet. That one is hairy so wait until we actually see it in the wild first. Add decoding of LUNs using single level lun structure and flat addressing space modes svn path=/trunk/; revision=44058
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-29SCSI SBC: Add dissection of GET_LBA_STATUS commandRonnie Sahlberg1-0/+1
svn path=/trunk/; revision=42897
2010-12-06Improve dissection of bit-oriented fields. Patch from Richard Sharpe viaChris Maynard1-0/+2
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-10-29Use value_string_ext to access several "relatively large" value-strings.Bill Meier1-4/+5
svn path=/trunk/; revision=34689
2010-07-21From Zachary Mark:Jaap Keuter1-2/+2
It appears that SCSI_SPC_ACCESS_CONTROL_IN is incorrectly set to opcode 0x85 where the actual opcode is 0x86. 0x85 is the opcode for the 16-byte version of the ATA PASSTHROUGH command of the SAT standards family. svn path=/trunk/; revision=33611
2008-11-22From Peter (bug 2942):Stig Bjørlykke1-1/+1
Allow optimalization with -ftracer. svn path=/trunk/; revision=26822
2007-04-13another attempt to let windows buildbot becoming greenSebastien Tandel1-4/+4
fix rev21398 (gcc warning fix) svn path=/trunk/; revision=21412
2007-04-13use of volatile for every functions and not only the ones using the ExceptionSebastien Tandel1-2/+2
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-13Change the prototypes of dissect_spc_inquiry() and dissect_spc_reportluns()Jeff Morriss1-2/+2
as per the change in rev 21398 to get Windows builds working again. svn path=/trunk/; revision=21403
2007-02-11remove the revision number from the spc symbolsRonnie Sahlberg1-49/+51
change all spc2 and spc3 to spc svn path=/trunk/; revision=20779
2006-11-27break the SCSI SBC commandset out into its own dissectorRonnie Sahlberg1-6/+0
svn path=/trunk/; revision=20000
2006-11-23break the SCSI SMC commandset out into its own dissectorRonnie Sahlberg1-17/+5
svn path=/trunk/; revision=19964
2006-11-22fix Win32 build: scsi_ssc2_vals -> scsi_ssc_valsUlf Lamping1-1/+0
svn path=/trunk/; revision=19958
2006-11-22break the SCSI SSC commandset out into its own dissectorRonnie Sahlberg1-1/+31
svn path=/trunk/; revision=19957
2006-10-30start splitting the monolitic scsi dissector up into commandset dissectorsRonnie Sahlberg1-0/+92
split the MMC commandset out of the main scsi dissector svn path=/trunk/; revision=19738
2006-10-13pass the relative data offset of data in/out pdu's to the scsi data in/out ↵Ronnie Sahlberg1-1/+2
dissector (dissect_scsi_payload) so that we can later add reassembly of data pdu's and also (if reassembly is disabled) only dissect the initial (offset==0) data pdu. dissect_scsi_payload() does not yet use this parameter. now that we have both data offset and expected data length/bidir expected data length and also the read/write flags availabe we have what we need to reassemble data in/out pdus (modulo overflow/underflow but those are so rare we can worry about them later). ndmp: ndmp conceptually always has a data in and a data out phase and never fragment the data into smaller pdu's os that dissector always report offset as 0. svn path=/trunk/; revision=19511
2006-10-12wireshark does not yet consume enough memory for me to be happyRonnie Sahlberg1-0/+1
pass conversation form the transports up to the scsi layer add tracking of conversation specific info to scsi osd add tracking of conversation+lun specific info to scsi osd for scsi osd add tracking of PARTITIONS and display in which frame they were created/removed svn path=/trunk/; revision=19505
2006-10-11add a task_flags bitmap and two lengths (data and bidirectional data)Ronnie Sahlberg1-0/+22
so that the two scsi transports FCP and ISCSI can provide the expected data transfer lengths to SCSI to allow SCSI reassembly. NDMP does not really need these hints since for NDMP (and also iscsi-lite) there is conceptually always both data in and data out phases and there is never any fragmentation. svn path=/trunk/; revision=19493
2006-10-11move the ITL and the ITLQ structure to packet-scsi.h where it belongsRonnie Sahlberg1-0/+46
svn path=/trunk/; revision=19492
2006-09-29add initial scsi osd dissector but only dissect sdbs that are impoerted ↵Ronnie Sahlberg1-0/+22
from SPC various changes to the existing scsi dissector to start allowing different commandsets to be implemented in their own dissector files to prevent the scsi dissector to become as huge as the parlay dissector svn path=/trunk/; revision=19360
2006-09-29move the defines for SPC command opcode values to the headerfileRonnie Sahlberg1-0/+33
svn path=/trunk/; revision=19359
2006-06-20Change ETH_VAR_IMPORT to WS_VAR_IMPORT. Try to fix a duplicate variableGerald Combs1-3/+3
definition in the Catapult DCT2000 code. svn path=/trunk/; revision=18524
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18196
2006-04-25rename some value_Strings from ..._val to ..._valsRonnie Sahlberg1-3/+3
svn path=/trunk/; revision=17991
2006-04-25fix win32 build:Ulf Lamping1-3/+3
scsi_mmc_val DATA scsi_sbc2_val DATA scsi_ssc2_val DATA BTW: these values should be renamed to ..._vals as in every other dissector I know! svn path=/trunk/; revision=17989
2006-04-24SCSI Service Response Time StaisticsRonnie Sahlberg1-0/+4
svn path=/trunk/; revision=17984
2006-04-24change the signature for dissect_scsi_snsinfo() to take itlq and itl structuresRonnie Sahlberg1-1/+1
update the comment in packet-scsi.c to reflect that it is the transport now that is responsible to track itl and itlq data make scsi tapable svn path=/trunk/; revision=17974
2006-04-22the scsi transports (fc/fcp and iscsi) now track both itl and itlqRonnie Sahlberg1-11/+0
structures for scsi. we no longer need the scsi_task_id structure passed by pinfo->private_data so get rid of it. we no longer need the (broken by design) scsi_task_data hash table since this has been replaced byt hte itl and itlq structures and tracking svn path=/trunk/; revision=17952
2006-04-21remover the lun parameter from dissect_scsi_cdb/payload since this is now ↵Ronnie Sahlberg1-2/+2
part of the exchange data in itlq remove the two fields opcode and devtype from the scsi_task_data structure since these are also part of the itlq and itl structures svn path=/trunk/; revision=17949
2006-04-21updates to get the fc and scsi dissectorsRonnie Sahlberg1-3/+3
and get rid of some breakage in the design let the scsi transport keep track of itl (initiator, target, lun) matching and let it pass a itl structure to scsi that is persistent across packets. let scsi use this itl structure to track device type for a specific itl instead of the (must have been) broken hashtable. update both iscsi and fc to track the itl structure for scsi and schange the scsi signature to accept itl as a parameter. more to come. svn path=/trunk/; revision=17942
2006-04-20rename the fc_exchange_data structure to the more appropriate itlq_nexus_tRonnie Sahlberg1-1/+1
svn path=/trunk/; revision=17921
2006-04-07make dissect_scsi_rsp() take an exchange structure as parameter instead of ↵Ronnie Sahlberg1-1/+1
just a lun. this finally allows us to have scsi.time for scsi transactions but we need to cleanup and refactor the other three scsi entrypoints before we should implement scsi srt to make the other three also take an exchange data structure as parameter from their transports (and get rid of the pinfo->private_data ) svn path=/trunk/; revision=17838
2005-05-29remove offset and len from the signature of dissect_scsi_payload()Ronnie Sahlberg1-2/+2
svn path=/trunk/; revision=14473
2005-05-29make all callers of dissect_scsi_cdb() first create a new subset tvbRonnie Sahlberg1-1/+1
change the signature for dissect_scsi_cdb since we no longer need to pass offset over. svn path=/trunk/; revision=14472
2005-02-17pass lun (and status) to scsi subdissector so we can filterRonnie Sahlberg1-4/+4
on scsi.lun and prettify the summary line a bit. ndmp still needs some work to track luns between commands and fcp needs verification it works for volumesetaddressing. svn path=/trunk/; revision=13420
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-0/+83
Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410