I am using 0.10.10. In the below packet, Ethereal shows the LUN to be
0xFFFF. But the PDU shows it to be 0. Why?
No. Time Source Destination Protocol
Info Length Src
port Dest port
23 13.465488 192.168.50.225 192.168.50.249 iSCSI
SCSI: Test Unit Ready LUN: 0xffff 102 1088
3260
Frame 23 (102 bytes on wire, 102 bytes captured)
Arrival Time: Mar 15, 2005 17:52:08.564982000
Time delta from previous packet: 1.683908000 seconds
Time since reference or first frame: 13.465488000 seconds
Frame Number: 23
Packet Length: 102 bytes
Capture Length: 102 bytes
Protocols in frame: eth:ip:tcp:iscsi
Ethernet II, Src: 00:c0:9f:29:70:6f, Dst: 00:e0:02:e3:13:a6
Destination: 00:e0:02:e3:13:a6 (Crossroa_e3:13:a6)
Source: 00:c0:9f:29:70:6f (QuantaCo_29:70:6f)
Type: IP (0x0800)
Internet Protocol, Src Addr: 192.168.50.225 (192.168.50.225), Dst Addr:
192.168.50.249 (192.168.50.249)
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: 88
Identification: 0x043d (1085)
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: 128
Protocol: TCP (0x06)
Header checksum: 0x0000 (incorrect, should be 0x0f38)
Source: 192.168.50.225 (192.168.50.225)
Destination: 192.168.50.249 (192.168.50.249)
Transmission Control Protocol, Src Port: 1088 (1088), Dst Port: 3260 (3260),
Seq: 3309122109, Ack: 2686484998, Len: 48
Source port: 1088 (1088)
Destination port: 3260 (3260)
Sequence number: 3309122109
Next sequence number: 3309122157
Acknowledgement number: 2686484998
Header length: 20 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: 64191
Checksum: 0xe775 (incorrect, should be 0xa036)
iSCSI (SCSI Command)
Opcode: SCSI Command (0x01)
.0.. .... = I: Queued delivery
Flags: 0x80
1... .... = F: Final PDU in sequence
.0.. .... = R: No 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: 0x00000074
ExpectedDataTransferLength: 0x00000000
CmdSN: 0x00000074
ExpStatSN: 0x00000075
SCSI CDB
LUN: 0xffff
Opcode: Test Unit Ready (0x00)
Vendor Unique = 0, NACA = 0, Link = 0
0000 00 e0 02 e3 13 a6 00 c0 9f 29 70 6f 08 00 45 00 .........)po..E.
0010 00 58 04 3d 40 00 80 06 00 00 c0 a8 32 e1 c0 a8 .X.=@.......2...
0020 32 f9 04 40 0c bc c5 3d 32 3d a0 20 82 06 50 18 2..@...=2=. ..P.
0030 fa bf e7 75 00 00 01 80 00 00 00 00 00 00 00 00 ...u............
0040 00 00 00 00 00 00 00 00 00 74 00 00 00 00 00 00 .........t......
0050 00 74 00 00 00 75 00 00 00 00 00 00 00 00 00 00 .t...u..........
0060 00 00 00 00 00 00 ......