Ethereal-dev: Re: [Ethereal-dev] SCSI SPC-3 commands vs SPC-2 ...
On Mon, 11 Mar 2002 ddutt@xxxxxxxxx wrote:
> If you're attempting to decode OSD, the Inquiry response contains the
> peripheral type as 0x11 (byte 0, bits 0-4). You can save this information in
> the SCSI device type block and then decode later commands based on this.
Hi Dinesh ....
I would like to check my [somewhat limited] understanding of the SCSI spec
and SPC-3 vs SBC etc.
It seems to me that variable sized CDBs should have 0x7F as their OpCode
byte, and should be distinguished from each other through the Action
field. This field is a 16-bit field.
If so, I will probably make some changes to the SCSI dissector, and then
we can look to dissecting OSD.
Is this correct?
> Dinesh
> Richard Sharpe writes:
> > On Tue, 12 Mar 2002, Richard Sharpe wrote:
> >
> > > Hi,
> > >
> > > The current iSCSI dissector calls the SCSI dissector, which only
> > > understands SPC-2 SCSI commands, it seems.
> > >
> > > I need to be able to dissect OSD commands, which are carried in a CDB with
> > > an SPC-3 Variable Length CDB indicator (0x7F).
> >
> > Hmmm, the problem I am experiencing is because Ethereal's SCSI dissector
> > currently only understands SPC-2, SBC-2, and SSC-2. If the CDB Operation
> > Code is not found in the SPC-2 command set, tben the dissector searches
> > among the SBC-2 command set ... Which is where 0X7F is found :-(
> >
> > So, I need some way to tell what type of device we are talking about.
> > Better check what the iSCSI spec says. If it says SPC-3, then I can pass
> > an arg to the SCSI dissector telling it what command set to use.
> >
> > > What I am interested in knowing is: Is there an easy way to determine
> > > whether or not a stream is using SPC-3 or what? Is it carried in the iSCSI
> > > PDU or logon or something like that?
> > >
> > >
> >
> > --
> > Regards
> > -----
> > Richard Sharpe, rsharpe@xxxxxxxxxx, rsharpe@xxxxxxxxx,
> > sharpe@xxxxxxxxxxxx
> >
> >
> > _______________________________________________
> > Ethereal-dev mailing list
> > Ethereal-dev@xxxxxxxxxxxx
> > http://www.ethereal.com/mailman/listinfo/ethereal-dev
> >
>
>
--
Regards
-----
Richard Sharpe, rsharpe@xxxxxxxxxx, rsharpe@xxxxxxxxx,
sharpe@xxxxxxxxxxxx