Ethereal-dev: [Ethereal-dev] wrong element address assignment mode page decode

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: Tue, 13 Dec 2005 18:43:58 -0500
use 0.10.12 to decode a TL trace. one mode sense response is decoded
wrong. see last few lines.


No.     Time        Source                Destination           Protocol
Info
     18 3.067915    192.168.1.212         192.168.1.203         iSCSI
SCSI: Data In LUN: 0x00 (Mode Sense(6) Response) 

Frame 18 (138 bytes on wire, 138 bytes captured)
    Arrival Time: Dec 13, 2005 18:15:31.956506000
    Time delta from previous packet: 0.000109000 seconds
    Time since reference or first frame: 3.067915000 seconds
    Frame Number: 18
    Packet Length: 138 bytes
    Capture Length: 138 bytes
    Protocols in frame: eth:ip:tcp:iscsi
Ethernet II, Src: 192.168.1.212 (00:e0:81:30:c7:7a), Dst: 192.168.1.203
(00:13:20:2f:dd:fb)
    Destination: 192.168.1.203 (00:13:20:2f:dd:fb)
    Source: 192.168.1.212 (00:e0:81:30:c7:7a)
    Type: IP (0x0800)
Internet Protocol, Src: 192.168.1.212 (192.168.1.212), Dst:
192.168.1.203 (192.168.1.203)
    Version: 4
    Header length: 20 bytes
    Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
        0000 00.. = Differentiated Services Codepoint: Default (0x00)
        .... ..0. = ECN-Capable Transport (ECT): 0
        .... ...0 = ECN-CE: 0
    Total Length: 124
    Identification: 0x12fa (4858)
    Flags: 0x04 (Don't Fragment)
        0... = Reserved bit: Not set
        .1.. = Don't fragment: Set
        ..0. = More fragments: Not set
    Fragment offset: 0
    Time to live: 64
    Protocol: TCP (0x06)
    Header checksum: 0xa292 [correct]
    Source: 192.168.1.212 (192.168.1.212)
    Destination: 192.168.1.203 (192.168.1.203)
Transmission Control Protocol, Src Port: 3260 (3260), Dst Port: 44241
(44241), Seq: 433, Ack: 593, Len: 72
    Source port: 3260 (3260)
    Destination port: 44241 (44241)
    Sequence number: 433    (relative sequence number)
    Next sequence number: 505    (relative sequence number)
    Acknowledgement number: 593    (relative ack number)
    Header length: 32 bytes
    Flags: 0x0018 (PSH, ACK)
        0... .... = Congestion Window Reduced (CWR): Not set
        .0.. .... = ECN-Echo: Not set
        ..0. .... = Urgent: Not set
        ...1 .... = Acknowledgment: Set
        .... 1... = Push: Set
        .... .0.. = Reset: Not set
        .... ..0. = Syn: Not set
        .... ...0 = Fin: Not set
    Window size: 6880 (scaled)
    Checksum: 0x855e [incorrect, should be 0x01c0]
    Options: (12 bytes)
        NOP
        NOP
        Time stamp: tsval 451585, tsecr 4294940129
    SEQ/ACK analysis
        This is an ACK to the segment in frame: 17
        The RTT to ACK the segment was: 0.000109000 seconds
iSCSI (SCSI Data In)
    Opcode: SCSI Data In (0x25)
    Flags: 0x83
        1... .... = F: Final PDU in sequence
        .0.. .... = A: Acknowledge not requested
        .... .0.. = O: No residual overflow occurred
        .... ..1. = U: Residual underflow occurred
        .... ...1 = S: Response contains SCSI status
    Status: Good (0x00)
    TotalAHSLength: 0x00
    DataSegmentLength: 0x00000018
    LUN: 0000000000000000
    InitiatorTaskTag: 0x01000000
    TargetTransferTag: 0xffffffff
    StatSN: 0x00000002
    ExpCmdSN: 0x00000002
    MaxCmdSN: 0x00000022
    DataSN: 0x00000000
    BufferOffset: 0x00000000
    ResidualCount: 0x000000e7
    Request in: 17
    Time from request: 0.000109000 seconds
SCSI Payload (Mode Sense(6) Response)
    LUN: 0x0000
    Mode Data Length: 23
    Medium Type: 0x00
    Device-Specific Parameter: 0x00
    Block Descriptor Length: 0
    Element Address Assignment Mode Page
        PS: 1
        ..01 1101 = SMC-2 Page Code: Element Address Assignment (0x1d)
        Page Length: 18
        Parameter List Length: 0
~~~~~~~~~~PLL should be 0x12 or 18 here. no page length available.


0000  00 13 20 2f dd fb 00 e0 81 30 c7 7a 08 00 45 00   .. /.....0.z..E.
0010  00 7c 12 fa 40 00 40 06 a2 92 c0 a8 01 d4 c0 a8   .|..@.@.........
0020  01 cb 0c bc ac d1 0e 09 f3 3f 07 68 d6 51 80 18   .........?.h.Q..
0030  00 d7 85 5e 00 00 01 01 08 0a 00 06 e4 01 ff ff   ...^............
0040  95 e1 25 83 00 00 00 00 00 18 00 00 00 00 00 00   ..%.............
0050  00 00 01 00 00 00 ff ff ff ff 00 00 00 02 00 00   ................
0060  00 02 00 00 00 22 00 00 00 00 00 00 00 00 00 00   ....."..........
0070  00 e7 17 00 00 00 9d 12 00 56 00 01 00 01 00 07   .........V......
0080  00 00 00 00 00 52 00 01 00 00                     .....R....