aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-scsi.c
AgeCommit message (Collapse)AuthorFilesLines
2005-08-14add dissection of two more SSC commandsRonnie Sahlberg1-55/+135
add 4 commands from SMC to the SSC tables. the fallback for missing commands/i.e. commands defined outside the SSC only handles SPC I.e. If a command for SSC is missing in the SSC tables, assume it might be imported from SPC instead. This fallback only works with opcodes imported from SPC. svn path=/trunk/; revision=15345
2005-08-13Get rid of unused variables.Guy Harris1-27/+24
Use "tvb_format_text()" and friends to format strings for display. Don't throw an exception on errors if we can keep dissecting. Use "PROTO_ITEM_SET_GENERATED()" to mark items as generated. If an item covers real data, it's not generated. Dissect WRITE FILEMARKS (6) (we already had a dissector, but it wasn't being used). svn path=/trunk/; revision=15341
2005-08-12remove some unused variables from scsiRonnie Sahlberg1-4/+0
change two gmemchunks in smtp to se_alloc() and remove one now redundant init routine. svn path=/trunk/; revision=15308
2005-08-12add missing include to scsiRonnie Sahlberg1-0/+1
change two gmemchunks to se_alloc() for msproxy svn path=/trunk/; revision=15307
2005-08-12oops forgot to delete a variableRonnie Sahlberg1-1/+0
svn path=/trunk/; revision=15304
2005-08-12 get rid of some unnessecary GMemChunks.Ronnie Sahlberg1-38/+4
These GMemChunks are used here because : 1, GMemChunks are cheap to allocate and cheap to free 2, We always unconditionally free the entire chunk When and only when we load a new capture. ==> se_alloc() does exactly the same thing but with significantly less code ==> se_alloc() is a much better fit to out allocation requirements and useage than GMemChunks svn path=/trunk/; revision=15303
2005-08-11fix several bugs where we might dereference a null pointerRonnie Sahlberg1-10/+19
svn path=/trunk/; revision=15289
2005-08-10When we receive junk data, mark it as a malformed packet instead ofGerald Combs1-8/+14
a dissector bug. This keeps buildbot from opening unnecessary bugs during fuzz testing. When we create a new scsi_task_data_t struct make sure all of its members are initialized. svn path=/trunk/; revision=15278
2005-08-05More char -> const char warning fixesJörg Mayer1-1/+1
svn path=/trunk/; revision=15218
2005-07-30Widen a variable, as a guint16 value is assigned to it; the upper 8 bitsGuy Harris1-4/+2
might be irrelevant in this case, but we might as well not throw them out. Clean up some code that sets "cdata->flags". svn path=/trunk/; revision=15149
2005-06-26Get rid of the private "my_match_strval()" routine in many dissectors;Guy Harris1-2/+2
add a "match_strval_idx()" routine that does the same thing, and have "match_strval()" call it. Make those routines, and "val_to_str()", return a "const" pointer. Update dissectors as necessary to squelch compiler warnings produced by that. Use "val_to_str()" rather than using "match_strval()" and then, if the result is null, substituting a specific string. Clean up some other "match_strval()"/"val_to_str()" usages. Add a null pointer check in the NDPS dissector's "attribute_value()" routine, as it's not clear that "global_attribute_name" won't be null at that point. Make some global variables in the AFS4INT dissector local. Make some routines not used outside the module they're in static. Make some tables "static const". Clean up white space. Fix Gerald's address in some files. svn path=/trunk/; revision=14786
2005-05-30add MMC READ DISC INFORMATION cdbRonnie Sahlberg1-5/+149
svn path=/trunk/; revision=14486
2005-05-30add MMC READ TRACK INFORMATION cdbRonnie Sahlberg1-28/+153
svn path=/trunk/; revision=14485
2005-05-29add MMC RESERVE TRACK cdbRonnie Sahlberg1-1/+26
svn path=/trunk/; revision=14476
2005-05-29MMC SET STREAMING commandRonnie Sahlberg1-2/+99
svn path=/trunk/; revision=14475
2005-05-29remove offset and len from the signature of dissect_scsi_payload()Ronnie Sahlberg1-2/+4
svn path=/trunk/; revision=14473
2005-05-29make all callers of dissect_scsi_cdb() first create a new subset tvbRonnie Sahlberg1-5/+5
change the signature for dissect_scsi_cdb since we no longer need to pass offset over. svn path=/trunk/; revision=14472
2005-05-29minor prettificationRonnie Sahlberg1-1/+5
in the decode pane for the SCSI protocol, put the name of the CDB on the protocol line svn path=/trunk/; revision=14470
2005-05-28add MMC READ BUFFER CAPACITY commandRonnie Sahlberg1-1/+64
svn path=/trunk/; revision=14467
2005-05-28add the SynchronizeCache command for MMCRonnie Sahlberg1-1/+38
svn path=/trunk/; revision=14466
2005-05-28updates to mmc, add more dissection of GET_CONFIGURATION and READ_TOCRonnie Sahlberg1-2/+507
svn path=/trunk/; revision=14464
2005-05-28some more MMC4 updatesRonnie Sahlberg1-13/+96
svn path=/trunk/; revision=14462
2005-05-28more scsi refactoringRonnie Sahlberg1-129/+391
starting to implement MMC codeset : CDROM/DVD svn path=/trunk/; revision=14461
2005-05-28refactor scsi dissector toi be table driven so it will be easier to add new Ronnie Sahlberg1-620/+1209
commandsets. svn path=/trunk/; revision=14460
2005-05-14add decoding of teh REMOVABLE bit in inquiry dataRonnie Sahlberg1-0/+10
svn path=/trunk/; revision=14364
2005-05-14add a missing field to the REPORT LUNS datain pduRonnie Sahlberg1-0/+13
svn path=/trunk/; revision=14363
2005-03-26With the recent change that makes the length field for FT_PROTOCOL andGuy Harris1-3/+0
FT_NONE be, in effect, unsigned, it's no longer necessary to check for a so-large-it-doesn't-fit-in-a-signed-value length for items of those types. svn path=/trunk/; revision=13918
2005-03-26buildbot bugfix: if a length value is below zero, trim it to zeroUlf Lamping1-0/+3
svn path=/trunk/; revision=13912
2005-03-18from Ming ZhangRonnie Sahlberg1-2/+2
fix incorrect offset for a field in the READ ELEMENT STATUS cdb svn path=/trunk/; revision=13799
2005-02-25start dissecting serviceactionin16Ronnie Sahlberg1-20/+102
svn path=/trunk/; revision=13523
2005-02-17minor prettificationRonnie Sahlberg1-6/+6
svn path=/trunk/; revision=13421
2005-02-17pass lun (and status) to scsi subdissector so we can filterRonnie Sahlberg1-33/+109
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
2005-01-29Treat the command opcodes as SBC-2 for CD-ROMs as well as for blockGuy Harris1-0/+1
devices. svn path=/trunk/; revision=13199
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
2004-08-22Add "tvb_get_ntoh64()" and "tvb_get_letoh64()" routines to fetch 64-bitGuy Harris1-15/+14
integers. Make FT_INT64 and FT_UINT64 add numerical values, rather than byte-array values, to the protocol tree, and add routines to add specified 64-bit integer values to the protocol tree. Use those routines in the RSVP dissector. svn path=/trunk/; revision=11796
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-0/+5337
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