Ethereal-dev: [Ethereal-dev] wrong "malformed packet" mark

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ming Zhang <mingz@xxxxxxxxxxx>
Date: Fri, 10 Mar 2006 20:24:56 -0500
latest svn code.

since the get configuration cmd only allocated 8 bytes, so even the
response packet shows that it can have 322bytes data to return, it will
only return 8 bytes. this conform the scsi standard.

but i guess the dissector tried to decode all data base on that 322
bytes, then it report a malform packet here.

any idea on this?

------------------------------------------
iSCSI (SCSI Command)
    Opcode: SCSI Command (0x01)
    .0.. .... = I: Queued delivery
    Flags: 0xc0
        1... .... = F: Final PDU in sequence
        .1.. .... = R: Data will be read from target
        ..0. .... = W: No data will be written to target
        .... .000 = Attr: Untagged (0x00)
    TotalAHSLength: 0x00
    DataSegmentLength: 0x00000000
    LUN: 0000000000000000
    InitiatorTaskTag: 0x00000004
    ExpectedDataTransferLength: 0x00000008
    CmdSN: 0x00000004
    ExpStatSN: 0x00000005
    Data In in: 869
    Response in: 869
SCSI CDB Get Configuraion
    LUN: 0x0000
    Opcode: Get Configuraion (0x46)
    .... ..00 = RT: Return all features (0x00)
    Starting Feature: Profile List (0x0000)
    Allocation Length: 8
    Vendor Unique = 0, NACA = 0, Link = 0


...
iSCSI (SCSI Data In)
    Opcode: SCSI Data In (0x25)
    Flags: 0x85
        1... .... = F: Final PDU in sequence
        .0.. .... = A: Acknowledge not requested
        .... .1.. = O: Residual overflow occurred
        .... ..0. = U: No residual underflow occurred
        .... ...1 = S: Response contains SCSI status
    Status: Good (0x00)
    TotalAHSLength: 0x00
    DataSegmentLength: 0x00000008
    LUN: 0000000000000000
    InitiatorTaskTag: 0x00000004
    TargetTransferTag: 0xffffffff
    StatSN: 0x00000005
    ExpCmdSN: 0x00000005
    MaxCmdSN: 0x00000025
    DataSN: 0x00000000
    BufferOffset: 0x00000000
    ResidualCount: 0x00000142
    Request in: 867
    Time from request: 0.007783000 seconds
SCSI Payload (Get Configuraion Response)
    LUN: 0x0000
    Data Length: 322
    Current Profile: Reserved (0x0000)
[Malformed Packet: iSCSI]