SCSI dissection in wireshark is a bit different than most other protocols. There is no real protocol handler, instead you call out directly to the "dissect CDB", "dissect data-in" "dissect data-out" "dissect sense" etc.
In order to do this you also need to collect some additional metadata and track things like conversations etc. But this should be fairly straightforward. SCSI dissector is called today from at least : iSCSI, FCP, NDMP, USB, and a handful of other layers too. Have a look at the iSCSI dissector. I think that should be a good example on how / what to track and how to invoke the SCSI dissection. On Tue, Mar 5, 2013 at 1:09 AM, Carmel Bregman <[email protected]> wrote: > Hello all, > > > > I’m working on a dissector for SRP (SCSI RDMA Protocol). > > I have the SRP header parsing complete and I have a short question: > > > > How do I parse CDB as SCSI cmd? I assume that this is done in FC but I > couldn’t figure out how it’s done – can you help me here? > > > > Thanks, > > Carmel Bregman > > > ___________________________________________________________________________ > Sent via: Wireshark-dev mailing list <[email protected]> > Archives: http://www.wireshark.org/lists/wireshark-dev > Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev > mailto:[email protected]?subject=unsubscribe ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <[email protected]> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:[email protected]?subject=unsubscribe
